]> source.dussan.org Git - vaadin-framework.git/commitdiff
TestBench test for #8090
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 19 Dec 2011 11:33:02 +0000 (11:33 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 19 Dec 2011 11:33:02 +0000 (11:33 +0000)
svn changeset:22439/svn branch:6.7

tests/testbench/com/vaadin/tests/components/window/ReplacingComponentsInHandleParameters.java

index 9e02acac9503257f8250e9da34aa37e509b05116..d6fe10601f245cf67dcb7aba0701bd04ad9cd33e 100644 (file)
@@ -6,6 +6,7 @@ import com.vaadin.tests.components.TestBase;
 import com.vaadin.ui.Button;
 import com.vaadin.ui.Button.ClickEvent;
 import com.vaadin.ui.Button.ClickListener;
+import com.vaadin.ui.Label;
 import com.vaadin.ui.Window;
 
 public class ReplacingComponentsInHandleParameters extends TestBase {
@@ -27,22 +28,19 @@ public class ReplacingComponentsInHandleParameters extends TestBase {
                 event.getButton().setCaption("Clicked!");
             }
         };
-
         final Window main = new Window() {
             @Override
             public void handleParameters(Map<String, String[]> parameters) {
                 super.handleParameters(parameters);
                 removeAllComponents();
-                Button btn = new Button("Testing 2", clickListener);
+                addComponent(new Label(
+                        "Reload window (without ?restartApplication), then click the button twice."));
+
+                Button btn = new Button("Click me", clickListener);
                 btn.setDebugId("TestId");
                 addComponent(btn);
             }
         };
-
-        Button btn = new Button("Testing", clickListener);
-        btn.setDebugId("TestId");
-        main.addComponent(btn);
-
         setMainWindow(main);
     }
 }