*/
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;
*/
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;
*/
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());
return browsers;
}
-
protected List<DesiredCapabilities> getBrowsersSupportingShiftClick() {
List<DesiredCapabilities> browsers = new ArrayList<DesiredCapabilities>(getAllBrowsers());