diff options
Diffstat (limited to 'tests')
5 files changed, 0 insertions, 304 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/table/TableFocusOnRefreshRowCache.html b/tests/testbench/com/vaadin/tests/components/table/TableFocusOnRefreshRowCache.html deleted file mode 100644 index b5f4d9b418..0000000000 --- a/tests/testbench/com/vaadin/tests/components/table/TableFocusOnRefreshRowCache.html +++ /dev/null @@ -1,61 +0,0 @@ -<?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://localhost:8888/" /> -<title>TableFocusOnRefreshRowCache</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">TableFocusOnRefreshRowCache</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/run/com.vaadin.tests.components.table.TableFocusOnRefreshRowCache?restartApplication</td> - <td></td> -</tr> -<tr> - <td>scroll</td> - <td>vaadin=runcomvaadintestscomponentstableTableFocusOnRefreshRowCache::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VScrollTable[0]/domChild[1]</td> - <td>3161</td> -</tr> -<tr> - <td>pause</td> - <td>500</td> - <td></td> -</tr> -<tr> - <td>mouseClick</td> - <td>vaadin=runcomvaadintestscomponentstableTableFocusOnRefreshRowCache::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[42]/domChild[0]/domChild[0]</td> - <td>186,-3151</td> -</tr> -<!-- Opera does some funky stuff with the row indices when this is run in - testbench, making it impossible to reliably test that the stylenames are - in the right location. Must instead just test that the stylename is not in - the position it was prior to fixing the bug, although that could never - fail in Opera since it looks at the wrong row ---> -<!-- -<tr> - <td>assertCSSClass</td> - <td>vaadin=runcomvaadintestscomponentstableTableFocusOnRefreshRowCache::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[35]</td> - <td>v-selected</td> -</tr> -<tr> - <td>assertCSSClass</td> - <td>vaadin=runcomvaadintestscomponentstableTableFocusOnRefreshRowCache::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[35]</td> - <td>v-table-focus</td> -</tr> ---> -<!-- Test that the first row in the view does not get focus --> -<tr> - <td>assertNotCSSClass</td> - <td>vaadin=runcomvaadintestscomponentstableTableFocusOnRefreshRowCache::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[23]</td> - <td>v-table-focus</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/testbench/com/vaadin/tests/components/table/TableFocusOnRefreshRowCache.java b/tests/testbench/com/vaadin/tests/components/table/TableFocusOnRefreshRowCache.java deleted file mode 100644 index a4bd11cf9c..0000000000 --- a/tests/testbench/com/vaadin/tests/components/table/TableFocusOnRefreshRowCache.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.vaadin.tests.components.table; - -import com.vaadin.event.ItemClickEvent; -import com.vaadin.event.ItemClickEvent.ItemClickListener; -import com.vaadin.tests.components.TestBase; -import com.vaadin.ui.Table; - -public class TableFocusOnRefreshRowCache extends TestBase { - - @Override - protected void setup() { - final Table table = new Table(); - table.setSizeFull(); - table.addContainerProperty("Name", String.class, null); - for (int i = 0; i < 200; i++) { - table.addItem(new Object[] { "Item " + i }, i); - } - - table.setSelectable(true); - table.addListener(new ItemClickListener() { - public void itemClick(ItemClickEvent event) { - table.refreshRowCache(); - } - }); - addComponent(table); - } - - @Override - protected String getDescription() { - return "Calling Table#refreshRowCache() loses cell focus"; - } - - @Override - protected Integer getTicketNumber() { - return 11797; - } -} diff --git a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeListenerLosesFocus.html b/tests/testbench/com/vaadin/tests/components/textfield/TextChangeListenerLosesFocus.html deleted file mode 100644 index d0dec8ce40..0000000000 --- a/tests/testbench/com/vaadin/tests/components/textfield/TextChangeListenerLosesFocus.html +++ /dev/null @@ -1,72 +0,0 @@ -<?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://localhost:8068/" /> -<title>TextChangeListenerLosesFocus</title> -</head> -<body> -<table cellpadding="1" cellspacing="1" border="1"> -<thead> -<tr><td rowspan="1" colspan="3">TextChangeListenerLosesFocus</td></tr> -</thead><tbody> -<tr> - <td>open</td> - <td>/run/com.vaadin.tests.components.textfield.TextChangeListenerLosesFocus?restartApplication</td> - <td></td> -</tr> -<tr> - <td>focus</td> - <td>test-textfield</td> - <td></td> -</tr> -<tr> - <td>enterCharacter</td> - <td>test-textfield</td> - <td>123</td> -</tr> -<tr> - <td>pause</td> - <td>1000</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>test-textfield</td> - <td>Updated by TextChangeListener</td> -</tr> -<tr> - <td>assertCSSClass</td> - <td>test-textfield</td> - <td>v-textfield-focus</td> -</tr> -<tr> - <td>focus</td> - <td>test-textarea</td> - <td></td> -</tr> -<tr> - <td>enterCharacter</td> - <td>test-textarea</td> - <td>123</td> -</tr> -<tr> - <td>pause</td> - <td>1000</td> - <td></td> -</tr> -<tr> - <td>assertValue</td> - <td>test-textarea</td> - <td>Updated by TextChangeListener</td> -</tr> -<tr> - <td>assertCSSClass</td> - <td>test-textarea</td> - <td>v-textarea-focus</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/testbench/com/vaadin/tests/components/treetable/RowHeightWithoutRows.html b/tests/testbench/com/vaadin/tests/components/treetable/RowHeightWithoutRows.html deleted file mode 100644 index e8cb0ccfe6..0000000000 --- a/tests/testbench/com/vaadin/tests/components/treetable/RowHeightWithoutRows.html +++ /dev/null @@ -1,47 +0,0 @@ -<?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://localhost: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.treetable.RowHeightWithoutRows?restartApplication=</td> - <td></td> -</tr> -<tr> - <td>screenCapture</td> - <td></td> - <td>two</td> -</tr> -<tr> - <td>click</td> - <td>vaadin=runcomvaadintestscomponentstreetableRowHeightWithoutRows::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VButton[0]/domChild[0]/domChild[0]</td> - <td></td> -</tr> -<tr> - <td>screenCapture</td> - <td></td> - <td>empty</td> -</tr> -<tr> - <td>click</td> - <td>vaadin=runcomvaadintestscomponentstreetableRowHeightWithoutRows::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[3]/VButton[0]/domChild[0]/domChild[0]</td> - <td></td> -</tr> -<tr> - <td>screenCapture</td> - <td></td> - <td>five</td> -</tr> - -</tbody></table> -</body> -</html> diff --git a/tests/testbench/com/vaadin/tests/components/treetable/RowHeightWithoutRows.java b/tests/testbench/com/vaadin/tests/components/treetable/RowHeightWithoutRows.java deleted file mode 100644 index 615fb719a8..0000000000 --- a/tests/testbench/com/vaadin/tests/components/treetable/RowHeightWithoutRows.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.vaadin.tests.components.treetable; - -import com.vaadin.data.util.BeanItemContainer; -import com.vaadin.tests.components.TestBase; -import com.vaadin.ui.Button; -import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.Button.ClickListener; -import com.vaadin.ui.TreeTable; - -public class RowHeightWithoutRows extends TestBase { - - private TreeTable treeTable = new TreeTable(); - - private BeanItemContainer<User> container = new BeanItemContainer<User>( - User.class); - - @Override - public void setup() { - treeTable.setContainerDataSource(container); - treeTable.setPageLength(0); - - addComponent(treeTable); - - Button refresh = new Button("Add two elements"); - addComponent(refresh); - refresh.addListener(new ClickListener() { - public void buttonClick(ClickEvent event) { - addTwoElements(); - } - }); - - Button reset = new Button("Reset"); - addComponent(reset); - reset.addListener(new ClickListener() { - public void buttonClick(ClickEvent event) { - container.removeAllItems(); - } - }); - - Button refresh5 = new Button("Add five elements"); - addComponent(refresh5); - refresh5.addListener(new ClickListener() { - public void buttonClick(ClickEvent event) { - container.addBean(new User("John", "Doe")); - container.addBean(new User("Mark", "Twain")); - container.addBean(new User("M", "T")); - container.addBean(new User("J", "D")); - container.addBean(new User("J", "T")); - } - }); - addTwoElements(); - } - - private void addTwoElements() { - container.addBean(new User("John", "Doe")); - container.addBean(new User("Mark", "Twain")); - } - - public static class User { - private String firstName; - - private String lastName; - - public User(String firstName, String lastName) { - this.firstName = firstName; - this.lastName = lastName; - } - - public String getFirstName() { - return firstName; - } - - public String getLastName() { - return lastName; - } - } - - @Override - protected String getDescription() { - return "Reseting the tree table and then adding five elements should properly update the height of the TreeTable"; - } - - @Override - protected Integer getTicketNumber() { - return Integer.valueOf(9203); - } -} |