]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix test app and add test scripts
authorLeif Åstrand <leif@vaadin.com>
Thu, 19 Apr 2012 08:14:48 +0000 (11:14 +0300)
committerLeif Åstrand <leif@vaadin.com>
Thu, 19 Apr 2012 08:14:59 +0000 (11:14 +0300)
tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTemplate.html [new file with mode: 0644]
tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTheme.html [new file with mode: 0644]
tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTheme.java

diff --git a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTemplate.html b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTemplate.html
new file mode 100644 (file)
index 0000000..b2806af
--- /dev/null
@@ -0,0 +1,21 @@
+<?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>com.vaadin.tests.components.accordion.AccordionInactiveTabSize</title></head><body><table cellpadding="1" cellspacing="1" border="1"><thead><tr><td rowspan="1" colspan="3">com.vaadin.tests.components.accordion.AccordionInactiveTabSize</td></tr></thead><tbody><tr>
+       <td>open</td>
+       <td>/run/com.vaadin.tests.components.customcomponent.CustomLayoutUsingTemplate?restartApplication</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>initial</td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>vaadin=runcomvaadintestscomponentscustomcomponentCustomLayoutUsingTemplate::/VVerticalLayout[0]/VVerticalLayout[0]/VCustomLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>with-text-field</td>
+</tr>
+</tbody></table></body></html>
\ No newline at end of file
diff --git a/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTheme.html b/tests/testbench/com/vaadin/tests/components/customcomponent/CustomLayoutUsingTheme.html
new file mode 100644 (file)
index 0000000..954afb2
--- /dev/null
@@ -0,0 +1,31 @@
+<?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>com.vaadin.tests.components.accordion.AccordionInactiveTabSize</title></head><body><table cellpadding="1" cellspacing="1" border="1"><thead><tr><td rowspan="1" colspan="3">com.vaadin.tests.components.accordion.AccordionInactiveTabSize</td></tr></thead><tbody><tr>
+       <td>open</td>
+       <td>/run/com.vaadin.tests.components.customcomponent.CustomLayoutUsingTheme?restartApplication</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>initial</td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>vaadin=runcomvaadintestscomponentscustomcomponentCustomLayoutUsingTheme::/VVerticalLayout[0]/VVerticalLayout[0]/VCustomLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>label</td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>vaadin=runcomvaadintestscomponentscustomcomponentCustomLayoutUsingTheme::/VVerticalLayout[0]/VVerticalLayout[0]/VCustomLayout[0]/VVerticalLayout[0]/VButton[1]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>button</td>
+</tr>
+</tbody></table></body></html>
\ No newline at end of file
index 3e8b697cd7bf69bb9a0f57a4b94b255ed4889ee6..6ea1d0a0c53e3c62b2434e290436277580fa36e6 100644 (file)
@@ -23,20 +23,21 @@ public class CustomLayoutUsingTheme extends TestBase implements ClickListener {
         layout.addComponent(new TextField("Username"), "loginUser");
         layout.addComponent(new TextField("Password"), "loginPassword");
         layout.addComponent(new Button("Login"), "loginButton");
+        layout.setWidth(null);
 
         VerticalLayout menu = new VerticalLayout();
-        menu.addComponent(new Button("Set main to label", new ClickListener() {
+        menu.addComponent(new Button("Set body to label", new ClickListener() {
 
             public void buttonClick(ClickEvent event) {
-                layout.addComponent(new Label(LoremIpsum.get(200)), "main");
+                layout.addComponent(new Label(LoremIpsum.get(200)), "body");
             }
         }));
-        menu.addComponent(new Button("Set main to huge NativeButton",
+        menu.addComponent(new Button("Set body to huge NativeButton",
                 new ClickListener() {
 
                     public void buttonClick(ClickEvent event) {
                         layout.addComponent(new NativeButton(
-                                "This is it, the main!"), "main");
+                                "This is it, the body!"), "body");
                     }
                 }));
         layout.addComponent(menu, "menu");