]> source.dussan.org Git - vaadin-framework.git/commitdiff
Updated test case for #3710
authorArtur Signell <artur.signell@itmill.com>
Tue, 22 Dec 2009 08:11:28 +0000 (08:11 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 22 Dec 2009 08:11:28 +0000 (08:11 +0000)
svn changeset:10505/svn branch:6.2

tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.html [new file with mode: 0644]
tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java [new file with mode: 0644]
tests/src/com/vaadin/tests/tickets/Ticket3710.java [deleted file]

diff --git a/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.html b/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.html
new file mode 100644 (file)
index 0000000..fbeb0ee
--- /dev/null
@@ -0,0 +1,32 @@
+<?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="" />
+<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.form.UndefinedWideFormWithRelativeWideFooter?debug&amp;restartApplication</td>
+       <td></td>
+</tr>
+<tr>
+       <td>waitForVaadin</td>
+       <td></td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>initial</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java b/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java
new file mode 100644 (file)
index 0000000..4c47c8a
--- /dev/null
@@ -0,0 +1,35 @@
+package com.vaadin.tests.components.form;
+
+import com.vaadin.Application;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Form;
+import com.vaadin.ui.HorizontalLayout;
+import com.vaadin.ui.TextField;
+import com.vaadin.ui.Window;
+
+@SuppressWarnings("serial")
+public class UndefinedWideFormWithRelativeWideFooter extends Application {
+
+    @Override
+    public void init() {
+
+        Window w = new Window("Test");
+        setMainWindow(w);
+
+        final Form f = new Form();
+        w.addComponent(f);
+        f.setSizeUndefined();
+        f.getLayout().setSizeUndefined();
+
+        f.setCaption("Test form with a really long caption");
+        f.addField("foo", new TextField("Foo"));
+        f.addField("bar", new TextField("A bit longer field caption"));
+
+        HorizontalLayout hl = new HorizontalLayout();
+        hl.setWidth("100%");
+        Button b = new Button("right aligned");
+        hl.addComponent(b);
+        hl.setComponentAlignment(b, "r");
+        f.setFooter(hl);
+    }
+}
diff --git a/tests/src/com/vaadin/tests/tickets/Ticket3710.java b/tests/src/com/vaadin/tests/tickets/Ticket3710.java
deleted file mode 100644 (file)
index 430f396..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.vaadin.tests.tickets;
-
-import com.vaadin.Application;
-import com.vaadin.ui.Button;
-import com.vaadin.ui.Form;
-import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.TextField;
-import com.vaadin.ui.Window;
-
-@SuppressWarnings("serial")
-public class Ticket3710 extends Application {
-
-    @Override
-    public void init() {
-
-        Window w = new Window("Test");
-        setMainWindow(w);
-
-        final Form f = new Form();
-        w.addComponent(f);
-        f.setSizeUndefined();
-        f.setCaption("Test form with a really long caption");
-        f.addField("foo", new TextField("Foo"));
-        f.addField("bar", new TextField("A bit longer field caption"));
-
-        HorizontalLayout hl = new HorizontalLayout();
-        hl.setWidth("100%");
-        Button b = new Button("right aligned");
-        hl.addComponent(b);
-        hl.setComponentAlignment(b, "r");
-        f.setFooter(hl);
-    }
-
-}