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

Unified Diff: LayoutTests/compositing/squashing/remove-squashed-layer-plus-move.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/remove-squashed-layer-plus-move.html
diff --git a/LayoutTests/compositing/squashing/remove-squashed-layer-plus-move.html b/LayoutTests/compositing/squashing/remove-squashed-layer-plus-move.html
index b25f80b92fd2447c13066e1c16ae8afa6e815754..5af46da4c95e0a4c922df559cffd7a2d7ffe58cb 100644
--- a/LayoutTests/compositing/squashing/remove-squashed-layer-plus-move.html
+++ b/LayoutTests/compositing/squashing/remove-squashed-layer-plus-move.html
@@ -14,29 +14,16 @@
<div class="mv-tile" style="background-color: lightblue;"></div>
</div>
<div class="mv-tile" style="width: 1000px"></div>
-<script src="../../resources/run-after-display.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
// This test verifies that a paint invalidation is correctly issued for both the old and new location of
// the mv-tile element which is *not* removed from the DOM, but nevertheless moves to the left as the other one
// is removed.
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-runAfterDisplay(function() {
- if (window.internals)
- window.internals.startTrackingRepaints(document);
-
+function repaintTest() {
document.querySelector("#foo").remove();
-
- if (window.internals) {
- testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS));
- window.internals.stopTrackingRepaints(document);
- }
+}
- if (window.testRunner)
- testRunner.notifyDone();
-});
+runRepaintTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698