]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test for #7978
authorArtur Signell <artur.signell@itmill.com>
Tue, 29 Nov 2011 15:05:25 +0000 (15:05 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 29 Nov 2011 15:05:25 +0000 (15:05 +0000)
svn changeset:22180/svn branch:6.7

tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.html [new file with mode: 0644]
tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.java [new file with mode: 0644]

diff --git a/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.html b/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.html
new file mode 100644 (file)
index 0000000..cb3b5e6
--- /dev/null
@@ -0,0 +1,47 @@
+<?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.button.ButtonsInHorizontalLayout?restartApplication&amp;theme=reindeer</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>reindeer</td>
+</tr>
+<tr>
+       <td>open</td>
+       <td>/run/com.vaadin.tests.components.button.ButtonsInHorizontalLayout?restartApplication&amp;theme=runo</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>runo</td>
+</tr>
+<tr>
+       <td>open</td>
+       <td>/run/com.vaadin.tests.components.button.ButtonsInHorizontalLayout?restartApplication&amp;theme=chameleon</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>chameleon</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.java b/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.java
new file mode 100644 (file)
index 0000000..83eff1b
--- /dev/null
@@ -0,0 +1,37 @@
+package com.vaadin.tests.components.button;\r
+\r
+import com.vaadin.tests.components.AbstractTestCase;\r
+import com.vaadin.ui.Button;\r
+import com.vaadin.ui.HorizontalLayout;\r
+import com.vaadin.ui.VerticalLayout;\r
+import com.vaadin.ui.Window;\r
+\r
+public class ButtonsInHorizontalLayout extends AbstractTestCase {\r
+\r
+    @Override\r
+    public void init() {\r
+        VerticalLayout content = new VerticalLayout();\r
+        content.setMargin(true);\r
+        HorizontalLayout layout = new HorizontalLayout();\r
+        layout.setSpacing(true);\r
+        layout.addComponent(new Button(\r
+                "Look at me in IE7 or IE8 in compatibility mode"));\r
+        layout.addComponent(new Button(\r
+                "Look at me in IE7 or IE8 in compatibility mode"));\r
+        layout.addComponent(new Button(\r
+                "Look at me in IE7 or IE8 in compatibility mode"));\r
+        content.addComponent(layout);\r
+        setMainWindow(new Window("", content));\r
+    }\r
+\r
+    @Override\r
+    protected String getDescription() {\r
+        return "Tests for rendering of buttons in a HorizontalLayout";\r
+    }\r
+\r
+    @Override\r
+    protected Integer getTicketNumber() {\r
+        return 7978;\r
+    }\r
+\r
+}\r