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

Unified Diff: LayoutTests/compositing/squashing/repaint-overflow-scrolled-squashed-content.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/repaint-overflow-scrolled-squashed-content.html
diff --git a/LayoutTests/compositing/squashing/repaint-overflow-scrolled-squashed-content.html b/LayoutTests/compositing/squashing/repaint-overflow-scrolled-squashed-content.html
index 968f9b21ddcc8b306a320c08a17dab0b61a06358..c5c77ac62c1eecf2147d9e2e2e52367a381cb93c 100644
--- a/LayoutTests/compositing/squashing/repaint-overflow-scrolled-squashed-content.html
+++ b/LayoutTests/compositing/squashing/repaint-overflow-scrolled-squashed-content.html
@@ -3,30 +3,15 @@
<div id="foo2" style="height: 1000px; width: 150px; background: lightblue; transform: translateZ(0) "></div>
<div id="foo" style="height: 1000px; width: 100px; position: absolute; top: 0px; left: 0px; background: lightgray"></div>
</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 repaint request for a squashed layer that is inside of a scrolling container and much taller
// than the viewport does not receive an incorrect paint invalidation rect when it is invalidated. In particular, the invalidation
// rect should not be clipped to the visible viewport.
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-runAfterDisplay(function() {
- if (window.internals)
- window.internals.startTrackingRepaints(document);
-
+function repaintTest() {
document.querySelector("#foo").style.background = 'red';
-
- if (window.testRunner)
- testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS));
-
- if (window.internals)
- window.internals.stopTrackingRepaints(document);
-
- if (window.testRunner)
- testRunner.notifyDone();
-});
+}
+runRepaintTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698