| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 <embed name="plg" type="application/x-webkit-test-netscape" windowedPlugin="fals
e" width=100 height=100></embed> | 3 <embed name="plg" type="application/x-webkit-test-netscape" windowedPlugin="fals
e" width=100 height=100></embed> |
| 4 <p>This test checks if a plug-in can receive keyboard events sent from eventSend
er. This is a test for <a href="https://bugs.webkit.org/show_bug.cgi?id=34936">B
ug 34936</a>.</p> | 4 <p>This test checks if a plugin can receive keyboard events sent from eventSende
r. This is a test for <a href="https://bugs.webkit.org/show_bug.cgi?id=34936">Bu
g 34936</a>.</p> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 plg.windowedPlugin = false; | 7 plg.windowedPlugin = false; |
| 8 plg.eventLoggingEnabled = true; | 8 plg.eventLoggingEnabled = true; |
| 9 | 9 |
| 10 if (!window.testRunner) { | 10 if (!window.testRunner) { |
| 11 document.write("This test does not work in manual mode."); | 11 document.write("This test does not work in manual mode."); |
| 12 } else { | 12 } else { |
| 13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
| 14 | 14 |
| 15 // Send a mouse-click event to set the input focus to the test plug-in. | 15 // Send a mouse-click event to set the input focus to the test plugin. |
| 16 eventSender.mouseMoveTo(0,0); | 16 eventSender.mouseMoveTo(0,0); |
| 17 eventSender.mouseMoveTo(20,20); | 17 eventSender.mouseMoveTo(20,20); |
| 18 eventSender.mouseDown(); | 18 eventSender.mouseDown(); |
| 19 eventSender.mouseUp(); | 19 eventSender.mouseUp(); |
| 20 | 20 |
| 21 // Send keyboard events to the plug-in. | 21 // Send keyboard events to the plugin. |
| 22 eventSender.keyDown('a'); | 22 eventSender.keyDown('a'); |
| 23 eventSender.keyDown('b'); | 23 eventSender.keyDown('b'); |
| 24 eventSender.keyDown('c'); | 24 eventSender.keyDown('c'); |
| 25 } | 25 } |
| 26 | 26 |
| 27 plg.eventLoggingEnabled = false; // stop logging so our output doesn't bleed
into the next test | 27 plg.eventLoggingEnabled = false; // stop logging so our output doesn't bleed
into the next test |
| 28 | 28 |
| 29 </script> | 29 </script> |
| 30 </body> | 30 </body> |
| 31 </html> | 31 </html> |
| OLD | NEW |