OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <script src="../resources/common.js"></script> | 5 <script src="../resources/common.js"></script> |
6 <div id="host" tabindex="1"> | 6 <div id="host" tabindex="1"> |
7 <input id="target" type="color" value="#000000"> | 7 <input id="target" type="color" value="#000000"> |
8 </div> | 8 </div> |
9 <script> | 9 <script> |
10 | 10 |
11 if (window.eventSender) { | 11 if (window.eventSender) { |
12 window.jsTestIsAsync = true | 12 window.jsTestIsAsync = true |
13 | 13 |
14 clickElement(target); | 14 clickElement(target); |
15 shouldBeTrue("testRunner.isChooserShown()"); | 15 shouldBeTrue("testRunner.isChooserShown()"); |
16 | 16 |
17 target.style.display = "none"; | 17 target.style.display = "none"; |
18 | 18 |
19 var nwait = 5; | 19 var nwait = 5; |
20 function testClosed() | 20 function testClosed() |
21 { | 21 { |
22 nwait--; | 22 nwait--; |
23 if (0 < nwait) | 23 if (0 < nwait) |
24 return window.setTimeout(testClosed, 0); | 24 return window.setTimeout(testClosed, 0); |
| 25 // Let an Oilpan GC finalize the popup controller and bring about closur
e of color chooser. |
| 26 gc(); |
25 shouldBeFalse("testRunner.isChooserShown()"); | 27 shouldBeFalse("testRunner.isChooserShown()"); |
26 finishJSTest(); | 28 finishJSTest(); |
27 } | 29 } |
28 | 30 |
29 window.setTimeout(testClosed, 0); | 31 window.setTimeout(testClosed, 0); |
30 } | 32 } |
31 | 33 |
32 </script> | 34 </script> |
33 </body> | 35 </body> |
34 </html> | 36 </html> |
OLD | NEW |