| OLD | NEW |
| 1 <div id="container"> | 1 <div id="container"> |
| 2 <p>You should run this test in Test Runner</p> | 2 <p>You should run this test in Test Runner</p> |
| 3 <form method="post" action="resources/post-with-modifier.php"> | 3 <form method="post" action="resources/post-with-modifier.php"> |
| 4 <input type="hidden" name="a" value="b"> | 4 <input type="hidden" name="a" value="b"> |
| 5 <input type="submit"> | 5 <input type="submit"> |
| 6 </form> | 6 </form> |
| 7 </div> | 7 </div> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script src="/js-test-resources/js-test.js"></script> | 9 <script src="/js-test-resources/js-test.js"></script> |
| 10 <script> | 10 <script> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 testRunner.setCloseRemainingWindowsWhenComplete(true); | 25 testRunner.setCloseRemainingWindowsWhenComplete(true); |
| 26 | 26 |
| 27 window.onload = function() { | 27 window.onload = function() { |
| 28 var submit = document.querySelector('input[type="submit"]'); | 28 var submit = document.querySelector('input[type="submit"]'); |
| 29 eventSender.dragMode = false; | 29 eventSender.dragMode = false; |
| 30 eventSender.mouseMoveTo(submit.offsetLeft + 3, submit.offsetTop + 3); | 30 eventSender.mouseMoveTo(submit.offsetLeft + 3, submit.offsetTop + 3); |
| 31 eventSender.mouseDown(0); | 31 eventSender.mouseDown(0); |
| 32 eventSender.mouseUp(0, ['shiftKey']); | 32 eventSender.mouseUp(0, ['shiftKey']); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 // Shift-clicking doesn't set window.opener, so we allow the new window |
| 36 // to find the opener using the name being set below. |
| 37 window.name = "mainTestWindow"; |
| 35 window.addEventListener('message', function(e) { | 38 window.addEventListener('message', function(e) { |
| 36 concludeTest(e.data); | 39 concludeTest(e.data); |
| 37 }); | 40 }); |
| 38 } | 41 } |
| 39 </script> | 42 </script> |
| OLD | NEW |