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

Side by Side Diff: LayoutTests/plugins/resources/resize-from-plugin-frame.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
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <embed name="plg" type="application/x-webkit-test-netscape" width="100px" height ="100px"> 3 <embed name="plg" type="application/x-webkit-test-netscape" width="100px" height ="100px">
4 <p>Test for NPP_SetWindow calls sent while a plug-in resizes itself.</p> 4 <p>Test for NPP_SetWindow calls sent while a plugin resizes itself.</p>
5 <pre id=result></pre> 5 <pre id=result></pre>
6 <script> 6 <script>
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.dumpChildFramesAsText(); 9 testRunner.dumpChildFramesAsText();
10 } 10 }
11 11
12 function resizePlugin(width, height) 12 function resizePlugin(width, height)
13 { 13 {
14 plg.style.width = width + "px"; 14 plg.style.width = width + "px";
15 plg.style.height = height + "px"; 15 plg.style.height = height + "px";
16 } 16 }
17 17
18 function test() 18 function test()
19 { 19 {
20 try { 20 try {
21 plg.resizeTo(200, 200); 21 plg.resizeTo(200, 200);
22 document.getElementById("result").innerHTML = plg.lastSetWindowArguments 22 document.getElementById("result").innerHTML = plg.lastSetWindowArguments
23 + "\nHeight and width should equal 200, and the plug-in size should not change on scroll."; 23 + "\nHeight and width should equal 200, and the plugin size should n ot change on scroll.";
24 } catch (ex) { 24 } catch (ex) {
25 alert("Exception: " + ex.description + ". Test plugin was not found"); 25 alert("Exception: " + ex.description + ". Test plugin was not found");
26 } 26 }
27 } 27 }
28 28
29 plg.onclick = test; 29 plg.onclick = test;
30 30
31 if (window.eventSender) { 31 if (window.eventSender) {
32 eventSender.mouseMoveTo(50, 70); 32 eventSender.mouseMoveTo(50, 70);
33 eventSender.mouseDown(); 33 eventSender.mouseDown();
34 eventSender.mouseUp(); 34 eventSender.mouseUp();
35 } else 35 } else
36 document.getElementById("result").innerHTML = "Please click the plug-in squa re above.\n&nbsp;"; 36 document.getElementById("result").innerHTML = "Please click the plugin squar e above.\n&nbsp;";
37 37
38 </script> 38 </script>
39 <div style="visibility:hidden;height:5000px"></div> 39 <div style="visibility:hidden;height:5000px"></div>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698