| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <button id="button"></button> |
| 3 <script> |
| 4 |
| 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); |
| 7 testRunner.setScriptsAllowed(false); |
| 8 |
| 9 document.getElementById('button').addEventListener('keydown', function() { c
onsole.log('keydown event in main world') }); |
| 10 testRunner.evaluateScriptInIsolatedWorld(1, "document.getElementById('button
').addEventListener('keydown', function() { console.log('keydown event in isolat
ed world') });"); |
| 11 |
| 12 document.getElementById("button").focus(); |
| 13 eventSender.keyDown('e', []); |
| 14 } else { |
| 15 console.log("This test reuqires testRunner.setScriptsAllowed, so it can't ru
n in a browser."); |
| 16 } |
| 17 </script> |
| 18 |
| OLD | NEW |