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

tests/testbench/com/vaadin/tests/components/table/EditableTableFocus.java [new file with mode: 0644]

diff --git a/tests/testbench/com/vaadin/tests/components/table/EditableTableFocus.java b/tests/testbench/com/vaadin/tests/components/table/EditableTableFocus.java
new file mode 100644 (file)
index 0000000..149e325
--- /dev/null
@@ -0,0 +1,35 @@
+package com.vaadin.tests.components.table;\r
+\r
+import com.vaadin.tests.components.TestBase;\r
+import com.vaadin.ui.Table;\r
+\r
+public class EditableTableFocus extends TestBase {\r
+    @Override\r
+    public void setup() {\r
+        Table table = new Table();\r
+\r
+        table.addContainerProperty("TextField", String.class, null);\r
+        table.setColumnWidth("TextField", 150);\r
+        for (int i = 1; i < 100; i++) {\r
+            table.addItem(new String[] { "" }, new Integer(i));\r
+        }\r
+        table.setEditable(true);\r
+\r
+        addComponent(table);\r
+    }\r
+\r
+    @Override\r
+    protected String getDescription() {\r
+        return "<b>IE-Problem: TextFields in table lose their focus, no input possible</b><p>"\r
+                + "Try inputs in the table's textfields in the freshly started programm. For the moment all works fine.<p>"\r
+                + "Then scroll the table down one page or more.<br>"\r
+                + "Try again to make some inputs. Nothing happens...<br>"\r
+                + "Now the textfields always lose their focus immediately after they got it and no input is taken.<p>"\r
+                + "<b>This problem is exclusive to Microsoft's Internet Explorer!</b>";\r
+    }\r
+\r
+    @Override\r
+    protected Integer getTicketNumber() {\r
+        return 7965;\r
+    }\r
+}
\ No newline at end of file