Revision: 2221 http://vexi.svn.sourceforge.net/vexi/?rev=2221&view=rev Author: clrg Date: 2007-09-15 19:03:11 -0700 (Sat, 15 Sep 2007)
Log Message: ----------- Deleted Removed Paths: ------------- trunk/widgets/org.vexi.widgets/src_vunit/test/layout/grid_packing.t Deleted: trunk/widgets/org.vexi.widgets/src_vunit/test/layout/grid_packing.t =================================================================== --- trunk/widgets/org.vexi.widgets/src_vunit/test/layout/grid_packing.t 2007-09-16 02:02:42 UTC (rev 2220) +++ trunk/widgets/org.vexi.widgets/src_vunit/test/layout/grid_packing.t 2007-09-16 02:03:11 UTC (rev 2221) @@ -1,52 +0,0 @@ -<vexi xmlns:meta="vexi://meta" xmlns:ui="vexi://ui" xmlns="vexi.layout"> - <meta:doc> - <author>Charles Goodwin</author> - </meta:doc> - - var vunit = vexi..vexi.test.vunit; - - var newBox = function(n, c, r) { - var b = vexi.box; - b.name = n; - b.colspan = c; - b.rowspan = r; - return b; - }; - - var assertSlot = function(c, r, b) { - vexi.log.info(b.name+": "+b.col+"+"+b.colspan+" - "+b.row+"+"+b.rowspan); - vunit..assertEquals(c, b.col); - vunit..assertEquals(r, b.row); - }; - - static.test = function() { - /// Quick Suite - var suite = {}; - suite.testQ1 = function(){ - /* - AABBB - AABBB - CCDDD - */ - var b = vexi.box; - b.visible ++= function(v) { return; }; - .grid(b); - b.cols=5; - b[0] = newBox("A",2,2); - b[1] = newBox("B",3,2); - b[2] = newBox("C",2,1); - b[3] = newBox("D",2,1); - b.visible = true; - - assertSlot(0,0,b[0]); - assertSlot(2,0,b[1]); - assertSlot(0,2,b[2]); - assertSlot(2,2,b[3]); - }; - return vunit..newQuickSuite("vexi.layout.grid Packing", suite); - }; - - <ui:box> - static.test().getTest("Q1").run(); - </ui:box> -</vexi> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn