diff options
author | Automerge <automerge@vaadin.com> | 2012-04-18 17:07:29 +0000 |
---|---|---|
committer | Automerge <automerge@vaadin.com> | 2012-04-18 17:07:29 +0000 |
commit | 41a97f25d5a23c984698097c7f42e56e239425b7 (patch) | |
tree | 3fb5ef5346d50a1a5b3695bd7352b1f98fad7d97 | |
parent | 1a95d50942f64bec70647587408f37d34addb767 (diff) | |
download | vaadin-framework-41a97f25d5a23c984698097c7f42e56e239425b7.tar.gz vaadin-framework-41a97f25d5a23c984698097c7f42e56e239425b7.zip |
[merge from 6.7] improved test case
svn changeset:23580/svn branch:6.8
-rw-r--r-- | tests/testbench/com/vaadin/tests/components/TouchScrollables.java | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/TouchScrollables.java b/tests/testbench/com/vaadin/tests/components/TouchScrollables.java index 8d3ef715cc..88335a1996 100644 --- a/tests/testbench/com/vaadin/tests/components/TouchScrollables.java +++ b/tests/testbench/com/vaadin/tests/components/TouchScrollables.java @@ -39,14 +39,26 @@ public class TouchScrollables extends TestBase { CssLayout cssLayout = new CssLayout(); final Table table = new Table(); - Button button = new Button("Make pagelength 0"); + Button button = new Button("Toggle lazyloading"); button.addListener(new Button.ClickListener() { public void buttonClick(ClickEvent event) { - table.setCacheRate(100); - table.setHeight("400px"); + if (table.getCacheRate() == 100) { + table.setCacheRate(2); + table.setPageLength(15); + } else { + table.setCacheRate(100); + table.setHeight("400px"); + } } }); + cssLayout.addComponent(button); + button = new Button("Toggle selectable"); + button.addListener(new Button.ClickListener() { + public void buttonClick(ClickEvent event) { + table.setSelectable(!table.isSelectable()); + } + }); cssLayout.addComponent(button); table.addContainerProperty("foo", String.class, "bar"); @@ -95,7 +107,7 @@ public class TouchScrollables extends TestBase { TestUtils .injectCSS( getLayout().getWindow(), - ".v-table-row-drag-middle .v-table-cell-content {" + "body * {-webkit-user-select: none;} .v-table-row-drag-middle .v-table-cell-content {" + " background-color: inherit ; border-bottom: 1px solid cyan;" + "}" + ".v-table-row-drag-middle .v-table-cell-wrapper {" |