Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: LayoutTests/plugins/keyboard-events.html

Issue 1005223002: Blink: Replace all "plug-in" with "plugin". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert netscape-dom-access tests. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/plugins/js-from-destroy.html ('k') | LayoutTests/plugins/missing-plugin.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
OLDNEW
« no previous file with comments | « LayoutTests/plugins/js-from-destroy.html ('k') | LayoutTests/plugins/missing-plugin.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698