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

Unified Diff: LayoutTests/compositing/squashing/tricky-element-removal-crash.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/tricky-element-removal-crash.html
diff --git a/LayoutTests/compositing/squashing/tricky-element-removal-crash.html b/LayoutTests/compositing/squashing/tricky-element-removal-crash.html
index 14d1b9a97abc79ec85e454e0849f787f3aee4d78..ac3783ed74c39479700380a9adcd2c8d634a865d 100644
--- a/LayoutTests/compositing/squashing/tricky-element-removal-crash.html
+++ b/LayoutTests/compositing/squashing/tricky-element-removal-crash.html
@@ -1,29 +1,16 @@
<!DOCTYPE html>
-<script src="../../resources/run-after-display.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<div style="width: 200px; height: 200px; transform: translateZ(0); background-color: salmon;"></div>
<div style="position: absolute; z-index: 0; top: 8px; width: 100px; height: 100px">
<div id="target" style="width: 100px; height: 100px; transform: translateZ(0); background-color: blue">
</div>
-<pre></pre>
<script>
if (window.internals)
internals.settings.setLayerSquashingEnabled(true);
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
+function repaintTest() {
+ document.querySelector('#target').remove();
}
-window.addEventListener('load', function() {
- runAfterDisplay(function() {
- window.internals.startTrackingRepaints(document);
- document.querySelector('#target').remove();
- document.querySelector('pre').textContent =
- 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