summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>2011-12-19 11:33:02 +0000
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>2011-12-19 11:33:02 +0000
commit218c86756735147f2cf2b0181011861fcc3d05e4 (patch)
tree8151f943ef68d249be55011c5acfa6bcdbfe60f9
parenta79c9749fc0adea7c5ed7163d210c501984b05e9 (diff)
downloadvaadin-framework-218c86756735147f2cf2b0181011861fcc3d05e4.tar.gz
vaadin-framework-218c86756735147f2cf2b0181011861fcc3d05e4.zip
TestBench test for #8090
svn changeset:22439/svn branch:6.7
-rw-r--r--tests/testbench/com/vaadin/tests/components/window/ReplacingComponentsInHandleParameters.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/window/ReplacingComponentsInHandleParameters.java b/tests/testbench/com/vaadin/tests/components/window/ReplacingComponentsInHandleParameters.java
index 9e02acac95..d6fe10601f 100644
--- a/tests/testbench/com/vaadin/tests/components/window/ReplacingComponentsInHandleParameters.java
+++ b/tests/testbench/com/vaadin/tests/components/window/ReplacingComponentsInHandleParameters.java
@@ -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);
}
}