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

Unified Diff: LayoutTests/compositing/layer-creation/compositing-reason-removed.html

Issue 408843004: Convert more tests into text-based-repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/compositing/layer-creation/compositing-reason-removed.html
diff --git a/LayoutTests/compositing/layer-creation/compositing-reason-removed.html b/LayoutTests/compositing/layer-creation/compositing-reason-removed.html
index a25c548206531c9b01df560072c551873c45bcae..c1e5717f025b7c53c0153f0f663bd4b1e1793973 100644
--- a/LayoutTests/compositing/layer-creation/compositing-reason-removed.html
+++ b/LayoutTests/compositing/layer-creation/compositing-reason-removed.html
@@ -13,28 +13,13 @@
}
</style>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- }
-
- onload = function() {
- if (!window.internals)
- return;
-
- window.internals.startTrackingRepaints(document);
-
+ function repaintTest() {
// Remove the div's only compositing reason. This should trigger a repaint.
document.getElementById("square").style.webkitBackfaceVisibility = "visible";
- document.getElementById("layertree").textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- window.internals.stopTrackingRepaints(document);
-
- document.getElementById("testResults").style.display = "block";
}
+ runRepaintTest();
</script>
<div id="square"></div>
-
-<div id="testResults">
- <pre id="layertree"></pre>
-</div>

Powered by Google App Engine
This is Rietveld 408576698