aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-02-12 14:57:13 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-02-19 15:19:46 +0200
commitfd8078d691f6b6eec407882280730104f5027e3d (patch)
tree1e9e3dac572d9951a55d6d00e935167c6056eb27 /uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java
parentf4e002e36be983b16c6324255780fd7e74710d68 (diff)
downloadvaadin-framework-fd8078d691f6b6eec407882280730104f5027e3d.tar.gz
vaadin-framework-fd8078d691f6b6eec407882280730104f5027e3d.zip
Use TestBench-4.0.2
- Based on TB4 Parallel testing. - Browser setup no longer uses static capabilities. - Some code cleanup here and there. Change-Id: I5c419316cd36f4f5041eaa8da8fda3d8b46596c4
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java29
1 files changed, 16 insertions, 13 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java b/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java
index 854d7fe3f2..063d05b735 100644
--- a/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java
@@ -15,22 +15,23 @@
*/
package com.vaadin.tests.components.grid;
-import com.vaadin.testbench.By;
-import com.vaadin.testbench.elements.ButtonElement;
-import com.vaadin.testbench.elements.GridElement;
-import com.vaadin.testbench.elements.GridElement.GridCellElement;
-import com.vaadin.testbench.elements.NotificationElement;
-import com.vaadin.tests.annotations.TestCategory;
-import com.vaadin.tests.tb3.MultiBrowserTest;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotEquals;
+import static org.junit.Assert.assertTrue;
+
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.ExpectedCondition;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotEquals;
-import static org.junit.Assert.assertTrue;
+import com.vaadin.testbench.By;
+import com.vaadin.testbench.elements.ButtonElement;
+import com.vaadin.testbench.elements.GridElement;
+import com.vaadin.testbench.elements.GridElement.GridCellElement;
+import com.vaadin.testbench.elements.NotificationElement;
+import com.vaadin.testbench.parallel.TestCategory;
+import com.vaadin.tests.tb3.MultiBrowserTest;
/**
* TB tests for the various builtin widget-based renderers.
@@ -97,7 +98,8 @@ public class WidgetRenderersTest extends MultiBrowserTest {
waitUntilmageSrcEndsWith(image, "window/img/maximize.png");
}
- private void waitUntilmageSrcEndsWith(final WebElement image, final String expectedText) {
+ private void waitUntilmageSrcEndsWith(final WebElement image,
+ final String expectedText) {
waitUntil(new ExpectedCondition<Boolean>() {
@Override
@@ -108,8 +110,9 @@ public class WidgetRenderersTest extends MultiBrowserTest {
@Override
public String toString() {
// Timed out after 10 seconds waiting for ...
- return String.format("image source to update. Supposed to end with '%s' (was: '%s').",
- expectedText, image.getAttribute("src"));
+ return String
+ .format("image source to update. Supposed to end with '%s' (was: '%s').",
+ expectedText, image.getAttribute("src"));
}
});
}