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 shouldBe("plugin.testEvaluate('1')", "1"); | |
9 shouldBe("plugin.testEvaluate('plugin')", "plugin"); | |
10 shouldBe("plugin.testEvaluate('window')", "window"); | |
11 shouldBe("plugin.testEvaluate('1 + 1')", "2"); | |
12 } | |
13 </script> | |
14 <body onLoad="runTest()"> | |
15 <embed id="plugin" type="application/x-webkit-test-netscape" width=100 height=10
0></embed> | |
16 <p id="description"></p> | |
17 <div id="console"></div> | |
18 | |
19 <script> | |
20 description("Test NPN_Evaluate"); | |
21 | |
22 </script> | |
OLD | NEW |