]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed bug in test case
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 5 Dec 2008 16:35:56 +0000 (16:35 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 5 Dec 2008 16:35:56 +0000 (16:35 +0000)
svn changeset:6102/svn branch:trunk

src/com/itmill/toolkit/tests/tickets/Ticket2283.java

index e5bd587607c667207cc184d49f3ed7a40e9d2ab7..be65141da1d462456a542f586255ef108e38970f 100644 (file)
@@ -8,6 +8,7 @@ import com.itmill.toolkit.ui.Layout.AlignmentHandler;
 
 public class Ticket2283 extends Application {
 
+    @Override
     public void init() {
         Window w = new Window(getClass().getSimpleName());
         setMainWindow(w);
@@ -18,8 +19,9 @@ public class Ticket2283 extends Application {
         gl.addComponent(new Label(
                 "Label 1 abc abc abcasdfas dfasd fasdf asdf sadf asdf"));
         gl.addComponent(new Label("Label 2 abc abc abc "));
-        gl.addComponent(new Label("Colspan2, align right"), 0, 1, 1, 1);
-        gl.setComponentAlignment(gl, AlignmentHandler.ALIGNMENT_RIGHT,
+        Label l = new Label("Colspan2, align right");
+        gl.addComponent(l, 0, 1, 1, 1);
+        gl.setComponentAlignment(l, AlignmentHandler.ALIGNMENT_RIGHT,
                 AlignmentHandler.ALIGNMENT_TOP);
         w.setLayout(gl);