Chromium Code Reviews| Index: LayoutTests/fast/events/overflow-composited-scroll-fake-mouse-move.html |
| diff --git a/LayoutTests/fast/events/overflow-composited-scroll-fake-mouse-move.html b/LayoutTests/fast/events/overflow-composited-scroll-fake-mouse-move.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2f778886fec6d8b1743e5effd58bd96ffa18622b |
| --- /dev/null |
| +++ b/LayoutTests/fast/events/overflow-composited-scroll-fake-mouse-move.html |
| @@ -0,0 +1,33 @@ |
| +<!DOCTYPE html> |
| +<script src="../../resources/run-after-layout-and-paint.js"></script> |
| +<div id="container" style="overflow: auto; height: 200px; width: 200px; backface-visibility: hidden"> |
| + <div id="target" style="margin: 50px 0; overflow: auto; height: 250px; width: 100px"> |
| + <div onmouseover="mouseOver(event)" style="margin: 250px 0; width: 20px; height: 20px; background-color: blue;"></div> |
| + </div> |
| +</div> |
| +<div id="result">Test needs DumpRenderTree</div> |
| +<script> |
| + function mouseOver(event) { |
| + document.getElementById("result").innerText = "PASS"; |
| + testRunner.notifyDone(); |
| + } |
| + |
| + function fail() { |
| + document.getElementById("result").innerText = "FAIL"; |
| + testRunner.notifyDone(); |
| + } |
| + |
| + if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.waitUntilDone(); |
| + |
| + onload = function() { |
| + document.getElementById("container").scrollTop = 50; |
| + runAfterLayoutAndPaint(function() { |
| + eventSender.mouseMoveTo(10, 10); |
| + document.getElementById("target").scrollTop = 250; |
| + setTimeout(fail, 1000); |
|
pdr.
2015/08/21 21:34:09
Lets just let the test timeout instead of making i
Xianzhu
2015/08/21 21:40:52
Done.
|
| + }); |
| + }; |
| + } |
| +</script> |