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

Unified Diff: LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html

Issue 408843004: Convert more tests into text-based-repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove LayoutTests/virtual/softwarecompositing/repaint/invalidations-on-composited-layers-expected.… 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/squash-partial-repaint-inside-squashed-layer.html
diff --git a/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html b/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html
index 7d8706178398835037b5902201847d18127b0369..1c15ef7cb00c905a40420aeaa531d282f6906ca3 100644
--- a/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html
+++ b/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html
@@ -50,33 +50,21 @@ div:hover {
}
</style>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
if (window.internals)
internals.settings.setLayerSquashingEnabled(true);
- if (window.testRunner)
- testRunner.dumpAsText();
- function runTest()
+ function repaintTest()
{
- if (!window.internals)
- return;
- document.body.offsetTop;
- window.internals.startTrackingRepaints(document);
document.getElementById('repaintdiv').style.background = 'salmon';
- document.getElementById('testResults').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- window.internals.stopTrackingRepaints(document);
-
- // Display the test results only after test is done so that it does not affect repaint rect results.
- document.getElementById('testResults').style.display = "block";
}
+ runRepaintTest();
</script>
</head>
-<body onload="runTest()">
+<body>
<div class="composited box behind"></div>
<div class="box middle"></div>
<img id="repaintdiv" class="repaintdiv"></img>
<div class="box top"></div>
-
- <pre id="testResults" style="display:none">
- </div>
</body>

Powered by Google App Engine
This is Rietveld 408576698