]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed warnings in tests
authorArtur Signell <artur.signell@itmill.com>
Mon, 20 Dec 2010 14:20:48 +0000 (14:20 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 20 Dec 2010 14:20:48 +0000 (14:20 +0000)
svn changeset:16584/svn branch:6.5

tests/src/com/vaadin/tests/components/window/SubWindows.java

index 6c5bfccf6e6e8500c21e9eb287fa8cc85d038d30..e939f0b9a48bd19bac9008484cc1aba88f6f2850 100644 (file)
@@ -7,6 +7,7 @@ import com.vaadin.ui.Button.ClickListener;
 import com.vaadin.ui.Component;
 import com.vaadin.ui.ComponentContainer;
 import com.vaadin.ui.HorizontalLayout;
+import com.vaadin.ui.TextArea;
 import com.vaadin.ui.TextField;
 import com.vaadin.ui.Window;
 
@@ -41,7 +42,6 @@ public class SubWindows extends TestBase {
         return b;
     }
 
-    @SuppressWarnings("deprecation")
     @Override
     protected void setup() {
         autoWideWindow = new Window("Dialog - width by contents",
@@ -78,12 +78,12 @@ public class SubWindows extends TestBase {
             dialog.getContent().setHeight(null);
             dialog.getContent().setWidth("100%");
 
-            TextField tf = new TextField();
-            tf.setValue("The textfield should fill the window (except margins)."
+            TextArea ta = new TextArea();
+            ta.setValue("The textfield should fill the window (except margins)."
                     + "\n - Try to resize the window\n");
-            tf.setRows(5);
-            tf.setWidth("100%");
-            dialog.addComponent(tf);
+            ta.setRows(5);
+            ta.setWidth("100%");
+            dialog.addComponent(ta);
 
             dialog.setPositionX(20);
             dialog.setPositionY(100);
@@ -95,13 +95,13 @@ public class SubWindows extends TestBase {
             dialog.getContent().setHeight("100%");
             dialog.getContent().setWidth("100%");
 
-            TextField tf = new TextField();
-            tf.setValue("The textfield should fill the window (except margins)."
+            TextArea ta = new TextArea();
+            ta.setValue("The textfield should fill the window (except margins)."
                     + "\n - Try to resize the window\n");
-            tf.setWidth("100%");
-            tf.setHeight("100%");
-            tf.setRows(5);
-            dialog.addComponent(tf);
+            ta.setWidth("100%");
+            ta.setHeight("100%");
+            ta.setRows(5);
+            dialog.addComponent(ta);
 
             dialog.setPositionX(20);
             dialog.setPositionY(300);