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

Unified Diff: LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html

Issue 403843002: Convert some layout tests to text-based-repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase tests (due to removal of <pre>) 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/squashing/squashing-inside-preserve-3d-element.html
diff --git a/LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html b/LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html
index 7da23917bcea8dc861dc4efcf753e9f07c29639a..877a03bbf483ce89860283a93d2d976d7b89bb62 100644
--- a/LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html
+++ b/LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html
@@ -3,12 +3,8 @@
<div style="width: 100px; height: 100px; background:lightgray; transform:translateZ(0)"></div>
<div id="target" style="position: absolute; top: 20px; left: 20px; height: 100px; width: 100px; background:lightblue"></div>
</div>
-<script src="../../resources/run-after-display.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
-if (testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
if (window.internals)
internals.settings.setLayerSquashingEnabled(true);
@@ -16,19 +12,10 @@ if (window.internals)
// was added to fix, the coordinates of the squashing layer paint invalidation rects were not recorded correctly, because some of
// the code computed transformed ancestors incorrectly (it should *not* include the preserve-3d element).
-runAfterDisplay(function() {
- if (internals)
- window.internals.startTrackingRepaints(document);
-
+function repaintTest() {
var target = document.getElementById('target');
target.style.background = 'red';
+}
- if (testRunner)
- testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS));
- if (internals)
- window.internals.stopTrackingRepaints(document);
-
- if (testRunner)
- testRunner.notifyDone();
-});
+runRepaintTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698