summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket1673.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket1673.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1673.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1673.java b/uitest/src/com/vaadin/tests/tickets/Ticket1673.java
new file mode 100644
index 0000000000..99f213541a
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1673.java
@@ -0,0 +1,34 @@
+package com.vaadin.tests.tickets;
+
+import com.vaadin.Application;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
+import com.vaadin.ui.UI.LegacyWindow;
+
+public class Ticket1673 extends com.vaadin.Application.LegacyApplication {
+
+ @Override
+ public void init() {
+
+ final LegacyWindow main = new LegacyWindow("#1673");
+ setMainWindow(main);
+
+ main.addComponent(new Button("close", new Button.ClickListener() {
+ @Override
+ public void buttonClick(ClickEvent event) {
+ close();
+ }
+ }));
+
+ }
+
+ public static Application.SystemMessages getSystemMessages() {
+ Application.CustomizedSystemMessages msgs = new Application.CustomizedSystemMessages();
+
+ msgs.setSessionExpiredURL("http://www.vaadin.com/");
+ msgs.setSessionExpiredCaption("Foo");
+ msgs.setSessionExpiredMessage("Bar");
+
+ return msgs;
+ }
+}