import com.vaadin.event.ItemClickEvent;
import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.server.ExternalResource;
-import com.vaadin.tests.components.TestBase;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Table;
import com.vaadin.ui.Tree;
-public class ItemClickEvents extends TestBase {
+public class ItemClickEvents extends AbstractTestUI {
- Tree tree = new Tree();
- Table table = new Table();
- Log log = new Log(5);
+ private Tree tree;
+ private Table table;
+ private Log log;
@Override
- public void setup() {
+ @SuppressWarnings("unchecked")
+ protected void setup(VaadinRequest request) {
+
+ tree = new Tree();
+ table = new Table();
+ log = new Log(5);
+
log.setId("log");
HorizontalLayout ol = createHorizontalLayout(tree);
tree.setParent("2. Child 1", "Root 2");
tree.addItem("2. Child 2");
tree.setParent("2. Child 2", "Root 2");
- tree.addContainerProperty("icon", ExternalResource.class,
+ tree.addContainerProperty(
+ "icon",
+ ExternalResource.class,
new ExternalResource(
- "http://www.itmill.com/res/images/itmill_logo.gif"));
+ "https://vaadin.com/vaadin-theme/images/vaadin-logo.png"));
tree.addListener(new ItemClickListener() {
@Override
String modifiers = "";
if (event.isAltKey()) {
+ // Most likely won't trigger on Linux due to WMs using alt + mouse
+ // button
modifiers += "alt ";
}
if (event.isMetaKey()) {
}
@Override
- protected String getDescription() {
+ protected String getTestDescription() {
return "Click events should always come trough no matter how the table is configured.";
}
--- /dev/null
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.tests.components.table;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Before;
+import org.junit.Test;
+
+import com.vaadin.testbench.TestBenchElement;
+import com.vaadin.testbench.elements.CheckBoxElement;
+import com.vaadin.testbench.elements.LabelElement;
+import com.vaadin.testbench.elements.TableElement;
+import com.vaadin.tests.tb3.MultiBrowserTest;
+
+public class ItemClickEventsTest extends MultiBrowserTest {
+
+ @Before
+ public void init() {
+ openTestURL("restartApplication");
+ }
+
+ private void clickElement(TestBenchElement e) {
+ assertNotNull(e);
+ e.click(5, 5);
+ }
+
+ private void doubleClickElement(TestBenchElement e) {
+ assertNotNull(e);
+ e.doubleClick();
+ }
+
+ private void assertLog(String compare) {
+ LabelElement logRow = $(LabelElement.class).id("Log_row_0");
+ assertNotNull(logRow);
+ assertTrue(logRow.getText().contains(compare));
+ }
+
+ private void assertSelected(TestBenchElement e) {
+ assertNotNull(e);
+ assertTrue(hasCssClass(e, "v-selected"));
+ }
+
+ @Test
+ public void testSingleSelectNull() throws Exception {
+
+ // Activate table null selection mode
+ clickElement($(CheckBoxElement.class).caption("nullsel").get(1));
+
+ // Get at the table element
+ TableElement table = $(TableElement.class).id("table");
+
+ // Select the first item
+ clickElement(table.getRow(0));
+ assertLog("left click on table/Item 0");
+
+ // Do it again
+ clickElement(table.getRow(0));
+ assertLog("left click on table/Item 0");
+
+ // Select the sixth item
+ clickElement(table.getRow(5));
+ assertLog("left click on table/Item 5");
+
+ // Double click the sixth item
+ doubleClickElement(table.getRow(5));
+ assertLog("doubleClick on table/Item 5");
+ }
+
+ @Test
+ public void testSingleSelectNotNull() throws Exception {
+ // Get reference to table
+ TableElement table = $(TableElement.class).id("table");
+
+ // Select first item in list
+ clickElement(table.getRow(0));
+ assertSelected(table.getRow(0));
+
+ // Check that the log contains "clicked item 0"
+ assertLog("left click on table/Item 0");
+
+ // Click on second item in list
+ clickElement(table.getRow(1));
+
+ // Make sure it got selected
+ assertSelected(table.getRow(1));
+
+ // Check log output
+ assertLog("left click on table/Item 1");
+
+ // Click row 1 again
+ clickElement(table.getRow(1));
+ assertLog("left click on table/Item 1");
+
+ // Test double click
+ doubleClickElement(table.getRow(1));
+ // kludge: testbench seems to send an extra click; that doesn't affect
+ // our test too much, though, and can be ignored.
+ assertLog("doubleClick on table/Item 1");
+
+ // Double click first item
+ doubleClickElement(table.getRow(0));
+ assertLog("doubleClick on table/Item 0");
+
+ // Make sure it got selected again
+ assertSelected(table.getRow(0));
+ }
+
+ @Test
+ public void testSingleSelectNotSelectable() throws Exception {
+
+ // Remove the 'selectable' mode from Table
+ $(CheckBoxElement.class).caption("selectable").get(1).click();
+
+ // Get table element
+ TableElement table = $(TableElement.class).id("table");
+
+ // Click some items and check that clicks go through
+ clickElement(table.getCell(0, 0));
+ assertLog("left click on table/Item 0");
+
+ clickElement(table.getCell(5, 0));
+ assertLog("left click on table/Item 5");
+
+ clickElement(table.getCell(2, 0));
+ assertLog("left click on table/Item 2");
+
+ clickElement(table.getCell(8, 0));
+ assertLog("left click on table/Item 8");
+
+ clickElement(table.getCell(1, 0));
+ assertLog("left click on table/Item 1");
+
+ clickElement(table.getCell(0, 0));
+ assertLog("left click on table/Item 0");
+
+ }
+
+ @Test
+ public void testNonImmediateSingleSelectable() throws Exception {
+
+ // Disable table immediate mode
+ clickElement($(CheckBoxElement.class).caption("immediate").get(1));
+
+ // Get table element
+ TableElement table = $(TableElement.class).id("table");
+
+ // Click items and verify that click event went through
+ clickElement(table.getCell(1, 0));
+ assertLog("left click on table/Item 1");
+
+ clickElement(table.getCell(8, 0));
+ assertLog("left click on table/Item 8");
+
+ clickElement(table.getCell(1, 0));
+ assertLog("left click on table/Item 1");
+
+ clickElement(table.getCell(0, 0));
+ assertLog("left click on table/Item 0");
+
+ clickElement(table.getCell(6, 0));
+ assertLog("left click on table/Item 6");
+
+ }
+
+}
--- /dev/null
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.tests.components.table;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+import java.util.List;
+
+import org.junit.Before;
+import org.junit.Test;
+import org.openqa.selenium.Keys;
+import org.openqa.selenium.remote.DesiredCapabilities;
+
+import com.vaadin.testbench.TestBenchElement;
+import com.vaadin.testbench.elements.CheckBoxElement;
+import com.vaadin.testbench.elements.LabelElement;
+import com.vaadin.testbench.elements.TableElement;
+import com.vaadin.testbench.parallel.Browser;
+import com.vaadin.tests.tb3.MultiBrowserTest;
+
+public class ItemClickEventsTestWithShiftOrCtrl extends MultiBrowserTest {
+
+ @Override
+ protected Class<?> getUIClass() {
+ return ItemClickEvents.class;
+ }
+
+ @Override
+ public List<DesiredCapabilities> getBrowsersToTest() {
+ // Apparently only Chrome supports ctrl-click..?
+ return getBrowserCapabilities(Browser.CHROME);
+ }
+
+ private void clickElement(TestBenchElement e) {
+ assertNotNull(e);
+ e.click(5, 5);
+ }
+
+ private void shiftClickElement(TestBenchElement e) {
+ assertNotNull(e);
+ e.click(5, 5, Keys.SHIFT);
+ }
+
+ private void ctrlClickElement(TestBenchElement e) {
+ assertNotNull(e);
+ e.click(5, 5, Keys.CONTROL);
+ }
+
+ private void assertSelected(TestBenchElement e) {
+ assertNotNull(e);
+ assertTrue(hasCssClass(e, "v-selected"));
+ }
+
+ private void assertNotSelected(TestBenchElement e) {
+ assertNotNull(e);
+ assertTrue(!hasCssClass(e, "v-selected"));
+ }
+
+ private void assertLog(String compare) {
+ LabelElement logRow = $(LabelElement.class).id("Log_row_0");
+ assertNotNull(logRow);
+ assertTrue(logRow.getText().contains(compare));
+ }
+
+ @Before
+ public void init() {
+ openTestURL("restartApplication");
+ }
+
+ @Test
+ public void testMultiSelectNotSelectable() throws Exception {
+
+ // Activate table multi-selection mode
+ clickElement($(CheckBoxElement.class).caption("multi").get(1));
+
+ // Remove the 'selectable' mode from Table
+ $(CheckBoxElement.class).caption("selectable").get(1).click();
+
+ // Get table element
+ TableElement table = $(TableElement.class).id("table");
+
+ // Click some items and check that clicks go through
+ clickElement(table.getCell(4, 0));
+ assertLog("left click on table/Item 4");
+
+ clickElement(table.getCell(2, 0));
+ assertLog("left click on table/Item 2");
+
+ ctrlClickElement(table.getCell(5, 0));
+ assertLog("left click on table/Item 5 (ctrl)");
+
+ shiftClickElement(table.getCell(3, 0));
+ assertLog("left click on table/Item 3 (shift)");
+
+ }
+
+ @Test
+ public void testSingleNonImmediateNonSelectable() throws Exception {
+
+ // Disable table immediate mode
+ clickElement($(CheckBoxElement.class).caption("immediate").get(1));
+
+ // Disable the 'selectable' mode from Table
+ $(CheckBoxElement.class).caption("selectable").get(1).click();
+
+ // Get table element
+ TableElement table = $(TableElement.class).id("table");
+
+ // Click items and verify that click event went through
+ clickElement(table.getCell(0, 0));
+ assertLog("left click on table/Item 0");
+
+ clickElement(table.getCell(1, 0));
+ assertLog("left click on table/Item 1");
+
+ ctrlClickElement(table.getCell(2, 0));
+ assertLog("left click on table/Item 2 (ctrl)");
+
+ shiftClickElement(table.getCell(3, 0));
+ assertLog("left click on table/Item 3 (shift)");
+
+ }
+
+ @Test
+ public void testMultiSelectNotNull() throws Exception {
+
+ // Activate table multi-selection mode
+ clickElement($(CheckBoxElement.class).caption("multi").get(1));
+
+ // Get table element
+ TableElement table = $(TableElement.class).id("table");
+
+ // Click item 10, verify log output
+ clickElement(table.getCell(9, 0));
+ assertLog("left click on table/Item 9");
+
+ // Click it again, should not deselect
+ ctrlClickElement(table.getCell(9, 0));
+ assertLog("left click on table/Item 9 (ctrl)");
+
+ // Click item 4 to select it
+ ctrlClickElement(table.getCell(3, 0));
+ assertLog("left click on table/Item 3 (ctrl)");
+
+ // Unselect item 10
+ ctrlClickElement(table.getCell(9, 0));
+ assertLog("left click on table/Item 9 (ctrl)");
+
+ // Try to click item 4, should not deselect
+ ctrlClickElement(table.getCell(3, 0));
+ assertLog("left click on table/Item 3 (ctrl)");
+
+ // Check that row 4 remains selected
+ assertSelected(table.getRow(3));
+ }
+
+ @Test
+ public void testMultiSelectNull() throws Exception {
+
+ // Activate table multi-selection mode
+ clickElement($(CheckBoxElement.class).caption("multi").get(1));
+
+ // Activate table null selection mode
+ clickElement($(CheckBoxElement.class).caption("nullsel").get(1));
+
+ // Get table element
+ TableElement table = $(TableElement.class).id("table");
+
+ // Select first item
+ clickElement(table.getCell(0, 0));
+ assertLog("left click on table/Item 0");
+
+ // Shift-click to select range between first and fifth element
+ shiftClickElement(table.getCell(4, 0));
+ assertLog("left click on table/Item 4 (shift)");
+
+ // Pick element 7
+ ctrlClickElement(table.getCell(6, 0));
+ assertLog("left click on table/Item 6 (ctrl)");
+
+ // Un-pick element 3
+ ctrlClickElement(table.getCell(2, 0));
+ assertLog("left click on table/Item 2 (ctrl)");
+
+ // Check selection
+ assertSelected(table.getRow(0));
+ assertSelected(table.getRow(1));
+ assertNotSelected(table.getRow(2));
+ assertSelected(table.getRow(3));
+ assertSelected(table.getRow(4));
+ assertSelected(table.getRow(6));
+ }
+
+}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head profile="http://selenium-ide.openqa.org/profiles/test-case">
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel="selenium.base" href="http://artur-laptop.office.itmill.com:8888/" />
-<title>New Test</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">New Test</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/run/com.vaadin.tests.components.table.ItemClickEvents?restartApplication</td>
- <td></td>
-</tr>
-<!--Single select not null-->
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
- <td>42,7</td>
-</tr>
-<tr>
- <td>assertCSSClass</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
- <td>v-selected</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>1. left click on table/Item 0</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
- <td>41,3</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>2. left click on table/Item 1</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
- <td>41,10</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>3. left click on table/Item 1</td>
-</tr>
-<tr>
- <td>doubleClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
- <td>88,12</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>4. doubleClick on table/Item 1</td>
-</tr>
-<tr>
- <td>doubleClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
- <td>88,12</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>5. doubleClick on table/Item 0</td>
-</tr>
-<tr>
- <td>assertCSSClass</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]</td>
- <td>v-selected</td>
-</tr>
-<tr>
- <td>click</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
- <td></td>
-</tr>
-<!--Single select null-->
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VHorizontalLayout[0]/ChildComponentContainer[2]/VCheckBox[0]/domChild[0]</td>
- <td>6,6</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
- <td>48,15</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>0. left click on table/Item 0</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
- <td>57,11</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>1. left click on table/Item 0</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[5]/domChild[0]/domChild[0]</td>
- <td>45,9</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>2. left click on table/Item 5</td>
-</tr>
-<tr>
- <td>doubleClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[5]/domChild[0]/domChild[0]</td>
- <td>45,9</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>3. doubleClick on table/Item 5</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/domChild[5]</td>
- <td>195,142</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/domChild[5]</td>
- <td>582,1</td>
-</tr>
-<tr>
- <td>click</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
- <td></td>
-</tr>
-<!--Multiselect null-->
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VHorizontalLayout[0]/ChildComponentContainer[3]/VCheckBox[0]/domChild[0]</td>
- <td>22,11</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
- <td>50,10</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[4]/domChild[0]/domChild[0]</td>
- <td>51,10:shift</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[6]/domChild[0]/domChild[0]</td>
- <td>47,11:ctrl</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[2]/domChild[0]/domChild[0]</td>
- <td>50,8:ctrl</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[3]/VLabel[0]</td>
- <td>0. left click on table/Item 0</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[2]/VLabel[0]</td>
- <td>1. left click on table/Item 4 (shift)</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[1]/VLabel[0]</td>
- <td>2. left click on table/Item 6 (ctrl)</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>3. left click on table/Item 2 (ctrl)</td>
-</tr>
-<!--Multi select not null-->
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VHorizontalLayout[0]/ChildComponentContainer[2]/VCheckBox[0]/domChild[0]</td>
- <td>34,0</td>
-</tr>
-<tr>
- <td>click</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[9]/domChild[0]/domChild[0]</td>
- <td>43,8</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[9]/domChild[0]/domChild[0]</td>
- <td>49,6:ctrl</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[3]/domChild[0]/domChild[0]</td>
- <td>71,9:ctrl</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[9]/domChild[0]/domChild[0]</td>
- <td>79,4:ctrl</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[3]/domChild[0]/domChild[0]</td>
- <td>75,17:ctrl</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[4]/VLabel[0]</td>
- <td>0. left click on table/Item 9</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[3]/VLabel[0]</td>
- <td>1. left click on table/Item 9 (ctrl)</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[2]/VLabel[0]</td>
- <td>2. left click on table/Item 3 (ctrl)</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[1]/VLabel[0]</td>
- <td>3. left click on table/Item 9 (ctrl)</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>4. left click on table/Item 3 (ctrl)</td>
-</tr>
-<tr>
- <td>click</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
- <td></td>
-</tr>
-<!--Single not selectable-->
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VHorizontalLayout[0]/ChildComponentContainer[3]/VCheckBox[0]/domChild[0]</td>
- <td>11,5</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VHorizontalLayout[0]/ChildComponentContainer[1]/VCheckBox[0]/domChild[0]</td>
- <td>11,2</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
- <td>49,11</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[2]/domChild[0]/domChild[0]</td>
- <td>48,8</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[7]/domChild[0]/domChild[0]</td>
- <td>50,8</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[3]/domChild[0]/domChild[0]</td>
- <td>57,11</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[3]/VLabel[0]</td>
- <td>0. left click on table/Item 1</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[2]/VLabel[0]</td>
- <td>1. left click on table/Item 2</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[1]/VLabel[0]</td>
- <td>2. left click on table/Item 7</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>3. left click on table/Item 3</td>
-</tr>
-<tr>
- <td>click</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
- <td></td>
-</tr>
-<!--Multi not selectable-->
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VHorizontalLayout[0]/ChildComponentContainer[3]/VCheckBox[0]/domChild[0]</td>
- <td>8,7</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
- <td>42,8</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[5]/domChild[0]/domChild[0]</td>
- <td>47,13</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[3]/domChild[0]/domChild[0]</td>
- <td>43,8</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[8]/domChild[0]/domChild[0]</td>
- <td>44,9:shift</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[3]/VLabel[0]</td>
- <td>0. left click on table/Item 1</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[2]/VLabel[0]</td>
- <td>1. left click on table/Item 5</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[1]/VLabel[0]</td>
- <td>2. left click on table/Item 3</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>3. left click on table/Item 8 (shift)</td>
-</tr>
-<tr>
- <td>click</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
- <td></td>
-</tr>
-<!--Single, Non-immediate-->
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VHorizontalLayout[0]/ChildComponentContainer[0]/VCheckBox[0]/domChild[0]</td>
- <td>8,6</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VHorizontalLayout[0]/ChildComponentContainer[3]/VCheckBox[0]/domChild[0]</td>
- <td>6,6</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
- <td>57,8</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>0. left click on table/Item 0</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
- <td>47,9</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>1. left click on table/Item 1</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[2]/domChild[0]/domChild[0]</td>
- <td>47,11</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>2. left click on table/Item 2</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[8]/domChild[0]/domChild[0]</td>
- <td>31,13:ctrl shift</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>3. left click on table/Item 8 (ctrl shift)</td>
-</tr>
-<tr>
- <td>click</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
- <td></td>
-</tr>
-<!--non-immediate single selectable-->
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VHorizontalLayout[0]/ChildComponentContainer[1]/VCheckBox[0]/domChild[0]</td>
- <td>10,7</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
- <td>43,11</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>0. left click on table/Item 1</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[8]/domChild[0]/domChild[0]</td>
- <td>73,9</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>1. left click on table/Item 8</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
- <td>58,12</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>2. left click on table/Item 1</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
- <td>71,15</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>3. left click on table/Item 0</td>
-</tr>
-<tr>
- <td>mouseClick</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Stable/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[6]/domChild[0]/domChild[0]</td>
- <td>68,11</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>vaadin=runcomvaadintestscomponentstableItemClickEvents::PID_Slog/ChildComponentContainer[0]/VLabel[0]</td>
- <td>4. left click on table/Item 6</td>
-</tr>
-</tbody></table>
-</body>
-</html>