From 10bd115ada9b1143129b4e5df695f8a7f65c2aba Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 29 Mar 2010 16:04:22 +0000 Subject: Fixed Treefiltering testcase + new reference images svn changeset:12198/svn branch:6.3 --- .../tests/components/tree/TreeFiltering.html | 37 ++++++++++++++++------ .../tests/components/tree/TreeFiltering.java | 2 ++ 2 files changed, 30 insertions(+), 9 deletions(-) (limited to 'tests/src') diff --git a/tests/src/com/vaadin/tests/components/tree/TreeFiltering.html b/tests/src/com/vaadin/tests/components/tree/TreeFiltering.html index d65cd4d104..7c25eee75d 100644 --- a/tests/src/com/vaadin/tests/components/tree/TreeFiltering.html +++ b/tests/src/com/vaadin/tests/components/tree/TreeFiltering.html @@ -33,7 +33,7 @@ click - vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0] + vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VButton[0] @@ -48,7 +48,7 @@ click - vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VButton[0]/domChild[0]/domChild[0] + vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[8]/VButton[0]/domChild[0]/domChild[0] @@ -63,7 +63,7 @@ click - vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[3]/VButton[0]/domChild[0]/domChild[0] + vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[5]/VButton[0]/domChild[0]/domChild[0] @@ -77,10 +77,15 @@ filter-0 - click - vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VButton[0]/domChild[0]/domChild[0] + waitForVaadin + + + mouseClick + vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VCheckBox[0]/domChild[0] + 69,10 + waitForVaadin @@ -89,11 +94,26 @@ screenCapture - filter-0-and-num + filter-0-no-parents + + + waitForVaadin + + + + + mouseClick + vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VCheckBox[0]/domChild[0] + 69,10 + + + waitForVaadin + + click - vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[4]/VButton[0]/domChild[0] + vaadin=runcomvaadintestscomponentstreeTreeFiltering::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[3]/VButton[0] @@ -104,9 +124,8 @@ screenCapture - unfiltered + all-removed - diff --git a/tests/src/com/vaadin/tests/components/tree/TreeFiltering.java b/tests/src/com/vaadin/tests/components/tree/TreeFiltering.java index 25d7a510f1..bea9fb3377 100644 --- a/tests/src/com/vaadin/tests/components/tree/TreeFiltering.java +++ b/tests/src/com/vaadin/tests/components/tree/TreeFiltering.java @@ -44,11 +44,13 @@ public class TreeFiltering extends TestBase { final CheckBox filterType = new CheckBox( "Include parent when filtering", true); + filterType.setImmediate(true); filterType.addListener(new ValueChangeListener() { public void valueChange(ValueChangeEvent event) { cont.setIncludeParentsWhenFiltering(((CheckBox) event .getProperty()).booleanValue()); + ccTree.requestRepaint(); } }); addComponent(filterType); -- cgit v1.2.3