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

Unified Diff: LayoutTests/fast/repaint/box-inline-resize.html

Issue 264963004: Mark when we may have been invalidated to early out on repaintTreeAfterLayout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/box-inline-resize.html
diff --git a/LayoutTests/fast/repaint/box-inline-resize.html b/LayoutTests/fast/repaint/box-inline-resize.html
index 84de8b28b037462bb49bec32affabde375f5927f..95e4d7a85e3623e056347880dc5465ebfbda8b99 100644
--- a/LayoutTests/fast/repaint/box-inline-resize.html
+++ b/LayoutTests/fast/repaint/box-inline-resize.html
@@ -1,6 +1,7 @@
<!doctype html>
<head>
<script src="resources/text-based-repaint.js"></script>
+ <script src="../../resources/run-after-display.js"></script>
leviw_travelin_and_unemployed 2014/05/05 18:52:32 It's odd that this test change is included. At lea
dsinclair 2014/05/05 19:38:26 Removed, isn't relevant to this CL.
<style>
#about-container {
display: -webkit-box;
@@ -12,17 +13,19 @@
}
</style>
<script type="text/javascript">
+ window.onload = runRepaintTest;
window.testIsAsync = true;
function repaintTest() {
- setTimeout(function() {
+ runAfterDisplay(function() {
var i = document.getElementById('foo');
i.style.width = "32px";
i.style.height = "32px";
- finishRepaintTest();
- }, 50);
+
+ if (window.testRunner)
+ finishRepaintTest();
+ });
};
- onload = runRepaintTest;
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698