changeset 3798:5be62ada9a91

Fixed JavaScriptBridgeTest.java so that it builds.
author "Jasper Potts"
date Mon, 03 Jun 2013 16:32:50 -0700
parents a5b41e87883e
children 3a038dc4f103
files webview/test/javafx/scene/web/JavaScriptBridgeTest.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/webview/test/javafx/scene/web/JavaScriptBridgeTest.java	Mon Jun 03 14:16:48 2013 -0700
+++ b/webview/test/javafx/scene/web/JavaScriptBridgeTest.java	Mon Jun 03 16:32:50 2013 -0700
@@ -52,7 +52,7 @@
             assertEquals("[object HTMLHeadElement]", htmlChildren.getSlot(0).toString());
             JSObject bodyNode = (JSObject) htmlChildren.getSlot(2);
             assertEquals("[object HTMLBodyElement]", bodyNode.toString());
-            assertEquals(Boolean.TRUE, bodyNode.call("hasChildNodes"));
+            assertEquals(Boolean.TRUE, bodyNode.call("hasChildNodes",null));
 //                    JSObject p2Node = (JSObject) doc2.call("getElementById", "p2");
 //                    assertEquals("p", p2Node.getMember("localName"));
 
@@ -76,7 +76,7 @@
             }
             try {
                 ((JSObject) web.executeScript("new String('test me')"))
-                    .call(null);
+                    .call(null,null);
                 fail("NullPointerException expected but not thrown");
             }
             catch (Throwable ex) {
@@ -244,7 +244,7 @@
             
             // test call(null)
             try {
-                parent.call(null);
+                parent.call(null,null);
                 fail("JSObject.call(null) didn't throw NPE");
             } catch (NullPointerException e) {
                 // expected