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

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

Issue 250803011: Revert FCM text-based-repaint change and rebaselines (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Too many 500 errors Created 6 years, 8 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-rtl-column.html
diff --git a/LayoutTests/css3/flexbox/repaint-rtl-column.html b/LayoutTests/css3/flexbox/repaint-rtl-column.html
index 3a9cce1364f67ed9ddba0099c058c7d19532448f..b123fb0d6d35bb24818ff65239cee998aeb125f8 100644
--- a/LayoutTests/css3/flexbox/repaint-rtl-column.html
+++ b/LayoutTests/css3/flexbox/repaint-rtl-column.html
@@ -21,11 +21,7 @@
background-color: orange;
}
</style>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
-window.onload = runRepaintTest;
-window.testIsAsync = true;
-
// This test makes sure that we repaint the right region of a flexbox when
// changing the flex values. Only the middle of the test page should be
// repainted. If the top of the test page (above the flexbox) is repainted,
@@ -35,15 +31,30 @@ function setFlex(value)
document.getElementById("content").style.webkitFlex = value;
}
-function repaintTest() {
+window.onload = function() {
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ document.body.offsetTop;
+ window.internals.startTrackingRepaints(document);
+ testRunner.waitUntilDone();
+ }
setTimeout(function() {
setFlex(4.6);
setTimeout(function() {
setFlex(5);
- finishRepaintTest();
- }, 0);
- }, 0);
-}
+ if (window.testRunner) {
+ document.body.offsetTop;
+ var repaintRects = window.internals.repaintRectsAsText(document);
+ window.internals.stopTrackingRepaints(document);
+ var pre = document.createElement('pre');
+ document.body.appendChild(pre);
+ pre.textContent += repaintRects;
+
+ testRunner.notifyDone();
+ }
+ })
+ })
+};
</script>
<div style="height: 60px"></div>
<div id="flexbox" dir="rtl">
« no previous file with comments | « LayoutTests/css3/flexbox/repaint-opacity-change-expected.txt ('k') | LayoutTests/css3/flexbox/repaint-rtl-column-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698