blob: ef74626b5773c0295175773fd0fbdf9bdba19169 [file] [log] [blame]
Torne (Richard Coles)5c87bf82012-11-14 11:46:17 +00001<html>
2<body onload="test();">
3<script>
4function test()
5{
6 document.getElementById("results").innerHTML =
7 "<p>Type of Java String object is: " + typeof(document.getElementById('applet').getString());
8}
9</script>
10
11<p>This test verifies that Java String objects are of the correct type when returned to JavaScript.</p>
12
13<p>On success, the Java String object will be of type &quot;object&quot;.<br/>
14On failure, the type will be &quot;function&quot;.<br/>
15See Radar 4212626.</p>
16
17<div id="results">
18</div>
19
20<APPLET id="applet" code="StringTypeTest.class" codebase="resources" width="0" height="0">
21</APPLET>
22
23</body>
24</html>