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

Unified Diff: LayoutTests/fast/repaint/fixed.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.html
diff --git a/LayoutTests/fast/repaint/fixed.html b/LayoutTests/fast/repaint/fixed.html
index de4c8aaca0552258d6cf5295fef1a54162e11226..09bdd11c3e167f0998e980865cf55f2bbfabbe2a 100644
--- a/LayoutTests/fast/repaint/fixed.html
+++ b/LayoutTests/fast/repaint/fixed.html
@@ -1,22 +1,33 @@
<html>
<head>
<title></title>
+ <script src="../../resources/run-after-display.js"></script>
<script src="resources/text-based-repaint.js" type="text/javascript"></script>
<script type="text/javascript">
- function repaintTest()
- {
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+
+ window.onload = function()
+ {
+ window.scrollTo(0, 20);
+ runAfterDisplay(function() {
+ runRepaintTest();
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+ }
+
+ function repaintTest()
+ {
document.getElementById('t').style.background='green';
- }
+ }
</script>
</head>
-<body style="height:2000px;" onload="runRepaintTest()">
+<body style="height:2000px;">
<p style="position: relative; top: 20px;">
Repaint test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11452">http://bugs.webkit.org/show_bug.cgi?id=11452</a>
REGRESSION (r16736-r16801): Incorrect repaint of fixed boxes</i>.
</p>
<div id="t" style="position: fixed; width: 100px; height: 100px; background: red"></div>
- <script>
- window.scrollTo(0, 20);
- </script>
</body>
</html>
« no previous file with comments | « LayoutTests/fast/repaint/absolute-position-changed.html ('k') | LayoutTests/fast/repaint/fixed-after-scroll.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698