3 <embed name=
"plg" type=
"application/x-webkit-test-netscape" windowedPlugin=
"false" width=
100 height=
100></embed>
4 <p>This test checks if a plugin can receive keyboard events sent from eventSender. This is a test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=34936">Bug
34936</a>.
</p>
7 plg
.windowedPlugin
= false;
8 plg
.eventLoggingEnabled
= true;
10 if (!window
.testRunner
) {
11 document
.write("This test does not work in manual mode.");
13 testRunner
.dumpAsText();
15 // Send a mouse-click event to set the input focus to the test plugin.
16 eventSender
.mouseMoveTo(0,0);
17 eventSender
.mouseMoveTo(20,20);
18 eventSender
.mouseDown();
19 eventSender
.mouseUp();
21 // Send keyboard events to the plugin.
22 eventSender
.keyDown('a');
23 eventSender
.keyDown('b');
24 eventSender
.keyDown('c');
27 plg
.eventLoggingEnabled
= false; // stop logging so our output doesn't bleed into the next test