Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <body> | |
| 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> | |
| 5 <div id="host" tabindex="1"> | |
| 6 <input id="target" type="color" value="#000000"> | |
| 7 </div> | |
| 8 <script> | |
| 9 | |
| 10 shadow = host.webkitCreateShadowRoot(); | |
| 11 shadow.innerHTML = "<content></content>"; | |
| 12 jsTestIsAsync = true; | |
| 13 | |
| 14 if (window.eventSender) { | |
| 15 shouldBeFalse("testRunner.isChooserShown()"); | |
| 16 eventSender.dragMode = false; | |
| 17 eventSender.mouseMoveTo(target.offsetLeft, target.offsetTop + target.offsetHe ight / 2); | |
| 18 eventSender.mouseDown(); | |
| 19 eventSender.mouseUp(); | |
| 20 testRunner.setWindowIsKey(false); | |
| 21 window.setTimeout(function() { | |
| 22 window.setTimeout(function() { | |
| 23 shouldBeTrue("testRunner.isChooserShown()"); | |
| 24 finishJSTest(); | |
| 25 }, 0); | |
| 26 }, 0); | |
|
esprehn
2013/06/13 02:45:40
Btw, these nested setTimeout calls will be flaky.
| |
| 27 } | |
| 28 | |
| 29 </script> | |
| 30 <script src="../../../fast/js/resources/js-test-post.js"></script> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |