From 41a97f25d5a23c984698097c7f42e56e239425b7 Mon Sep 17 00:00:00 2001 From: Automerge Date: Wed, 18 Apr 2012 17:07:29 +0000 Subject: [PATCH] [merge from 6.7] improved test case svn changeset:23580/svn branch:6.8 --- .../tests/components/TouchScrollables.java | 20 +++++++++++++++---- 1 file 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 {" -- 2.39.5