diff options
author | Artur Signell <artur@vaadin.com> | 2012-11-26 20:27:02 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-11-27 09:55:40 +0000 |
commit | bcad61f83313b7ed73f56db39371491abe38e267 (patch) | |
tree | 92c8213392c744d18b26e9d68e4fbb9be09f8514 /uitest/src/com/vaadin/tests/components/ui | |
parent | 3af04af7ba6ff654587ce80778a3c7dbfc5d6d78 (diff) | |
download | vaadin-framework-bcad61f83313b7ed73f56db39371491abe38e267.tar.gz vaadin-framework-bcad61f83313b7ed73f56db39371491abe38e267.zip |
Fixed Window to support empty content (#10325)
Change-Id: I90a5f4e4011452f07e4bea2cef2207ad8635cd31
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/ui')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/ui/EmptyWindow.html | 27 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/components/ui/EmptyWindow.java | 26 |
2 files changed, 53 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/ui/EmptyWindow.html b/uitest/src/com/vaadin/tests/components/ui/EmptyWindow.html new file mode 100644 index 0000000000..cc7b0751fc --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/ui/EmptyWindow.html @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="http://arturwin.office.itmill.com:8888/" /> +<title>New Test</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">New Test</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/run/com.vaadin.tests.components.ui.EmptyWindow?restartApplication</td> + <td></td> +</tr> +<tr> + <td>screenCapture</td> + <td></td> + <td>emptyWindow</td> +</tr> + +</tbody></table> +</body> +</html> diff --git a/uitest/src/com/vaadin/tests/components/ui/EmptyWindow.java b/uitest/src/com/vaadin/tests/components/ui/EmptyWindow.java new file mode 100644 index 0000000000..c3975921df --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/ui/EmptyWindow.java @@ -0,0 +1,26 @@ +package com.vaadin.tests.components.ui;
+
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.tests.components.AbstractTestUI;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.Window;
+
+public class EmptyWindow extends AbstractTestUI {
+
+ @Override
+ protected void setup(VaadinRequest request) {
+ addWindow(new Window("My empty window"));
+ setContent(new Label("UI"));
+ }
+
+ @Override
+ protected String getTestDescription() {
+ return "There should be an empty window on the screen. Currently it should have the min width defined in VWindow";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 10325;
+ }
+
+}
|