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

Unified Diff: LayoutTests/compositing/repaint/repaint-into-ancestor-after-layout.html

Issue 408843004: Convert more tests into text-based-repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/repaint/repaint-into-ancestor-after-layout.html
diff --git a/LayoutTests/compositing/repaint/repaint-into-ancestor-after-layout.html b/LayoutTests/compositing/repaint/repaint-into-ancestor-after-layout.html
index c4f880bd8cf6d50357dd1f86fe2beb5410433588..4ba471d0810b3cd2aad8ec3c49a9ed05f36b50b6 100644
--- a/LayoutTests/compositing/repaint/repaint-into-ancestor-after-layout.html
+++ b/LayoutTests/compositing/repaint/repaint-into-ancestor-after-layout.html
@@ -28,25 +28,17 @@
}
</style>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
- if (window.testRunner)
- testRunner.dumpAsText();
-
- function test()
- {
- document.body.offsetHeight;
- if (window.internals)
- window.internals.startTrackingRepaints(document);
-
- if (window.internals) {
- document.getElementById('parent').style.top = "10px";
- document.getElementById('layers').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- }
+ function repaintTest() {
+ document.getElementById('parent').style.top = "10px";
}
+
+ runRepaintTest();
</script>
</head>
-<body onload="test()">
+<body>
<!--
https://code.google.com/p/chromium/issues/detail?id=256200
The parent element is set up uniquely such that it is composited, but it
@@ -56,8 +48,6 @@
<div id="parent">
<div id="child"></div>
</div>
-
- <pre id="layers"></pre>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698