OLD | NEW |
| (Empty) |
1 <html> | |
2 | |
3 <head> | |
4 <script src="npapi.js"></script> | |
5 | |
6 <script> | |
7 function ResizePluginWithinScript() { | |
8 document.getElementById("1").height = "10"; | |
9 // Normally WebKit will resize asynchronously. Force it to do it now by asking | |
10 // it to calculate the document height. | |
11 var height = document.body.offsetHeight; | |
12 } | |
13 | |
14 </script> | |
15 </head> | |
16 | |
17 <body> | |
18 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | |
19 Test running.... | |
20 </div> | |
21 | |
22 Resize During Paint Test<p> | |
23 This test ensures that if a windowless plugin resizes during a paint, | |
24 deallocated memory isn't used.<br /> | |
25 | |
26 <embed type="application/vnd.npapi-test" | |
27 src="foo" | |
28 name="resize_during_paint" | |
29 id="1" | |
30 mode="np_embed" | |
31 height="300" | |
32 width="300" | |
33 /> | |
34 | |
35 <script> | |
36 var height = document.body.offsetHeight; | |
37 </script> | |
38 | |
39 </body> | |
40 </html> | |
OLD | NEW |