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

Unified Diff: LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html

Issue 390933004: Split compositing/repaint/should-not-repaint-*.html into smaller 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/should-not-repaint-composited-transform.html
diff --git a/LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html b/LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html
index 8c402a388256bb8f82b04094cfd9ca457812bfbf..58986347cba8cf1ad5ca296b235d661f0aaf2f94 100644
--- a/LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html
+++ b/LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html
@@ -7,20 +7,11 @@
-webkit-transform:translate3D(0, 0, 0);
}
</style>
-<div id="composited-box"></div>
-<pre id="console"></pre>
-<script src="../../resources/run-after-display.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
- function doTest() {
- internals.startTrackingRepaints(document);
- document.getElementById("composited-box").style.webkitTransform = "translate3D(100px, 100px, 0)";
- document.getElementById("console").textContent = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- testRunner.notifyDone();
- }
-
- if (window.testRunner && window.internals) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- runAfterDisplay(doTest);
- }
+function repaintTest() {
+ document.getElementById('composited-box').style.webkitTransform = 'translate3D(100px, 100px, 0)';
+}
+window.onload = runRepaintTest;
</script>
+<div id="composited-box"></div>

Powered by Google App Engine
This is Rietveld 408576698