summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-12-31 09:12:47 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-12-31 09:12:47 +0000
commit176cf64afa44dd65b76359487ffeeb0e4b304f42 (patch)
treea8c452700eacda49794aa72e4b77f25bb1fd0cd8 /tests/src
parentfd6e1cd79e18456d7f4039a3f1c4e1c307069c55 (diff)
downloadvaadin-framework-176cf64afa44dd65b76359487ffeeb0e4b304f42.tar.gz
vaadin-framework-176cf64afa44dd65b76359487ffeeb0e4b304f42.zip
added test case for #5746
svn changeset:16744/svn branch:6.5
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/com/vaadin/tests/components/table/TableSelectPagingOff.java69
1 files changed, 69 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/components/table/TableSelectPagingOff.java b/tests/src/com/vaadin/tests/components/table/TableSelectPagingOff.java
new file mode 100644
index 0000000000..4d97a1a669
--- /dev/null
+++ b/tests/src/com/vaadin/tests/components/table/TableSelectPagingOff.java
@@ -0,0 +1,69 @@
+package com.vaadin.tests.components.table;
+
+import java.util.Arrays;
+import java.util.Collection;
+
+import com.vaadin.data.util.BeanItemContainer;
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Table;
+
+public class TableSelectPagingOff extends TestBase {
+
+ @Override
+ protected void setup() {
+ Table table = new Table();
+ BeanItemContainer<MyBean> dataSource = new BeanItemContainer<MyBean>(
+ getBeans());
+ table.setContainerDataSource(dataSource);
+ table.setSelectable(true);
+ table.setPageLength(0);
+ addComponent(table);
+ }
+
+ private Collection<MyBean> getBeans() {
+ return Arrays.asList(new MyBean("a", "description a"), new MyBean("b",
+ "description b"), new MyBean("c", "description c"), new MyBean(
+ "d", "description d"));
+ }
+
+ public class MyBean {
+
+ private String name;
+ private String description;
+
+ public MyBean() {
+ }
+
+ public MyBean(String name, String description) {
+ this.name = name;
+ this.description = description;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ }
+
+ @Override
+ protected String getDescription() {
+ return "No flickering (scrollbars) should happen on select";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 5746;
+ }
+}