OLD | NEW |
1 <html> | 1 <html> |
2 <script> | 2 <script> |
3 if (window.layoutTestController) { | 3 if (window.layoutTestController) { |
4 layoutTestController.dumpAsText(); | 4 layoutTestController.dumpAsText(); |
5 layoutTestController.waitUntilDone(); | 5 layoutTestController.waitUntilDone(); |
6 } | 6 } |
7 | 7 |
8 function runTest() | 8 function runTest() |
9 { | 9 { |
10 document.write("PASS"); | 10 document.write("PASS"); |
11 | 11 |
12 if (window.layoutTestController) | 12 if (window.layoutTestController) |
13 layoutTestController.notifyDone(); | 13 layoutTestController.notifyDone(); |
14 } | 14 } |
15 | 15 |
16 function select() | 16 function select() |
17 { | 17 { |
18 document.execCommand("SelectAll"); | 18 document.execCommand("SelectAll"); |
19 } | 19 } |
20 | 20 |
21 window.addEventListener("selectstart", runTest, true); | 21 window.addEventListener("selectstart", runTest, true); |
22 window.setInterval(select, 0); | 22 window.setInterval(select, 0); |
23 </script> | 23 </script> |
24 </html> | 24 </html> |
OLD | NEW |