From: John Alhroos Date: Wed, 25 Aug 2010 12:19:13 +0000 (+0000) Subject: Fix for #5487 special case (0 tab index) X-Git-Tag: 6.7.0.beta1~1258 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=25afc64e4a2753da7d53807f04206995eef78b6f;p=vaadin-framework.git Fix for #5487 special case (0 tab index) svn changeset:14599/svn branch:6.4 --- diff --git a/tests/src/com/vaadin/tests/components/textfield/SetTabIndex.html b/tests/src/com/vaadin/tests/components/textfield/SetTabIndex.html index 51cfe86485..b61b464f97 100644 --- a/tests/src/com/vaadin/tests/components/textfield/SetTabIndex.html +++ b/tests/src/com/vaadin/tests/components/textfield/SetTabIndex.html @@ -3,7 +3,7 @@ - + SetTabIndex @@ -19,18 +19,13 @@ mouseClick vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTextField[0] - 122,10 + 39,10 enterCharacter vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTextField[0] 111 - - pressSpecialKey - vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTextField[0] - enter - enterCharacter vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VTextField[0] @@ -42,34 +37,94 @@ 333 - drag - vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTextField[0] - + enterCharacter + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[3]/VTextField[0] + 444 - drop - vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0] - 4,64 + pressSpecialKey + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VCheckBox[0]/domChild[0] + enter - mouseClick - vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTextField[0] - -14,13 + assertValue + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VTextField[0] + 333 + + + assertValue + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VTextField[0] + 222 + + + assertValue + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[3]/VTextField[0] + 444 assertValue vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTextField[0] 111 + + mouseClick + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VCheckBox[0]/domChild[0] + -22,-191 + + + screenCapture + + readonly + + + mouseClick + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VCheckBox[0]/domChild[0] + 8,11 + assertValue + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[3]/VTextField[0] + 444 + + + enterCharacter + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[3]/VTextField[0] + 555 + + + enterCharacter vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VTextField[0] - 333 + 666 + + + enterCharacter + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VTextField[0] + 777 + + + enterCharacter + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTextField[0] + 888 + + + assertValue + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[3]/VTextField[0] + 555 assertValue vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VTextField[0] - 222 + 777 + + + assertValue + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VTextField[0] + 666 + + + assertValue + vaadin=runcomvaadintestscomponentstextfieldSetTabIndex::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTextField[0] + 888 diff --git a/tests/src/com/vaadin/tests/components/textfield/SetTabIndex.java b/tests/src/com/vaadin/tests/components/textfield/SetTabIndex.java index 1904c8e7a3..d81d26591a 100644 --- a/tests/src/com/vaadin/tests/components/textfield/SetTabIndex.java +++ b/tests/src/com/vaadin/tests/components/textfield/SetTabIndex.java @@ -22,6 +22,9 @@ public class SetTabIndex extends TestBase { field2.setTabIndex(2); addComponent(field2); + final TextField field0 = new TextField("Field2 (tabindex 0)"); + addComponent(field0); + final CheckBox readonly = new CheckBox("Readonly"); readonly.setImmediate(true); readonly.addListener(new Property.ValueChangeListener() { @@ -31,6 +34,7 @@ public class SetTabIndex extends TestBase { field1.setReadOnly(readonly); field2.setReadOnly(readonly); field3.setReadOnly(readonly); + field0.setReadOnly(readonly); } }); addComponent(readonly);