| OLD | NEW |
| (Empty) |
| 1 <!doctype HTML> | |
| 2 <script src="../../resources/run-after-layout-and-paint.js"></script> | |
| 3 <script src="../selection/resources/selection.js"></script> | |
| 4 <script src="../../resources/js-test.js"></script> | |
| 5 <div id="container"> | |
| 6 Selected area | |
| 7 </div> | |
| 8 <script> | |
| 9 var jsTestIsAsync = true; | |
| 10 onload = function() { | |
| 11 description('If this test passes, a frame was scheduled when focusing the wi
ndow.'); | |
| 12 | |
| 13 selectRange(container, 0, container, 1); | |
| 14 if (window.internals) | |
| 15 window.internals.setFocused(false); | |
| 16 | |
| 17 if (window.testRunner) { | |
| 18 window.testRunner.waitUntilDone(); | |
| 19 window.testRunner.dumpAsText(); | |
| 20 runAfterLayoutAndPaint(function() { | |
| 21 window.internals.setFocused(true); | |
| 22 window.scheduled = window.testRunner.animationScheduled(); | |
| 23 shouldBe('scheduled', 'true'); | |
| 24 finishJSTest(); | |
| 25 window.testRunner.notifyDone(); | |
| 26 | |
| 27 }); | |
| 28 } | |
| 29 | |
| 30 } | |
| 31 </script> | |
| OLD | NEW |