From: Automerge Date: Wed, 18 Apr 2012 17:07:29 +0000 (+0000) Subject: [merge from 6.7] improved test case X-Git-Tag: 7.0.0.alpha3~260^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=41a97f25d5a23c984698097c7f42e56e239425b7;p=vaadin-framework.git [merge from 6.7] improved test case svn changeset:23580/svn branch:6.8 --- 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 {"