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

Unified Diff: LayoutTests/fast/repaint/repaint-during-scroll-with-zoom.html

Issue 316193003: Fix some async repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline more tests Created 6 years, 6 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/repaint/repaint-during-scroll-with-zoom.html
diff --git a/LayoutTests/fast/repaint/repaint-during-scroll-with-zoom.html b/LayoutTests/fast/repaint/repaint-during-scroll-with-zoom.html
index 17e5cd340d16561951d247fc233de7618b2ea815..8b4bc4e60ee898b194373de1627478f483bac46a 100644
--- a/LayoutTests/fast/repaint/repaint-during-scroll-with-zoom.html
+++ b/LayoutTests/fast/repaint/repaint-during-scroll-with-zoom.html
@@ -29,15 +29,12 @@
frame.scrollBy(100, 100);
</script>
<script>
+ window.testIsAsync = true;
function repaintTest()
{
- if (window.testRunner) {
- testRunner.waitUntilDone();
- frame.onscroll = function() {
- if (window.testRunner)
- testRunner.notifyDone();
- };
- }
+ frame.onscroll = function() {
+ finishRepaintTest();
+ };
frame.scrollBy(-90, -90);
}
</script>
« no previous file with comments | « LayoutTests/fast/repaint/crbug-371640-4.html ('k') | LayoutTests/fast/repaint/resources/text-based-repaint.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698