| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <script> | |
| 3 function runTest() | |
| 4 { | |
| 5 if (window.testRunner) | |
| 6 testRunner.dumpAsText(); | |
| 7 | |
| 8 var plugin = document.getElementById("testPlugin"); | |
| 9 var result = document.getElementById('result'); | |
| 10 | |
| 11 var o = { stringProperty : 'foo', nullProperty : null, undefinedProperty : u
ndefined }; | |
| 12 | |
| 13 if (!plugin.testGetPropertyReturnValue(o, 'stringProperty')) { | |
| 14 result.innerHTML = "FAILURE: getting stringProperty returned false"; | |
| 15 return; | |
| 16 } | |
| 17 | |
| 18 if (!plugin.testGetPropertyReturnValue(o, 'nullProperty')) { | |
| 19 result.innerHTML = "FAILURE: getting nullProperty returned false"; | |
| 20 return; | |
| 21 } | |
| 22 | |
| 23 if (!plugin.testGetPropertyReturnValue(o, 'undefinedProperty')) { | |
| 24 result.innerHTML = "FAILURE: getting undefinedProperty returned false"; | |
| 25 return; | |
| 26 } | |
| 27 | |
| 28 if (!plugin.testGetPropertyReturnValue(o, 'nonExistentProperty')) { | |
| 29 result.innerHTML = "FAILURE: getting undefinedProperty returned false"; | |
| 30 return; | |
| 31 } | |
| 32 | |
| 33 result.innerHTML = 'SUCCESS'; | |
| 34 } | |
| 35 </script> | |
| 36 | |
| 37 <body onload="runTest();"> | |
| 38 <embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" hei
ght="200"></embed> | |
| 39 This tests that we return the correct return value when a plugin calls NPN_GetPr
operty. | |
| 40 <div id="result">FAILURE</div> | |
| 41 </body> | |
| 42 </html> | |
| OLD | NEW |