r9922 - apps/modules/trunk/test/tests
[email protected] Fri, 18 Sep 2009 10:05:04 +0200 (CEST)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090918080504.F33B93D0E3@mia> |
Author: hannes
Date: 2009-09-18 10:05:04 +0200 (Fri, 18 Sep 2009)
New Revision: 9922
Modified:
apps/modules/trunk/test/tests/HopObjectGroupBy.js
Log:
Use both grouped and ungrouped collection to add test set
Details at http://dev.helma.org/trac/helma/changeset/9922
Modified: apps/modules/trunk/test/tests/HopObjectGroupBy.js
===================================================================
--- apps/modules/trunk/test/tests/HopObjectGroupBy.js 2009-09-18 07:58:27 UTC (rev 9921)
+++ apps/modules/trunk/test/tests/HopObjectGroupBy.js 2009-09-18 08:05:04 UTC (rev 9922)
@@ -13,7 +13,11 @@
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();
}