OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 Pass if there is no crash. |
| 3 <div></div> |
| 4 <span></span> |
| 5 Click anywhere to test manually. |
| 6 <script> |
| 7 if (window.testRunner) { |
| 8 testRunner.dumpAsText(); |
| 9 testRunner.waitUntilDone(); |
| 10 } |
| 11 |
| 12 function requestFullscreen() |
| 13 { |
| 14 document.querySelector("span").webkitRequestFullScreen(); |
| 15 } |
| 16 |
| 17 document.addEventListener("webkitfullscreenchange", function() |
| 18 { |
| 19 document.body.contentEditable = "true"; |
| 20 var range = document.createRange(); |
| 21 range.selectNode(document.body); |
| 22 document.getSelection().addRange(range); |
| 23 document.execCommand("hiliteColor", false, "#000"); |
| 24 if (window.testRunner) { |
| 25 testRunner.notifyDone(); |
| 26 } |
| 27 }); |
| 28 |
| 29 document.addEventListener("click", requestFullscreen); |
| 30 |
| 31 if (window.eventSender) { |
| 32 eventSender.mouseDown(); |
| 33 eventSender.mouseUp(); |
| 34 } |
| 35 </script> |
OLD | NEW |