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

Unified Diff: LayoutTests/css3/flexbox/repaint.html

Issue 263553005: Convert repaintRectsAsText callers to text-based-repaint.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase again 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.html
diff --git a/LayoutTests/css3/flexbox/repaint.html b/LayoutTests/css3/flexbox/repaint.html
index f1b9641fd21ab00e486ee158e43df11cbacd313f..aac82b84a8ab3cb861c558ea9841aaafd04af26b 100644
--- a/LayoutTests/css3/flexbox/repaint.html
+++ b/LayoutTests/css3/flexbox/repaint.html
@@ -16,6 +16,7 @@
background-color: grey;
}
</style>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
// 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
@@ -34,27 +35,17 @@ function step(count) {
if (!count)
setTimeout(step.bind(null, 1));
else if (window.testRunner) {
- var repaintRects = window.internals.repaintRectsAsText(document);
- window.internals.stopTrackingRepaints(document);
- var pre = document.createElement('pre');
- document.body.appendChild(pre);
- pre.textContent += repaintRects;
-
- testRunner.notifyDone();
+ finishRepaintTest();
}
}
-window.onload = function() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- document.body.offsetTop;
- window.internals.startTrackingRepaints(document);
- }
- window.startTime = Date.now();
+window.testIsAsync = true;
+window.onload = runRepaintTest;
+function repaintTest() {
+ window.startTime = Date.now();
setTimeout(step.bind(null, 0), 0);
-};
+}
</script>
</head>
<body>
« no previous file with comments | « LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html ('k') | LayoutTests/css3/flexbox/repaint-rtl-column.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698