Commit d8d5fff4 authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

[LayoutTest] Mark compositor-touch-hit-rects-non-composited-scroll.html pass

Under paint-touchaction-rects, the new result is actually correct. This
CL changes the expected.txt and mark this test pass.

A new test is added to show that with PaintTouchActionRects, the result
is correct with clipping.

Bug: 853912
Change-Id: Id6138081e9a782333edc2911a9e9f53997f0b564
Reviewed-on: https://chromium-review.googlesource.com/1151709Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Commit-Queue: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578876}
parent 87dfcf4c
......@@ -1832,7 +1832,6 @@ crbug.com/567837 virtual/scalefactor150/fast/hidpi/static/popup-menu-with-scroll
crbug.com/567837 virtual/scalefactor200/fast/hidpi/static/popup-menu-with-scrollbar-appearance.html [ Skip ]
crbug.com/567837 virtual/scalefactor200withzoom/fast/hidpi/static/popup-menu-with-scrollbar-appearance.html [ Skip ]
crbug.com/853912 virtual/paint-touchaction-rects/fast/events/touch/compositor-touch-hit-rects-non-composited-scroll.html [ Failure ]
crbug.com/853912 virtual/paint-touchaction-rects/fast/events/touch/compositor-touch-hit-rects.html [ Failure ]
# TODO(ojan): These tests aren't flaky. See crbug.com/517144.
......
notclipped: #document scrolling (0, 0, 302, 102)
clipped: #document scrolling (0, 0, 302, 102)
clipped: #document scrolling (1, 176, 200, 25)
<!DOCTYPE html>
<style>
html, body { margin: 0; }
#tests {
font-size: 10px;
width: 400px;
background: lightgreen;
}
.scroll {
overflow-y: scroll;
overflow-x: hidden;
border: 1px solid lightgrey;
height: 100px;
width: 300px;
background: lightblue;
}
.overflowwithhandler {
height: 25px;
width: 200px;
}
</style>
<div id="tests">
<div class="scroll">
<div style='height: 50px;'></div>
<div id="notclipped" class="testcase overflowwithhandler"></div>
<div style='height: 100px;'></div>
<div id="clipped" class="testcase overflowwithhandler"></div>
</div>
</div>
<div id="console"></div>
<script src="resources/compositor-touch-hit-rects.js"></script>
This test verifies the hit test regions given to the compositor specifically around non-composited overflow scroll elements.
scrollContent: #document scrolling (14, 63, 273, 12)
scrollContainerWithHandler: #document scrolling (13, 89, 290, 32)
nestedContent: #document scrolling (15, 148, 256, 9)
fixedPositionContentContainer: #document scrolling (14, 179, 273, 12)
fixedPositionContentContainer: #document scrolling (310, 190, 132, 12)
overflowwithhandler: #document scrolling (14, 221, 273, 20)
divInsideNonScrollableLayer: #document scrolling (14, 273, 273, 10)
divInsideCompositedLayer: DIV#compositedLayer (0, 10, 273, 12)
overflowwithborder: #document scrolling (13, 336, 290, 50)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment