4 <script src="../fast/js/resources/js-test-pre.js"></script>
6 if (window.layoutTestController)
7 layoutTestController.overridePreference("WebKitJavaEnabled", "1");
12 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=35202">bug 35202</a>:
13 Calling Java method which accepts Object always passes a null argument.</p>
15 <div id="console"></div>
16 <APPLET CODE="SharedApplet.class" NAME="javaTest" WIDTH=150 HEIGHT=25 MAYSCRIPT></APPLET>
19 // The returned result should be a primitive, but WebKit makes a string object out of it.
20 // Until this is fixed, checking the result with == instead of relying on shouldBe.
21 shouldBe('document.javaTest.objectToString("PАSS") == "PАSS"', 'true');
22 shouldBe('document.javaTest.objectToString(undefined) == "undefined"', 'true');
23 shouldBe('document.javaTest.objectToString(5) == "5.0"', 'true');
26 <script src="../fast/js/resources/js-test-post.js"></script>