portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asfgr...@apache.org
Subject portals-pluto git commit: PLUTO-741 Assume that the TCK runs headless for all browsers
Date Mon, 15 Oct 2018 21:41:57 GMT
Repository: portals-pluto
Updated Branches:
  refs/heads/master 1d4e1681f -> 4e8058b7b


PLUTO-741 Assume that the TCK runs headless for all browsers


Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/4e8058b7
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/4e8058b7
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/4e8058b7

Branch: refs/heads/master
Commit: 4e8058b7b223de1d5f7501532c2cbe8d6b623c49
Parents: 1d4e168
Author: Neil Griffin <neil.griffin.scm@gmail.com>
Authored: Mon Oct 15 17:41:13 2018 -0400
Committer: Neil Griffin <neil.griffin.scm@gmail.com>
Committed: Mon Oct 15 17:41:13 2018 -0400

----------------------------------------------------------------------
 .../java/javax/portlet/tck/driver/TCKSimpleTestDriver.java     | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/4e8058b7/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
b/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
index 2f5fe37..1765d11 100644
--- a/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
+++ b/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
@@ -219,12 +219,8 @@ public class TCKSimpleTestDriver {
       timeout = ((str != null) && str.matches("\\d+")) ? Integer.parseInt(str) :
3; 
       String wd = System.getProperty("test.browser.webDriver");
       String binary = System.getProperty("test.browser.binary");
-      boolean browserDefaultHeadless = browser.equalsIgnoreCase("chrome") ||
-          browser.equalsIgnoreCase("firefox") ||
-          browser.equalsIgnoreCase("htmlunit") ||
-          browser.equalsIgnoreCase("phantomjs");
       String headlessProperty = System.getProperty("test.browser.headless");
-      boolean headless = (((headlessProperty == null) || (headlessProperty.length() == 0))
&& browserDefaultHeadless);
+      boolean headless = (((headlessProperty == null) || (headlessProperty.length() == 0)
|| Boolean.valueOf(headlessProperty)));
 
       System.out.println("before class.");
       System.out.println("   Debug        =" + debug);


Mime
View raw message