Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: LayoutTests/fast/events/overflow-scroll-fake-mouse-move.html

Issue 1309983002: Fix fake mouse move event on scroll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix dependency Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/events/overflow-scroll-fake-mouse-move.html
diff --git a/LayoutTests/fast/events/overflow-scroll-fake-mouse-move.html b/LayoutTests/fast/events/overflow-scroll-fake-mouse-move.html
index 13e72b76e43f68119f2dee98072914d25278a562..859be5d3df0a2f405eb113c5815a9e0c4f8fa15e 100644
--- a/LayoutTests/fast/events/overflow-scroll-fake-mouse-move.html
+++ b/LayoutTests/fast/events/overflow-scroll-fake-mouse-move.html
@@ -1,18 +1,11 @@
<div id="target" style="overflow: auto; height: 200px; width: 200px;">
<div onmouseover="mouseOver(event)" style="margin: 300px 0; width: 100px; height: 100px; background-color: blue;"></div>
</div>
-<div id="result">Test did not run</div>
+<div id="result">Test needs DumpRenderTree</div>
<script>
- var passed = false;
-
function mouseOver(event)
{
- passed = true;
- }
-
- function finish()
- {
- document.getElementById("result").innerText = passed ? "PASS" : "FAIL";
+ document.getElementById("result").innerText = "PASS";
testRunner.notifyDone();
}
@@ -20,14 +13,10 @@
testRunner.dumpAsText();
testRunner.waitUntilDone();
- // WebKit schedules a fake mouse move event as part of installing the WebView in
- // a window. For the test to be valid, it must begin only after that event
- // gets dispatched.
- setTimeout(function()
+ onload = function()
{
eventSender.mouseMoveTo(50, 100);
document.getElementById("target").scrollTop = 250;
- setTimeout(finish, 200);
- }, 200);
+ };
}
</script>

Powered by Google App Engine
This is Rietveld 408576698