| OLD | NEW |
| 1 | 1 |
| 2 <script src="../../fast/js/resources/js-test-pre.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
| 3 </head> | 3 </head> |
| 4 <script> | 4 <script> |
| 5 function runTest() { | 5 function runTest() { |
| 6 plugin = document.getElementById('plugin'); | 6 plugin = document.getElementById('plugin'); |
| 7 | 7 |
| 8 obj = { property : 'value' } | 8 obj = { property : 'value' } |
| 9 shouldBe("'property' in obj", "true"); | 9 shouldBe("'property' in obj", "true"); |
| 10 plugin.testRemoveProperty(obj, 'property'); | 10 plugin.testRemoveProperty(obj, 'property'); |
| 11 shouldBe("'property' in obj", "false"); | 11 shouldBe("'property' in obj", "false"); |
| 12 | 12 |
| 13 array = [ 1, 2, 3, 4, 5]; | 13 array = [ 1, 2, 3, 4, 5]; |
| 14 shouldBe("array[1]", "2") | 14 shouldBe("array[1]", "2") |
| 15 plugin.testRemoveProperty(array, 1); | 15 plugin.testRemoveProperty(array, 1); |
| 16 shouldBe("array[1]", "undefined") | 16 shouldBe("array[1]", "undefined") |
| 17 } | 17 } |
| 18 </script> | 18 </script> |
| 19 <body onLoad="runTest()"> | 19 <body onLoad="runTest()"> |
| 20 <embed id="plugin" type="application/x-webkit-test-netscape" test="npruntime-rem
ove-property"></embed> | 20 <embed id="plugin" type="application/x-webkit-test-netscape" test="npruntime-rem
ove-property"></embed> |
| 21 <p id="description"></p> | 21 <p id="description"></p> |
| 22 <div id="console"></div> | 22 <div id="console"></div> |
| 23 | 23 |
| 24 <script> | 24 <script> |
| 25 description("Test NPN_RemoveProperty"); | 25 description("Test NPN_RemoveProperty"); |
| 26 | 26 |
| 27 </script> | 27 </script> |
| OLD | NEW |