ap@apple.com | a8234e1 | 2010-03-18 22:42:16 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <body> |
| 3 | <embed name="plg" type="application/x-webkit-test-netscape"></embed> |
| 4 | <p>Test that a plug-in can override Node methods of its element. This also means that the plug-in |
| 5 | is instantiated when accessing properties and methods of its owner element.</p> |
| 6 | <p>Should alert PASS.</p> |
| 7 | <script> |
rniwa@webkit.org | 5cf7fa8 | 2012-06-15 07:38:37 +0000 | [diff] [blame] | 8 | if (window.testRunner) |
| 9 | testRunner.dumpAsText(); |
ap@apple.com | a8234e1 | 2010-03-18 22:42:16 +0000 | [diff] [blame] | 10 | |
| 11 | function pluginCallback() { alert("PASS") } |
| 12 | |
| 13 | try { |
| 14 | plg.normalize(); |
| 15 | } catch (ex) { |
| 16 | alert("Exception: " + ex.description + ". Test plugin was not found"); |
| 17 | } |
| 18 | </script> |
| 19 | </body> |
| 20 | </html> |