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

Unified Diff: LayoutTests/compositing/squashing/squash-transform-repainting-transformed-child.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 years, 10 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-transform-repainting-transformed-child.html
diff --git a/LayoutTests/compositing/squashing/squash-transform-repainting-transformed-child.html b/LayoutTests/compositing/squashing/squash-transform-repainting-transformed-child.html
index a95a056ce783b61d7c07ef26ae35d6d829d8438e..2bb1006b20c794a30d7aa6b30fa5e4aba0fc3314 100644
--- a/LayoutTests/compositing/squashing/squash-transform-repainting-transformed-child.html
+++ b/LayoutTests/compositing/squashing/squash-transform-repainting-transformed-child.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<head>
+<script src="../../resources/run-after-display.js"></script>
<style>
.composited {
-webkit-transform: translatez(0);
@@ -57,13 +58,18 @@ div:hover {
<script>
if (window.internals)
internals.settings.setLayerSquashingEnabled(true);
- if (window.testRunner)
+ if (window.testRunner) {
testRunner.dumpAsText();
-
+ testRunner.waitUntilDone();
+ }
+
function runTest()
{
- testRunner.display();
+ runAfterDisplay(executeTestCases);
+ }
+ function executeTestCases()
+ {
window.internals.startTrackingRepaints(document);
document.getElementById('Case1').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
window.internals.stopTrackingRepaints(document);
@@ -82,6 +88,9 @@ div:hover {
// Display the test results only after test is done so that it does not affect repaint rect results.
document.getElementById('testResults').style.display = "block";
+
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function hoverOverOuterDiv()

Powered by Google App Engine
This is Rietveld 408576698