aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-06-05 11:06:17 +0300
committerVaadin Code Review <review@vaadin.com>2013-06-05 08:55:12 +0000
commit3c8a3bfcab674e791dc8e91ec5038b7e7e5257d0 (patch)
tree8a79b5cc0a0d9179f354350219cb8a9e0b5fe9f0 /uitest
parent1b85e5926a0375d87ac076391bfe9d5d0c034da9 (diff)
downloadvaadin-framework-3c8a3bfcab674e791dc8e91ec5038b7e7e5257d0.tar.gz
vaadin-framework-3c8a3bfcab674e791dc8e91ec5038b7e7e5257d0.zip
Merge of properly focus clicked input element in Webkit (#11854, #11297)
Change-Id: I4c313b55966bcbcd31a40bdd0bf561e887822e51
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/abstractfield/FieldFocusOnClick.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/abstractfield/FieldFocusOnClick.java b/uitest/src/com/vaadin/tests/components/abstractfield/FieldFocusOnClick.java
new file mode 100644
index 0000000000..30b6a3ad65
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/abstractfield/FieldFocusOnClick.java
@@ -0,0 +1,32 @@
+package com.vaadin.tests.components.abstractfield;
+
+import java.util.Arrays;
+
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.tests.components.AbstractTestUI;
+import com.vaadin.ui.CheckBox;
+import com.vaadin.ui.NativeButton;
+import com.vaadin.ui.OptionGroup;
+import com.vaadin.ui.TextField;
+
+public class FieldFocusOnClick extends AbstractTestUI {
+
+ @Override
+ protected void setup(VaadinRequest request) {
+ addComponent(new TextField(null, "TextField"));
+ addComponent(new CheckBox("CheckBox"));
+ addComponent(new OptionGroup(null,
+ Arrays.asList("Option 1", "Option 2")));
+ addComponent(new NativeButton("NativeButton"));
+ }
+
+ @Override
+ protected String getTestDescription() {
+ return "Webkit doesn't focus non-text input elements when clicked";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 11854;
+ }
+} \ No newline at end of file