From 64476985a968d850a542f3c7ffcae2d305399676 Mon Sep 17 00:00:00 2001 From: John Alhroos Date: Mon, 28 Jun 2010 11:44:30 +0000 Subject: [PATCH] Added test for #4567 svn changeset:13941/svn branch:6.4 --- .../form/FormCaptionClickFocusing.html | 42 +++++++++++++++++++ .../form/FormCaptionClickFocusing.java | 29 +++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.html create mode 100644 tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.java 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 index 0000000000..ab0aa25c44 --- /dev/null +++ b/tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.html @@ -0,0 +1,42 @@ + + + + + + +New Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
New Test
open/run/com.vaadin.tests.components.form.FormCaptionClickFocusing
mouseClickvaadin=runcomvaadintestscomponentsformFormCaptionClickFocusing::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VFormLayout[0]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0]15,7
enterCharactervaadin=runcomvaadintestscomponentsformFormCaptionClickFocusing::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VFormLayout[0]/VFormLayout$VFormLayoutTable[0]/VTextField[0]some text
mouseClickvaadin=runcomvaadintestscomponentsformFormCaptionClickFocusing::/VVerticalLayout[0]/domChild[0]/domChild[1]161,159
screenCaptureTextAddedByClickingCaption
+ + 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 index 0000000000..4afe289825 --- /dev/null +++ b/tests/src/com/vaadin/tests/components/form/FormCaptionClickFocusing.java @@ -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; + } + +} -- 2.39.5