Index: third_party/WebKit/LayoutTests/fast/events/scroll-after-click-on-tab-index.html |
diff --git a/third_party/WebKit/LayoutTests/fast/events/scroll-after-click-on-tab-index.html b/third_party/WebKit/LayoutTests/fast/events/scroll-after-click-on-tab-index.html |
index 78058fe3d799e148bc467596fdd6fbc0d22e6d79..98cf4009e60ef5b8d42931cb6f1a31a436606f21 100644 |
--- a/third_party/WebKit/LayoutTests/fast/events/scroll-after-click-on-tab-index.html |
+++ b/third_party/WebKit/LayoutTests/fast/events/scroll-after-click-on-tab-index.html |
@@ -1,6 +1,8 @@ |
<html> |
<script src="../../resources/js-test.js"></script> |
<script> |
+window.jsTestIsAsync = true; |
+ |
function getCenterFor(element) |
{ |
var rect = element.getBoundingClientRect(); |
@@ -23,14 +25,9 @@ function runTest() |
eventSender.mouseDown(); |
eventSender.mouseUp(); |
eventSender.keyDown("downArrow"); |
- setTimeout(verifyScrolling, 15); |
-} |
-function verifyScrolling() |
-{ |
debug("Scroll position is more than 0"); |
- shouldBe("document.scrollingElement.scrollTop > 0", "true"); |
- testRunner.notifyDone(); |
+ shouldBecomeEqual("document.scrollingElement.scrollTop > 0", "true", finishJSTest); |
} |
</script> |