diff options
author | Jana Fabrikova <[email protected]> | 2013-03-20 18:06:04 +0100 |
---|---|---|
committer | Jana Fabrikova <[email protected]> | 2013-03-20 18:06:04 +0100 |
commit | f8f645d2e9a6db6a7e3130bfee5c358bc0be504a (patch) | |
tree | 96fb7e996f33ab379585c3b36e003acec9f3d6d5 /tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java | |
parent | 19c9316343de416d62833487a2f1cbcff77ca3e2 (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.java | 24 |
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"); + } + } |