Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / plugins / keyboard-events.html
blob51b773d6c9b138541ac8b58a8755737a733b9728
1 <html>
2 <body>
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>
5 <script>
7 plg.windowedPlugin = false;
8 plg.eventLoggingEnabled = true;
10 if (!window.testRunner) {
11 document.write("This test does not work in manual mode.");
12 } else {
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
29 </script>
30 </body>
31 </html>