]> source.dussan.org Git - vaadin-framework.git/commitdiff
Modified test case to remove obsolete code since #6588 fix
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 7 Oct 2011 13:33:20 +0000 (13:33 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 7 Oct 2011 13:33:20 +0000 (13:33 +0000)
svn changeset:21651/svn branch:6.7

tests/testbench/com/vaadin/tests/components/textfield/TextChangeEvents.java

index f754beb7921bbe2e3ed84ff8e534628a55a8e7e5..f0f0a52237fab99049f01b67fd3e623a45581925 100644 (file)
@@ -101,22 +101,12 @@ public class TextChangeEvents extends TestBase {
                 // autocomplete if garret is at the end of the text
                 if (atTheEndOfText) {
                     suggest(match, matchlenght);
-                } else {
-                    keepCurrentText(event.getText());
                 }
             } else {
-                keepCurrentText(event.getText());
                 setStyleName("nomatch");
             }
         }
 
-        private void keepCurrentText(String curText) {
-            // keep the current text in the field despite the repaint due to
-            // classname change
-            setValue(curText);
-            setCursorPosition(getCursorPosition());
-        }
-
         private void suggest(String match, int matchlenght) {
             setValue(match);
             setSelectionRange(matchlenght, match.length() - matchlenght);