aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-09-01 10:57:16 +0000
committerArtur Signell <artur.signell@itmill.com>2009-09-01 10:57:16 +0000
commitbd71e7ed3357a3f1cdf7fb019ba2c03cb3e25fd4 (patch)
treef8af0fa63bd7d678893db7999e75643828782805
parentd1284ef12b74c773b0d1f01f9565c950d820c19e (diff)
downloadvaadin-framework-bd71e7ed3357a3f1cdf7fb019ba2c03cb3e25fd4.tar.gz
vaadin-framework-bd71e7ed3357a3f1cdf7fb019ba2c03cb3e25fd4.zip
Test case for #3257
svn changeset:8610/svn branch:6.1
-rw-r--r--src/com/vaadin/tests/components/button/ButtonUndefinedWidth.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/com/vaadin/tests/components/button/ButtonUndefinedWidth.java b/src/com/vaadin/tests/components/button/ButtonUndefinedWidth.java
new file mode 100644
index 0000000000..852e41bd05
--- /dev/null
+++ b/src/com/vaadin/tests/components/button/ButtonUndefinedWidth.java
@@ -0,0 +1,40 @@
+package com.vaadin.tests.components.button;
+
+import com.vaadin.data.Item;
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.NativeButton;
+import com.vaadin.ui.Table;
+
+public class ButtonUndefinedWidth extends TestBase {
+
+ @Override
+ protected String getDescription() {
+ return "Both the button outside the table and inside the table should be only as wide as necessary. There should be empty space in the table to the right of the button.";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 3257;
+ }
+
+ @Override
+ protected void setup() {
+ Button b = new Button("Undefined wide");
+ addComponent(b);
+ NativeButton b2 = new NativeButton("Undefined wide");
+ addComponent(b2);
+
+ Table t = new Table();
+ t.addContainerProperty("A", Button.class, null);
+ t.setWidth("500px");
+
+ Item i = t.addItem("1");
+ i.getItemProperty("A").setValue(new Button("Undef wide"));
+ Item i2 = t.addItem("2");
+ i2.getItemProperty("A").setValue(new NativeButton("Undef wide"));
+
+ addComponent(t);
+ }
+
+}