]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added test for #4567
authorJohn Alhroos <john.ahlroos@itmill.com>
Mon, 28 Jun 2010 11:44:30 +0000 (11:44 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Mon, 28 Jun 2010 11:44:30 +0000 (11:44 +0000)
svn changeset:13941/svn branch:6.4

tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.html [new file with mode: 0644]
tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.java [new file with mode: 0644]

diff --git a/tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.html b/tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.html
new file mode 100644 (file)
index 0000000..ab0aa25
--- /dev/null
@@ -0,0 +1,42 @@
+<?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://192.168.2.78:8080/" />
+<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.FormCaptionClickFocusing</td>
+       <td></td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsformFormCaptionClickFocusing::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VFormLayout[0]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
+       <td>15,7</td>
+</tr>
+<tr>
+       <td>enterCharacter</td>
+       <td>vaadin=runcomvaadintestscomponentsformFormCaptionClickFocusing::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VFormLayout[0]/VFormLayout$VFormLayoutTable[0]/VTextField[0]</td>
+       <td>some text</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsformFormCaptionClickFocusing::/VVerticalLayout[0]/domChild[0]/domChild[1]</td>
+       <td>161,159</td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>TextAddedByClickingCaption</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.java b/tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.java
new file mode 100644 (file)
index 0000000..4afe289
--- /dev/null
@@ -0,0 +1,29 @@
+package com.vaadin.tests.components.form;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.FormLayout;
+import com.vaadin.ui.TextField;
+
+public class FormCaptionClickFocusing extends TestBase {
+
+    @Override
+    protected void setup() {
+        FormLayout layout = new FormLayout();
+
+        TextField field = new TextField("Field 1");
+        layout.addComponent(field);
+
+        addComponent(layout);
+    }
+
+    @Override
+    protected String getDescription() {
+        return "Formlayout should focus the field if the layout is clicked and the field is focusable.";
+    }
+
+    @Override
+    protected Integer getTicketNumber() {
+        return 4567;
+    }
+
+}