| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 <embed name="plg" type="application/x-webkit-test-netscape"></embed> | 3 <embed name="plg" type="application/x-blink-deprecated-test-plugin"></embed> |
| 4 <p>Test that a plugin can override Node methods of its element. This also means
that the plugin | 4 <p>Test that a plugin can override Node methods of its element. This also means
that the plugin |
| 5 is instantiated when accessing properties and methods of its owner element.</p> | 5 is instantiated when accessing properties and methods of its owner element.</p> |
| 6 <p>Should alert PASS.</p> | 6 <p>Should alert PASS.</p> |
| 7 <script> | 7 <script> |
| 8 if (window.testRunner) | 8 if (window.testRunner) |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 | 10 |
| 11 function pluginCallback() { alert("PASS") } | 11 function pluginCallback() { alert("PASS") } |
| 12 | 12 |
| 13 try { | 13 try { |
| 14 plg.normalize(); | 14 plg.normalize(); |
| 15 } catch (ex) { | 15 } catch (ex) { |
| 16 alert("Exception: " + ex.description + ". Test plugin was not found"); | 16 alert("Exception: " + ex.description + ". Test plugin was not found"); |
| 17 } | 17 } |
| 18 </script> | 18 </script> |
| 19 </body> | 19 </body> |
| 20 </html> | 20 </html> |
| OLD | NEW |