]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case for #3915
authorArtur Signell <artur.signell@itmill.com>
Tue, 6 Jul 2010 14:40:32 +0000 (14:40 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 6 Jul 2010 14:40:32 +0000 (14:40 +0000)
svn changeset:14104/svn branch:6.4

tests/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java [new file with mode: 0644]

diff --git a/tests/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java b/tests/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java
new file mode 100644 (file)
index 0000000..27b1ce6
--- /dev/null
@@ -0,0 +1,42 @@
+package com.vaadin.tests.layouts;\r
+\r
+import com.vaadin.tests.components.AbstractTestCase;\r
+import com.vaadin.ui.Layout;\r
+import com.vaadin.ui.Tree;\r
+import com.vaadin.ui.VerticalLayout;\r
+import com.vaadin.ui.Window;\r
+\r
+public class TreeWithBordersInLayout extends AbstractTestCase {\r
+\r
+    private static final Object CAPTION = "caption";\r
+\r
+    @Override\r
+    public void init() {\r
+        Layout mainLayout = new VerticalLayout();\r
+        mainLayout.setSizeUndefined();\r
+        setMainWindow(new Window("main window", mainLayout));\r
+\r
+        setTheme("tests-tickets");\r
+\r
+        Tree t = new Tree();\r
+        t.addContainerProperty(CAPTION, String.class, "");\r
+        t.setItemCaptionPropertyId(CAPTION);\r
+        t.addItem("Item 1").getItemProperty(CAPTION).setValue("Item 1");\r
+\r
+        t.setSizeUndefined();\r
+        t.setStyleName("redblueborders");\r
+        mainLayout.addComponent(t);\r
+\r
+    }\r
+\r
+    @Override\r
+    protected String getDescription() {\r
+        return "The tree consists of one node and has a 10px blue red border and a 10px red right border. The tree node should be visible between the borders.";\r
+    }\r
+\r
+    @Override\r
+    protected Integer getTicketNumber() {\r
+        return 3915;\r
+    }\r
+\r
+}\r