changeset 3813:e096b075097d

Backed out changeset 5be62ada9a91 to fix unit test failure
author kcr
date Tue, 04 Jun 2013 08:32:24 -0700
parents 8720c6729e2c
children ea108dc8da59
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	Tue Jun 04 08:28:47 2013 -0700
+++ b/webview/test/javafx/scene/web/JavaScriptBridgeTest.java	Tue Jun 04 08:32:24 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",null));
+            assertEquals(Boolean.TRUE, bodyNode.call("hasChildNodes"));
 //                    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,null);
+                    .call(null);
                 fail("NullPointerException expected but not thrown");
             }
             catch (Throwable ex) {
@@ -244,7 +244,7 @@
             
             // test call(null)
             try {
-                parent.call(null,null);
+                parent.call(null);
                 fail("JSObject.call(null) didn't throw NPE");
             } catch (NullPointerException e) {
                 // expected