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

Unified Diff: LayoutTests/fast/repaint/resources/text-based-repaint.js

Issue 172973002: Rewrite svg/dynamic-updates to use text-based repaint harness (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: actually add file 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/animations/accumulate-values-width-animation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/resources/text-based-repaint.js
diff --git a/LayoutTests/fast/repaint/resources/text-based-repaint.js b/LayoutTests/fast/repaint/resources/text-based-repaint.js
index d6403fc5acae3a22a5f6052ac69730fc9fbec188..2170cda5d353dada52ca8531dbb8319931c4d009 100644
--- a/LayoutTests/fast/repaint/resources/text-based-repaint.js
+++ b/LayoutTests/fast/repaint/resources/text-based-repaint.js
@@ -1,7 +1,10 @@
function runRepaintTest()
{
if (window.testRunner && window.internals) {
- window.testRunner.dumpAsText();
+ if (window.enablePixelTesting)
+ window.testRunner.dumpAsTextWithPixelResults();
+ else
+ window.testRunner.dumpAsText();
if (document.body)
document.body.offsetTop;
@@ -21,7 +24,10 @@ function runRepaintTest()
var pre = document.createElement('pre');
document.body.appendChild(pre);
- pre.innerHTML = repaintRects;
+ pre.textContent += repaintRects;
+
+ if (window.afterTest)
+ window.afterTest();
} else {
setTimeout(repaintTest, 100);
}
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/animations/accumulate-values-width-animation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698