diff options
author | Artur Signell <artur.signell@itmill.com> | 2010-03-18 17:26:47 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2010-03-18 17:26:47 +0000 |
commit | ded73cc78ee30d7d4862362ad3038bc5a1367715 (patch) | |
tree | d551212442e0180a35c92d44da26a50045fb13e7 | |
parent | 0e389b77eb1f0256f5d2348c52de610aba4b90a9 (diff) | |
download | vaadin-framework-ded73cc78ee30d7d4862362ad3038bc5a1367715.tar.gz vaadin-framework-ded73cc78ee30d7d4862362ad3038bc5a1367715.zip |
Test case for #4374
svn changeset:11978/svn branch:6.3
-rw-r--r-- | tests/src/com/vaadin/tests/components/table/TablePageLengthCalculation.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/components/table/TablePageLengthCalculation.java b/tests/src/com/vaadin/tests/components/table/TablePageLengthCalculation.java new file mode 100644 index 0000000000..d7bbf9f026 --- /dev/null +++ b/tests/src/com/vaadin/tests/components/table/TablePageLengthCalculation.java @@ -0,0 +1,49 @@ +package com.vaadin.tests.components.table;
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.TabSheet;
+import com.vaadin.ui.Table;
+import com.vaadin.ui.Window;
+
+public class TablePageLengthCalculation extends TestBase {
+
+ @Override
+ public void setup() {
+
+ Window window = new Window();
+ window.setCaption("usermanagement");
+ window.center();
+ window.setWidth(40, Window.UNITS_PERCENTAGE);
+ window.setHeight(40, Window.UNITS_PERCENTAGE);
+ window.setModal(true);
+ getMainWindow().addWindow(window);
+
+ TabSheet tab = new TabSheet();
+ tab.setSizeFull();
+
+ tab.addTab(new TableView(), "users", null);
+ tab.addTab(new TableView(), "groups", null);
+
+ window.setContent(tab);
+ }
+
+ public class TableView extends Table {
+ private static final long serialVersionUID = 1L;
+
+ public TableView() {
+ setSizeFull();
+
+ addContainerProperty("name", String.class, "name");
+ addContainerProperty("right", Boolean.class, "right");
+ }
+ }
+
+ @Override
+ protected String getDescription() {
+ return "Resize the window and change the selected tab. In Opera 10.50 the updated pagelength will be calculated as a float and not an integer, causing an \"Internal Error\"";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 4374;
+ }
+}
\ No newline at end of file |