blob: a5912c76588a08f554d144d4992ac86a64432b0c [file] [log] [blame]
<meta charset="utf-8">
<script src="../fast/js/resources/js-test-pre.js"></script>
if (window.testRunner)
testRunner.overridePreference("WebKitJavaEnabled", "1");
<p>Test for <a href="">bug 35202</a>:
Calling Java method which accepts Object always passes a null argument.</p>
<div id="console"></div>
<APPLET CODE="SharedApplet.class" NAME="javaTest" WIDTH=150 HEIGHT=25 MAYSCRIPT></APPLET>
// The returned result should be a primitive, but WebKit makes a string object out of it.
// Until this is fixed, checking the result with == instead of relying on shouldBe.
shouldBe('document.javaTest.objectToString("PАSS") == "PАSS"', 'true');
shouldBe('document.javaTest.objectToString(undefined) == "undefined"', 'true');
shouldBe('document.javaTest.objectToString(5) == "5.0"', 'true');
<script src="../fast/js/resources/js-test-post.js"></script>