| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 | |
| 3 <head> | |
| 4 <script src="npapi.js"></script> | |
| 5 </head> | |
| 6 | |
| 7 <body> | |
| 8 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | |
| 9 Test running.... | |
| 10 </div> | |
| 11 | |
| 12 | |
| 13 Plugin Instance In Paint Test<p> | |
| 14 | |
| 15 Tests that there's no deadlock when a plugin instance is created while handling
a paint message. | |
| 16 | |
| 17 <DIV ID="PluginDiv"> | |
| 18 <embed type="application/vnd.npapi-test" | |
| 19 src="foo" | |
| 20 name="create_instance_in_paint" | |
| 21 id="1" | |
| 22 mode="np_embed" | |
| 23 > | |
| 24 </DIV> | |
| 25 | |
| 26 <DIV id="PluginDiv2"></DIV> | |
| 27 | |
| 28 <script> | |
| 29 var height = document.body.offsetHeight; | |
| 30 | |
| 31 | |
| 32 function CreateNewInstance() { | |
| 33 var obj = document.createElement('embed'); | |
| 34 obj.setAttribute('type', 'application/vnd.npapi-test'); | |
| 35 obj.setAttribute('src', 'bar'); | |
| 36 obj.setAttribute('name', 'create_instance_in_paint'); | |
| 37 obj.setAttribute('id', '2'); | |
| 38 obj.setAttribute('mode', 'np_embed'); | |
| 39 document.getElementById("PluginDiv2").appendChild(obj); | |
| 40 } | |
| 41 </script> | |
| 42 | |
| 43 </body> | |
| 44 </html> | |
| OLD | NEW |