summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/contextclick/TableContextClickTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/contextclick/TableContextClickTest.java')
-rw-r--r--uitest/src/com/vaadin/tests/contextclick/TableContextClickTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/contextclick/TableContextClickTest.java b/uitest/src/com/vaadin/tests/contextclick/TableContextClickTest.java
index e7e716a02f..bfd8862440 100644
--- a/uitest/src/com/vaadin/tests/contextclick/TableContextClickTest.java
+++ b/uitest/src/com/vaadin/tests/contextclick/TableContextClickTest.java
@@ -19,6 +19,7 @@ import static org.junit.Assert.assertEquals;
import org.junit.Test;
+import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.TableElement;
public class TableContextClickTest extends TableContextClickTestBase {
@@ -64,4 +65,17 @@ public class TableContextClickTest extends TableContextClickTestBase {
getLogRow(0));
}
+ @Test
+ public void testContextClickInEmptyTable() {
+ addOrRemoveTypedListener();
+
+ $(ButtonElement.class).caption("Remove all content").first().click();
+
+ contextClick($(TableElement.class).first(), 100, 100);
+
+ assertEquals(
+ "1. ContextClickEvent value: , propertyId: null, section: BODY",
+ getLogRow(0));
+ }
+
}