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

Unified Diff: third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html

Issue 1413493005: Update layout tests to work when smooth scrolling is enabled by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worked on nit Created 5 years, 1 month 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: third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html
diff --git a/third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html b/third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html
index 9f1679037db9d90d64fee3f8f1811d7643a7712b..e45a56054cc8bef6d92da4f290b3212cb0250e1e 100644
--- a/third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html
+++ b/third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html
@@ -13,11 +13,14 @@
Tests that the scrollbar can be clicked even when it clips absolute-positioned content.
<div id="a"></div>
<script>
+window.jsTestIsAsync = true;
-eventSender.mouseMoveTo(790, 500);
-eventSender.mouseDown();
-eventSender.mouseUp();
-
-shouldBeTrue(String(scrollY > 0));
+function runTest() {
+ eventSender.mouseMoveTo(790, 500);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ shouldBecomeEqual('scrollY > 0', 'true', finishJSTest);
+}
+onload = runTest;
</script>

Powered by Google App Engine
This is Rietveld 408576698