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

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

Issue 267553002: FCMify two text-based-repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Two flaky non-image tests 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/fast/repaint/resources/text-based-repaint-fcm.js
diff --git a/LayoutTests/fast/repaint/resources/text-based-repaint.js b/LayoutTests/fast/repaint/resources/text-based-repaint-fcm.js
similarity index 90%
copy from LayoutTests/fast/repaint/resources/text-based-repaint.js
copy to LayoutTests/fast/repaint/resources/text-based-repaint-fcm.js
index c9526652ffb5a46476707a6f2f0a0a4c4c977fa2..2405e9d35dbc254f23a2aa2c52b2036d670fbb4c 100644
--- a/LayoutTests/fast/repaint/resources/text-based-repaint.js
+++ b/LayoutTests/fast/repaint/resources/text-based-repaint-fcm.js
@@ -2,6 +2,9 @@
window.testIsAsync = false;
window.outputRepaintRects = true;
+if (window.internals)
+ window.internals.settings.setForceCompositingMode(true)
+
function runRepaintTest()
{
if (!window.testRunner || !window.internals) {
@@ -47,7 +50,7 @@ function finishRepaintTest()
// Force a style recalc.
forceStyleRecalc();
- var repaintRects = window.internals.repaintRectsAsText(document);
+ var repaintRects = window.internals.layerTreeAsText(document, window.internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
internals.stopTrackingRepaints(document);

Powered by Google App Engine
This is Rietveld 408576698