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