| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script> | 2 <script> |
| 3 function test() | 3 function test() |
| 4 { | 4 { |
| 5 if (window.testRunner) { | 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 testRunner.dumpNavigationPolicy(); | 7 testRunner.dumpNavigationPolicy(); |
| 8 document.querySelector("#link").focus(); | 8 document.querySelector("#link").focus(); |
| 9 eventSender.keyDown("\n", ["ctrlKey", "metaKey"]); | 9 eventSender.keyDown("Enter", ["ctrlKey", "metaKey"]); |
| 10 } | 10 } |
| 11 } | 11 } |
| 12 </script> | 12 </script> |
| 13 <body onload="test()"> | 13 <body onload="test()"> |
| 14 <p>Tests that hitting ctrl-enter on a link with target=_blank still opens it in
the background</p> | 14 <p>Tests that hitting ctrl-enter on a link with target=_blank still opens it in
the background</p> |
| 15 <a href="blank" id="link">link</a> | 15 <a href="blank" id="link">link</a> |
| 16 </body> | 16 </body> |
| OLD | NEW |