OLD | NEW |
1 <style> | 1 <style> |
2 ::-webkit-scrollbar-corner { | 2 ::-webkit-scrollbar-corner { |
3 color: Red; | 3 color: Red; |
4 } | 4 } |
5 </style> | 5 </style> |
6 <p>Focus on the input and hit Escape and see if the browser crashes.</p> | 6 <p>Focus on the input and hit Escape and see if the browser crashes.</p> |
7 <input placeholder="foo" id=i> | 7 <input placeholder="foo" id=i> |
8 <div id=console></div> | 8 <div id=console></div> |
9 <script> | 9 <script> |
10 document.getElementById('i').addEventListener("keydown", function() { | 10 document.getElementById('i').addEventListener("keydown", function() { |
11 this.style.display = "none"; | 11 this.style.display = "none"; |
12 document.getElementById('console').innerText = 'PASS (not crashed)'; | 12 document.getElementById('console').innerText = 'PASS (not crashed)'; |
13 if (window.layoutTestController) | 13 if (window.layoutTestController) |
14 layoutTestController.notifyDone(); | 14 layoutTestController.notifyDone(); |
15 }); | 15 }); |
16 | 16 |
17 if (window.layoutTestController && window.eventSender) { | 17 if (window.layoutTestController && window.eventSender) { |
18 layoutTestController.dumpAsText(); | 18 layoutTestController.dumpAsText(); |
19 layoutTestController.waitUntilDone(); | 19 layoutTestController.waitUntilDone(); |
20 setTimeout(function() { | 20 setTimeout(function() { |
21 document.getElementById('i').focus(); | 21 document.getElementById('i').focus(); |
22 eventSender.keyDown('a'); | 22 eventSender.keyDown('a'); |
23 }, 0); | 23 }, 0); |
24 } | 24 } |
25 | 25 |
26 </script> | 26 </script> |
OLD | NEW |