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

Unified Diff: LayoutTests/css3/flexbox/repaint-column-reverse.html

Issue 196353013: Convert some repaint tests to not call display() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations, remove do-not-repaint tricky test 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
« no previous file with comments | « LayoutTests/css3/flexbox/repaint.html ('k') | LayoutTests/css3/flexbox/repaint-during-resize-no-flex.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/flexbox/repaint-column-reverse.html
diff --git a/LayoutTests/css3/flexbox/repaint-column-reverse.html b/LayoutTests/css3/flexbox/repaint-column-reverse.html
index 22fee569366f366683c7c0263486a8de9d119348..3f217a6006eed28ec656f929c85d4ff8c3b44965 100644
--- a/LayoutTests/css3/flexbox/repaint-column-reverse.html
+++ b/LayoutTests/css3/flexbox/repaint-column-reverse.html
@@ -1,4 +1,6 @@
<!DOCTYPE html>
+<script src="../../resources/run-after-display.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<style>
#flexbox {
display: -webkit-flex;
@@ -10,25 +12,29 @@
}
</style>
<script>
-function changeChildMargin()
+function repaintTest()
{
document.getElementById("blue").style.margin = "1px";
- if (window.testRunner)
- testRunner.notifyDone();
+}
+
+function changeChildMargin()
+{
+ runRepaintTest();
+ finishRepaintTest();
}
window.onload = function() {
if (window.testRunner) {
- testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
- testRunner.display();
} else {
document.body.appendChild(document.createTextNode(
"This test checks that for flex items that are moved multiple times during the layout "
+ "only the initial and final positions are repainted. Only the blue flex item should be repainted "
+ "after changing its position. If the other flex items are repainted, this test fails."));
}
- setTimeout(changeChildMargin, 0);
+ window.enablePixelTesting = true;
+ window.testIsAsync = true;
+ runAfterDisplay(changeChildMargin)
};
</script>
<div id="flexbox">
« no previous file with comments | « LayoutTests/css3/flexbox/repaint.html ('k') | LayoutTests/css3/flexbox/repaint-during-resize-no-flex.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698