Revision: 4198 http://vexi.svn.sourceforge.net/vexi/?rev=4198&view=rev Author: clrg Date: 2011-07-24 23:14:05 +0000 (Sun, 24 Jul 2011)
Log Message: ----------- Rename Box.contains(b)->Box.holds(b) Modified Paths: -------------- trunk/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp trunk/org.vexi-core.main/src/test/java/test/core/box/methods.t Modified: trunk/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp =================================================================== --- trunk/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp 2011-07-22 13:24:43 UTC (rev 4197) +++ trunk/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp 2011-07-24 23:14:05 UTC (rev 4198) @@ -1695,7 +1695,7 @@ assertMethodRedirect(method); clear(args[0]); return null; - case "contains": + case "holds": try { for (Box b = (Box)args[0]; b.parent!=null; b = b.parent) if (b.parent == this) @@ -2013,7 +2013,7 @@ * @param(box) * @return(Boolean) */ - case "contains": + case "holds": return METHOD; /* <p>Returns the index of box <em>b</em> within the subject box. If box <em>b</em> is not Modified: trunk/org.vexi-core.main/src/test/java/test/core/box/methods.t =================================================================== --- trunk/org.vexi-core.main/src/test/java/test/core/box/methods.t 2011-07-22 13:24:43 UTC (rev 4197) +++ trunk/org.vexi-core.main/src/test/java/test/core/box/methods.t 2011-07-24 23:14:05 UTC (rev 4198) @@ -37,6 +37,7 @@ assertEq(a.numchildren, 2); a.clear(); + // test clear(n1,n2) var b2 = box; var b3 = box; a.add(b2); @@ -50,6 +51,7 @@ assertEq(a.indexof(b3), 1); a.clear(); + // test holds(b) var c1 = box; var c2 = box; var c3 = box; @@ -58,13 +60,13 @@ c1.add(box); c1.add(c2); c1.add(c3); - assertEq(a.contains(c1), true); - assertEq(a.contains(c2), true); - assertEq(c1.contains(c2), true); - assertEq(c1.contains(c3), true); - assertEq(c1.contains(c1), false); - assertEq(c1.contains(a), false); - assertEq(c2.contains(a), false); + assertEq(a.holds(c1), true); + assertEq(a.holds(c2), true); + assertEq(c1.holds(c2), true); + assertEq(c1.holds(c3), true); + assertEq(c1.holds(c1), false); + assertEq(c1.holds(a), false); + assertEq(c2.holds(a), false); a.clear(); <ui:box /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn