summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2007.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2007.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2007.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2007.java b/uitest/src/com/vaadin/tests/tickets/Ticket2007.java
new file mode 100644
index 0000000000..fcffbc01bf
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2007.java
@@ -0,0 +1,29 @@
+package com.vaadin.tests.tickets;
+
+import com.vaadin.Application;
+import com.vaadin.server.ExternalResource;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
+import com.vaadin.ui.UI.LegacyWindow;
+
+public class Ticket2007 extends Application.LegacyApplication {
+
+ int childs = 0;
+
+ @Override
+ public void init() {
+
+ final LegacyWindow main = new LegacyWindow("Main window for #2007");
+ setMainWindow(main);
+ main.addComponent(new Button("Open another (non-main) window",
+ new Button.ClickListener() {
+ @Override
+ public void buttonClick(ClickEvent event) {
+ LegacyWindow c = new LegacyWindow(
+ "Non-main browser window " + (++childs));
+ addWindow(c);
+ main.open(new ExternalResource(c.getURL()), "_new");
+ }
+ }));
+ }
+}