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

Unified Diff: LayoutTests/css3/flexbox/repaint-during-resize-no-flex.html

Issue 183703003: Remove more testRunner.display() calls from LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/css3/flexbox/repaint-during-resize-no-flex.html
diff --git a/LayoutTests/css3/flexbox/repaint-during-resize-no-flex.html b/LayoutTests/css3/flexbox/repaint-during-resize-no-flex.html
index 6b1cbd960c2756ae0c3d017e551bcecc80defef4..7e655b2097c77d1b770604756ecd4fa800c0efec 100644
--- a/LayoutTests/css3/flexbox/repaint-during-resize-no-flex.html
+++ b/LayoutTests/css3/flexbox/repaint-during-resize-no-flex.html
@@ -2,6 +2,7 @@
<html>
<head>
<link rel="stylesheet" href="resources/flexbox.css">
+<script src="../../resources/run-after-display.js"></script>
<style>
body {
margin: 0;
@@ -37,14 +38,13 @@ function resizeFlexItem() {
window.onload = function() {
if (window.testRunner) {
testRunner.waitUntilDone();
- testRunner.display();
} else {
document.body.appendChild(document.createTextNode(
"Tests to make sure that when changing the size of one flex item changes the "
+ "location of another flex item, we properly repaint. The repaint rect should "
+ "include the three flex items."));
}
- setTimeout(resizeFlexItem, 0);
+ runAfterDisplay(resizeFlexItem, 0);
};
</script>
</body></html>

Powered by Google App Engine
This is Rietveld 408576698