aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/JSObjectWithoutToString/resources
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reproducers/simple/JSObjectWithoutToString/resources')
-rw-r--r--tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.html25
-rw-r--r--tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.js8
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.html b/tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.html
new file mode 100644
index 0000000..558d1b9
--- /dev/null
+++ b/tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.html
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en-US">
+ <head>
+ <title>JavaScript to Java LiveConnect - Function return values from applet</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+
+ <script language="JavaScript" src="JSObjectWithoutToString.js"></script>
+
+ </head>
+ <body>
+
+ <h2> The JSObjectWithoutToString html page</h2>
+
+
+ <applet code="JSObjectWithoutToString" archive="JSObjectWithoutToString.jar" width="1000" height="100" id="jswithouttostring" MAYSCRIPT>
+ </applet>
+
+ <div id="messageDiv"></div>
+
+ <script laguage="javascript">
+ doToStringTest();
+ </script>
+
+ </body>
+</html>
diff --git a/tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.js b/tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.js
new file mode 100644
index 0000000..47d7d97
--- /dev/null
+++ b/tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.js
@@ -0,0 +1,8 @@
+function doToStringTest(){
+ var applet = document.getElementById('jswithouttostring');
+
+ var null_obj = Object.create(null);
+
+ applet.callJSToString(null_obj);
+}
+