summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xuitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java b/uitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java
index 923ad2b779..c21992941c 100755
--- a/uitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java
+++ b/uitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java
@@ -29,17 +29,16 @@ public class FlashExpansionTest extends MultiBrowserTest {
waitForElementPresent(locator);
WebElement embed = $(FlashElement.class).first().findElement(locator);
String width = embed.getAttribute("width");
- Assert.assertTrue("Width is not 400.0px initially",
- "400.0px".equals(width));
+ Assert.assertEquals("Width is not 400.0px initially", "400", width);
$(ButtonElement.class).first().click();
+ embed = $(FlashElement.class).first().findElement(locator);
String widthAfterExpansion = embed.getAttribute("width");
- Assert.assertFalse("Width is still 400.0px after expansion",
- "400.0px".equals(widthAfterExpansion));
+ Assert.assertNotEquals("Width is still 400.0px after expansion", "400",
+ widthAfterExpansion);
}
private List<DesiredCapabilities> getBrowsersSupportingFlash() {
// No Flash support in Chrome, FF, PhantomJS
- return getBrowserCapabilities(Browser.IE8, Browser.IE9, Browser.IE10,
- Browser.IE11);
+ return getBrowserCapabilities(Browser.IE11);
}
}