aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java')
-rw-r--r--tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java b/tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java
index 090940f..0c67708 100644
--- a/tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java
+++ b/tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java
@@ -48,6 +48,9 @@ import org.junit.Test;
public class JSToJFuncParamTest extends BrowserTest {
+ //the JS<->J tests tend to make Opera unusable
+ public final boolean doNotRunInOpera = true;
+
private final String initStr = "JSToJFuncParam applet initialized.";
private final String afterStr = "afterTests";
@@ -70,6 +73,13 @@ public class JSToJFuncParamTest extends BrowserTest {
}
private void jsToJavaFuncParamTest(String funcStr, String paramStr, String expectedVal) throws Exception {
+
+ if( doNotRunInOpera){
+ if(server.getCurrentBrowser().getID() == Browsers.opera){
+ return;
+ }
+ }
+
String strURL = "/JSToJFuncParam.html?" + funcStr + ";" + paramStr;
ProcessResult pr = server.executeBrowser(strURL, new CountingClosingListenerImpl(), new CountingClosingListenerImpl());
String expectedStdout = funcStr + " " + expectedVal;
@@ -209,4 +219,18 @@ public class JSToJFuncParamTest extends BrowserTest {
jsToJavaFuncParamTest("JSObjectParam", "new JSCar(100,\"red\")", "100, red");
}
+ @Test
+ @TestInBrowsers(testIn = { Browsers.all })
+ @NeedsDisplay
+ public void AppletJSToJFuncParam_booleanFalseStr_Test() throws Exception {
+ jsToJavaFuncParamTest("booleanParam", "false", "true");
+ }
+
+ @Test
+ @TestInBrowsers(testIn = { Browsers.all })
+ @NeedsDisplay
+ public void AppletJSToJFuncParam_BooleanFalseStr_Test() throws Exception {
+ jsToJavaFuncParamTest("BooleanParam", "false", "true");
+ }
+
}