blob: 9117777d27c46f036452430699a4f57b005bae8d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that valueOf() works correctly on NPObject.");
plugin = document.createElement("embed");
plugin.type = "application/x-webkit-test-netscape";
plugin.setAttribute('test', 'to-string-and-value-of-object');
document.body.appendChild(plugin);
shouldBe("plugin.valueOf()", "123456789");
shouldBeTrue("plugin == 123456789");
var successfullyParsed = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>