OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/run-after-layout-and-paint.js"></script> |
| 3 <div id="frameContainer"> |
| 4 <iframe src="./resources/composited-iframe-hidden-subframe.html"></iframe> |
| 5 </div> |
| 6 <p>This test passes if there is no assert failure in debug builds and there is n
o visible |
| 7 content in the iframe above after the page fully settles. |
| 8 <script> |
| 9 function hideFrameContainer() { |
| 10 frameContainer.style.visibility = 'hidden'; |
| 11 } |
| 12 |
| 13 function showFrameContainer() { |
| 14 frameContainer.style.visibility = 'visible'; |
| 15 } |
| 16 |
| 17 // We were seeing assert failure when we hid and then re-showed the iframe due |
| 18 // to a stale graphics layer with an old invalidation posted by the animated |
| 19 // element. To prevent regression we hide and re-show the iframe, and hide again |
| 20 // to ensure the content is actually hidden. |
| 21 if (window.testRunner) |
| 22 testRunner.waitUntilDone(); |
| 23 runAfterLayoutAndPaint(function() { |
| 24 hideFrameContainer(); |
| 25 runAfterLayoutAndPaint(function() { |
| 26 showFrameContainer(); |
| 27 runAfterLayoutAndPaint(function() { |
| 28 hideFrameContainer(); |
| 29 if (window.testRunner) |
| 30 runAfterLayoutAndPaint(function() { |
| 31 testRunner.notifyDone(); |
| 32 }); |
| 33 }); |
| 34 }); |
| 35 }); |
| 36 </script> |
OLD | NEW |