| Index: LayoutTests/compositing/squashing/squashed-repaints.html
|
| diff --git a/LayoutTests/compositing/squashing/squashed-repaints.html b/LayoutTests/compositing/squashing/squashed-repaints.html
|
| index 31ab0009cf8fb0e321414843a8158d37dea4f785..6dea9ee4213614bf83915206c423f36d628d402c 100644
|
| --- a/LayoutTests/compositing/squashing/squashed-repaints.html
|
| +++ b/LayoutTests/compositing/squashing/squashed-repaints.html
|
| @@ -1,6 +1,7 @@
|
| <!DOCTYPE html>
|
| <html>
|
| <head>
|
| +<script src="../../resources/run-after-display.js"></script>
|
| <style>
|
| div {
|
| position: absolute;
|
| @@ -48,8 +49,10 @@ div:hover {
|
|
|
| </style>
|
| <script>
|
| - if (window.testRunner)
|
| + if (window.testRunner) {
|
| testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + }
|
|
|
| if (window.internals)
|
| internals.settings.setLayerSquashingEnabled(true);
|
| @@ -58,9 +61,11 @@ div:hover {
|
| {
|
| if (!window.internals)
|
| return;
|
| + runAfterDisplay(executeTestCases);
|
| + }
|
|
|
| - testRunner.display();
|
| -
|
| + function executeTestCases()
|
| + {
|
| // Case 1
|
| document.getElementById('Case1').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
|
|
|
| @@ -93,6 +98,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();
|
| }
|
| </script>
|
| </head>
|
|
|