| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 | 2 |
| 3 <script> | 3 <script> |
| 4 if (window.testRunner) { | 4 if (window.testRunner) { |
| 5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function runTest() { | 9 function runTest() { |
| 10 if (!window.testRunner) { | 10 if (!window.testRunner) { |
| 11 log("This test can only be run under WebKit's testRunner environment"); | 11 log("This test can only be run under WebKit's testRunner environment"); |
| 12 return; | 12 return; |
| 13 } | 13 } |
| 14 | 14 |
| 15 testRunner.evaluateScriptInIsolatedWorld(0, " \ | 15 testRunner.evaluateScriptInIsolatedWorld(1, " \ |
| 16 function test(msg, expected) \ | 16 function test(msg, expected) \ |
| 17 { \ | 17 { \ |
| 18 var console = document.getElementById('console'); \ | 18 var console = document.getElementById('console'); \ |
| 19 var span = document.createElement('span'); \ | 19 var span = document.createElement('span'); \ |
| 20 if (msg == undefined) \ | 20 if (msg == undefined) \ |
| 21 msg = 'undefined'; \ | 21 msg = 'undefined'; \ |
| 22 else \ | 22 else \ |
| 23 msg = msg.toString(); \ | 23 msg = msg.toString(); \ |
| 24 span.innerHTML = msg == expected ? 'PASS<br>' : 'FAIL - <br>(' + msg
+ ') but expected <br>(' + expected + ')<br>'; \ | 24 span.innerHTML = msg == expected ? 'PASS<br>' : 'FAIL - <br>(' + msg
+ ') but expected <br>(' + expected + ')<br>'; \ |
| 25 console.appendChild(span); \ | 25 console.appendChild(span); \ |
| (...skipping 30 matching lines...) Expand all Loading... |
| 56 </script> | 56 </script> |
| 57 </head> | 57 </head> |
| 58 | 58 |
| 59 <body onLoad="runTest()"> | 59 <body onLoad="runTest()"> |
| 60 <embed id="plugin-embed" type="application/x-webkit-test-netscape" test="plugin-
scriptable-object-overrides-all-properties"></embed><br> | 60 <embed id="plugin-embed" type="application/x-webkit-test-netscape" test="plugin-
scriptable-object-overrides-all-properties"></embed><br> |
| 61 <object id="plugin-object" type="application/x-webkit-test-netscape" test="plugi
n-scriptable-object-overrides-all-properties"></object><br> | 61 <object id="plugin-object" type="application/x-webkit-test-netscape" test="plugi
n-scriptable-object-overrides-all-properties"></object><br> |
| 62 Test that the plugin script object - in a non-standard world - can override any
property on its owning node *except* for the properties that are built in to the
node or its constructor/prototype chain.<br> | 62 Test that the plugin script object - in a non-standard world - can override any
property on its owning node *except* for the properties that are built in to the
node or its constructor/prototype chain.<br> |
| 63 For example, it can override "madeUpProperty" but cannot override "getAttribute"
or "className".<br> | 63 For example, it can override "madeUpProperty" but cannot override "getAttribute"
or "className".<br> |
| 64 <div id="console"></div> | 64 <div id="console"></div> |
| 65 </body> | 65 </body> |
| OLD | NEW |