Changeset 8206 in josm for trunk/test/unit/org
- Timestamp:
- 2015-04-17T23:06:34+02:00 (10 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/KeyConditionTest.groovy
r7081 r8206 77 77 r.addMember(new RelationMember("my_role", n)) 78 78 79 Environment e = new Environment().withPrimitive(n).withParent(r).withIndex(0).withLinkContext() 79 Environment e = new Environment().withPrimitive(n).withParent(r).withIndex(0, r.membersCount).withLinkContext() 80 80 81 81 Condition cond = Condition.createKeyCondition("my_role", false, null, Context.LINK) … … 92 92 r.addMember(new RelationMember("my_role", n)) 93 93 94 Environment e = new Environment().withPrimitive(n).withParent(r).withIndex(0).withLinkContext() 94 Environment e = new Environment().withPrimitive(n).withParent(r).withIndex(0, r.membersCount).withLinkContext() 95 95 96 96 Condition cond = Condition.createKeyCondition("another_role", false, null, Context.LINK) -
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/KeyValueConditionTest.groovy
r7081 r8206 63 63 r.addMember(new RelationMember("my_role", n)) 64 64 65 Environment e = new Environment().withPrimitive(n).withParent(r).withLinkContext().withIndex(0) 65 Environment e = new Environment().withPrimitive(n).withParent(r).withLinkContext().withIndex(0, r.membersCount) 66 66 67 67 Condition cond = new Condition.RoleCondition("my_role", Op.EQ) … … 78 78 r.addMember(new RelationMember("my_role", n)) 79 79 80 Environment e = new Environment().withPrimitive(n).withParent(r).withIndex(0).withLinkContext() 80 Environment e = new Environment().withPrimitive(n).withParent(r).withIndex(0, r.membersCount).withLinkContext() 81 81 82 82 Condition cond = Condition.createKeyValueCondition("role", "my_role", Op.NEQ, Context.LINK, false)
Note:
See TracChangeset
for help on using the changeset viewer.