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

Unified Diff: LayoutTests/fast/repaint/fixed-child-of-fixed-move-after-scroll.html

Issue 191693002: Delay scrollContents until the next paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix nit Created 6 years, 9 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/fixed-child-of-fixed-move-after-scroll.html
diff --git a/LayoutTests/fast/repaint/fixed-child-of-fixed-move-after-scroll.html b/LayoutTests/fast/repaint/fixed-child-of-fixed-move-after-scroll.html
index 410c2fdfc2cbc0622c2e26a48fff73db3e2b02ed..3ec908cf129f743a7e8cb9c5dc9ebf23798b4e30 100644
--- a/LayoutTests/fast/repaint/fixed-child-of-fixed-move-after-scroll.html
+++ b/LayoutTests/fast/repaint/fixed-child-of-fixed-move-after-scroll.html
@@ -1,12 +1,21 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <script src="../../resources/run-after-display.js"></script>
<script src="resources/text-based-repaint.js"></script>
<script type="text/javascript">
function scrollAndRepaint()
{
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+
scrollBy(0, 200);
- runRepaintTest();
+
+ runAfterDisplay(function() {
+ runRepaintTest();
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
}
function repaintTest()
{
« no previous file with comments | « LayoutTests/fast/repaint/fixed-child-move-after-scroll.html ('k') | LayoutTests/fast/repaint/fixed-move-after-scroll.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698