aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java
diff options
context:
space:
mode:
authorJana Fabrikova <[email protected]>2013-03-20 18:06:04 +0100
committerJana Fabrikova <[email protected]>2013-03-20 18:06:04 +0100
commitf8f645d2e9a6db6a7e3130bfee5c358bc0be504a (patch)
tree96fb7e996f33ab379585c3b36e003acec9f3d6d5 /tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java
parent19c9316343de416d62833487a2f1cbcff77ca3e2 (diff)
adding few lines that enable/disable running LiveConnect tests in Opera
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");
+ }
+
}