blob: 40ebe2aab24171ffe90ca5d7f1c21c15a64ec8f4 [file] [log] [blame]
<script src="../../resources/js-test-pre.js"></script>
</head>
<script>
function runTest() {
plugin = document.getElementById('plugin');
shouldBe("plugin.testEvaluate('1')", "1");
shouldBe("plugin.testEvaluate('plugin')", "plugin");
shouldBe("plugin.testEvaluate('window')", "window");
shouldBe("plugin.testEvaluate('1 + 1')", "2");
}
</script>
<body onLoad="runTest()">
<embed id="plugin" type="application/x-webkit-test-netscape" width=100 height=100></embed>
<p id="description"></p>
<div id="console"></div>
<script>
description("Test NPN_Evaluate");
</script>