]> source.dussan.org Git - vaadin-framework.git/commitdiff
Ignore reconnect tests for long polling and streaming on PhantomJS.
authorSauli Tähkäpää <sauli@vaadin.com>
Mon, 13 Oct 2014 10:48:24 +0000 (13:48 +0300)
committerSauli Tähkäpää <sauli@vaadin.com>
Wed, 15 Oct 2014 05:41:47 +0000 (08:41 +0300)
Change-Id: Ia8248f31caafb6c53e967491084d660d89de2c29

uitest/src/com/vaadin/tests/push/ReconnectLongPollingTest.java
uitest/src/com/vaadin/tests/push/ReconnectStreamingTest.java
uitest/src/com/vaadin/tests/tb3/MultiBrowserTest.java

index 28ef30a04ab9518b5aad150a34c81547ef8bd9cd..22d020b63136b8e48ca49595126b09db2598c288 100644 (file)
  */
 package com.vaadin.tests.push;
 
+import org.openqa.selenium.remote.DesiredCapabilities;
+
+import java.util.List;
+
 public class ReconnectLongPollingTest extends ReconnectTest {
 
+    @Override
+    public List<DesiredCapabilities> getBrowsersToTest() {
+
+        // PhantomJS doesn't seem to detect disconnection on
+        // Long-Polling/Streaming:
+        // https://github.com/ariya/phantomjs/issues/11938
+        return getBrowsersExcludingPhantomJS();
+    }
+
     @Override
     protected Class<?> getUIClass() {
         return BasicPushLongPolling.class;
index 0a0275c4d04907d79c579db215bdb13bf8caa457..4a669e723ce4a842d6626e86505f35a4448158e4 100755 (executable)
  */
 package com.vaadin.tests.push;
 
+import org.openqa.selenium.remote.DesiredCapabilities;
+
+import java.util.List;
+
 public class ReconnectStreamingTest extends ReconnectTest {
 
+    @Override
+    public List<DesiredCapabilities> getBrowsersToTest() {
+
+        // PhantomJS doesn't seem to detect disconnection on
+        // Long-Polling/Streaming:
+        // https://github.com/ariya/phantomjs/issues/11938
+        return getBrowsersExcludingPhantomJS();
+    }
+
     @Override
     protected Class<?> getUIClass() {
         return BasicPushStreaming.class;
index 72fb2c18d1df7005ddebd56fb7a7ef188b44e44d..d6eed3e5c8ad238ba7d77c9684624228db187c0e 100644 (file)
@@ -40,6 +40,14 @@ import org.openqa.selenium.remote.DesiredCapabilities;
  */
 public abstract class MultiBrowserTest extends PrivateTB3Configuration {
 
+    protected List<DesiredCapabilities> getBrowsersExcludingPhantomJS() {
+        List<DesiredCapabilities> browsers = new ArrayList<DesiredCapabilities>(getAllBrowsers());
+
+        browsers.remove(Browser.PHANTOMJS.getDesiredCapabilities());
+
+        return browsers;
+    }
+
     protected List<DesiredCapabilities> getBrowsersExcludingIE() {
         List<DesiredCapabilities> browsers = new ArrayList<DesiredCapabilities>(getAllBrowsers());
         browsers.remove(Browser.IE8.getDesiredCapabilities());
@@ -50,7 +58,6 @@ public abstract class MultiBrowserTest extends PrivateTB3Configuration {
         return browsers;
     }
 
-
     protected List<DesiredCapabilities> getBrowsersSupportingShiftClick() {
         List<DesiredCapabilities> browsers = new ArrayList<DesiredCapabilities>(getAllBrowsers());