Cleanup after SK_SUPPORT_LEGACY_COLOR32_MATH rebaseline
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / plugins / resources / resize-from-plugin-frame.html
bloba9bafc7cd75d335dab12cfd8987cd9477a6d99f7
1 <html>
2 <body>
3 <embed name="plg" type="application/x-webkit-test-netscape" width="100px" height="100px">
4 <p>Test for NPP_SetWindow calls sent while a plugin resizes itself.</p>
5 <pre id=result></pre>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.dumpChildFramesAsText();
12 function resizePlugin(width, height)
14 plg.style.width = width + "px";
15 plg.style.height = height + "px";
18 function test()
20 try {
21 plg.resizeTo(200, 200);
22 document.getElementById("result").innerHTML = plg.lastSetWindowArguments
23 + "\nHeight and width should equal 200, and the plugin size should not change on scroll.";
24 } catch (ex) {
25 alert("Exception: " + ex.description + ". Test plugin was not found");
29 plg.onclick = test;
31 if (window.eventSender) {
32 eventSender.mouseMoveTo(50, 70);
33 eventSender.mouseDown();
34 eventSender.mouseUp();
35 } else
36 document.getElementById("result").innerHTML = "Please click the plugin square above.\n&nbsp;";
38 </script>
39 <div style="visibility:hidden;height:5000px"></div>
40 </body>
41 </html>