summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni@vaadin.com>2014-08-07 10:35:59 +0300
committerArtur Signell <artur@vaadin.com>2014-08-11 18:30:58 +0000
commitc21e8c3e76e6cda3a785d50d8d4e9301cb8c9c1a (patch)
treec2dc8259489800a865b84c209f014be1336d0abc
parentee124b34b2997e0d91363b8cd3eb9f50b035f48f (diff)
downloadvaadin-framework-c21e8c3e76e6cda3a785d50d8d4e9301cb8c9c1a.tar.gz
vaadin-framework-c21e8c3e76e6cda3a785d50d8d4e9301cb8c9c1a.zip
Added more hierarchy levels to the hierarchical container in ValoThemeUI test
Change-Id: Ic35c2f77a5acb0221792ad0a0195e4566dbece00
-rw-r--r--uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java28
1 files changed, 27 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java b/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java
index 1f92265d9d..5f286989a0 100644
--- a/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java
+++ b/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java
@@ -395,8 +395,34 @@ public class ValoThemeUI extends UI {
sg.nextString(true) + " " + sg.nextString(false));
child.getItemProperty(ICON_PROPERTY).setValue(
testIcon.get());
- ((Hierarchical) container).setChildrenAllowed(id, false);
+ // ((Hierarchical) container).setChildrenAllowed(id, false);
((Hierarchical) container).setParent(id, i);
+
+ for (int k = 1; k < 5; k++) {
+ String id2 = id + " -> " + k;
+ child = container.addItem(id2);
+ child.getItemProperty(CAPTION_PROPERTY).setValue(
+ sg.nextString(true) + " "
+ + sg.nextString(false));
+ child.getItemProperty(ICON_PROPERTY).setValue(
+ testIcon.get());
+ // ((Hierarchical) container)
+ // .setChildrenAllowed(id, false);
+ ((Hierarchical) container).setParent(id2, id);
+
+ for (int l = 1; l < 5; l++) {
+ String id3 = id2 + " -> " + l;
+ child = container.addItem(id3);
+ child.getItemProperty(CAPTION_PROPERTY).setValue(
+ sg.nextString(true) + " "
+ + sg.nextString(false));
+ child.getItemProperty(ICON_PROPERTY).setValue(
+ testIcon.get());
+ // ((Hierarchical) container)
+ // .setChildrenAllowed(id, false);
+ ((Hierarchical) container).setParent(id3, id2);
+ }
+ }
}
}
}