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

Unified Diff: LayoutTests/css3/flexbox/repaint.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
Index: LayoutTests/css3/flexbox/repaint.html
diff --git a/LayoutTests/css3/flexbox/repaint.html b/LayoutTests/css3/flexbox/repaint.html
index 1c06563851c2131293b311e218115af4ed7cc3c7..f1b9641fd21ab00e486ee158e43df11cbacd313f 100644
--- a/LayoutTests/css3/flexbox/repaint.html
+++ b/LayoutTests/css3/flexbox/repaint.html
@@ -33,18 +33,23 @@ function step(count) {
if (!count)
setTimeout(step.bind(null, 1));
- else {
- if (window.testRunner)
- testRunner.notifyDone();
+ 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();
}
}
window.onload = function() {
if (window.testRunner) {
- testRunner.dumpAsTextWithPixelResults();
- document.body.offsetTop;
- testRunner.display();
+ testRunner.dumpAsText();
testRunner.waitUntilDone();
+ document.body.offsetTop;
+ window.internals.startTrackingRepaints(document);
}
window.startTime = Date.now();
« no previous file with comments | « LayoutTests/compositing/webgl/webgl-repaint.html ('k') | LayoutTests/css3/flexbox/repaint-column-reverse.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698