From f96e05341764e6cb42c35e9f56158e688f5b63dc Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 18 Sep 2009 08:05:04 +0000 Subject: [PATCH] Use both grouped and ungrouped collection to add test set --- test/tests/HopObjectGroupBy.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/tests/HopObjectGroupBy.js b/test/tests/HopObjectGroupBy.js index a45702c7..fc028b12 100644 --- a/test/tests/HopObjectGroupBy.js +++ b/test/tests/HopObjectGroupBy.js @@ -13,7 +13,11 @@ function setup() { var org = new Organisation(); org.name = "Organisation " + i; org.country = "CH" + i.format("0000"); - root.organisations.add(org); + // add to different collections + if (i % 2 == 0) + root.organisations.add(org); + else + root.organisationsByCountry.add(org); } res.commit(); }