]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case for #3828
authorArtur Signell <artur.signell@itmill.com>
Mon, 14 Dec 2009 13:04:02 +0000 (13:04 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 14 Dec 2009 13:04:02 +0000 (13:04 +0000)
svn changeset:10283/svn branch:6.2

tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Chrome_3_1.png [new file with mode: 0644]
tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Firefox_3_1.png [new file with mode: 0644]
tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_6_1.png [new file with mode: 0644]
tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_7_1.png [new file with mode: 0644]
tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_8_1.png [new file with mode: 0644]
tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Opera_10_1.png [new file with mode: 0644]
tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Safari_4_1.png [new file with mode: 0644]
tests/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.html [new file with mode: 0644]
tests/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java [new file with mode: 0644]

diff --git a/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Chrome_3_1.png b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Chrome_3_1.png
new file mode 100644 (file)
index 0000000..c76ade2
Binary files /dev/null and b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Chrome_3_1.png differ
diff --git a/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Firefox_3_1.png b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Firefox_3_1.png
new file mode 100644 (file)
index 0000000..c640012
Binary files /dev/null and b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Firefox_3_1.png differ
diff --git a/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_6_1.png b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_6_1.png
new file mode 100644 (file)
index 0000000..733d481
Binary files /dev/null and b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_6_1.png differ
diff --git a/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_7_1.png b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_7_1.png
new file mode 100644 (file)
index 0000000..aff8fcb
Binary files /dev/null and b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_7_1.png differ
diff --git a/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_8_1.png b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_8_1.png
new file mode 100644 (file)
index 0000000..e7b007d
Binary files /dev/null and b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_InternetExplorer_8_1.png differ
diff --git a/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Opera_10_1.png b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Opera_10_1.png
new file mode 100644 (file)
index 0000000..0da245d
Binary files /dev/null and b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Opera_10_1.png differ
diff --git a/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Safari_4_1.png b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Safari_4_1.png
new file mode 100644 (file)
index 0000000..55ecc25
Binary files /dev/null and b/tests/screenshots/errors/TextFieldInLayoutInTable_Windows_Safari_4_1.png differ
diff --git a/tests/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.html b/tests/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.html
new file mode 100644 (file)
index 0000000..d3ca502
--- /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="http://artur-laptop.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/TextFieldInLayoutInTable</td>
+       <td></td>
+</tr>
+<tr>
+       <td>waitForVaadin</td>
+       <td></td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/tests/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java b/tests/src/com/vaadin/tests/components/textfield/TextFieldInLayoutInTable.java
new file mode 100644 (file)
index 0000000..b5619d1
--- /dev/null
@@ -0,0 +1,33 @@
+package com.vaadin.tests.components.textfield;\r
+import com.vaadin.Application;\r
+import com.vaadin.ui.Component;\r
+import com.vaadin.ui.Panel;\r
+import com.vaadin.ui.Table;\r
+import com.vaadin.ui.TextField;\r
+import com.vaadin.ui.VerticalLayout;\r
+import com.vaadin.ui.Window;\r
+\r
+@SuppressWarnings("serial")\r
+public class TextFieldInLayoutInTable extends Application {\r
+\r
+    @Override\r
+    public void init() {\r
+\r
+        final Window mainWindow = new Window(this.getClass().getName());\r
+        setMainWindow(mainWindow);\r
+\r
+        final Table table = new Table();\r
+        table.addContainerProperty("column1", Component.class, null);\r
+        final Panel panel = new Panel("Panel");\r
+        ((VerticalLayout) panel.getContent()).setMargin(false);\r
+        VerticalLayout vl = new VerticalLayout();\r
+        final TextField textField = new TextField();\r
+        vl.addComponent(textField);\r
+\r
+        table.addItem(new Object[] { vl }, 1);\r
+\r
+        table.setSizeFull();\r
+        mainWindow.addComponent(table);\r
+    }\r
+\r
+}\r