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

Unified Diff: LayoutTests/compositing/squashing/repaint-via-layout-offset.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-via-layout-offset.html
diff --git a/LayoutTests/compositing/squashing/repaint-via-layout-offset.html b/LayoutTests/compositing/squashing/repaint-via-layout-offset.html
index 7513114c7bc07f53c7d3eccf14ad3051f7c14bc2..0ef96112aa7dcd5284f4add93c0c0ccb291621b6 100644
--- a/LayoutTests/compositing/squashing/repaint-via-layout-offset.html
+++ b/LayoutTests/compositing/squashing/repaint-via-layout-offset.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<script src="../../resources/run-after-display.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<style>
#container {
position: absolute;
@@ -26,29 +26,9 @@
<span class="child"></span>
<span class="child"></span>
</div>
-<pre></pre>
<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
+function repaintTest() {
+ document.querySelectorAll('.child')[1].classList.add('embiggen');
}
-
-runAfterDisplay(function() {
- document.querySelectorAll('.child')[0].classList.add('embiggen')
- runAfterDisplay(function() {
- if (window.internals)
- window.internals.startTrackingRepaints(document);
-
- document.querySelectorAll('.child')[1].classList.add('embiggen')
-
- if (window.internals) {
- var layerTree = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- window.internals.stopTrackingRepaints(document);
- document.querySelector('pre').textContent = layerTree;
- }
-
- if (window.testRunner)
- testRunner.notifyDone();
- });
-});
+runRepaintTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698