Revision: 4056 http://vexi.svn.sourceforge.net/vexi/?rev=4056&view=rev Author: jeffbuhrt Date: 2011-03-20 16:28:58 +0000 (Sun, 20 Mar 2011)
Log Message: ----------- Simplate testcase for #40 (https://sourceforge.net/apps/trac/vexi/ticket/40) Added Paths: ----------- trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_grid.t Added: trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_grid.t =================================================================== --- trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_grid.t (rev 0) +++ trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_grid.t 2011-03-20 16:28:58 UTC (rev 4056) @@ -0,0 +1,62 @@ +<vexi + xmlns:ui="vexi://ui" + xmlns:meta="vexi://meta" + xmlns:wi="vexi.widget" + xmlns:lay="vexi.layout" +> + static.name = "Grid exception Test Case"; + static.category = "Test Cases"; + + // + + <ui:box id="pane" orient="vertical" padding="2" align="topleft" autohide="true"> + + <wi:button id="toggle" name="toggle" text="Cause grid exception" shrink="true"/> + +<!-- exact exception as prod + Scheduler: A JavaScript thread spawned with vexi.thread threw an exception: + JSExn: org.vexi.lib.layout.grid:337 Tried to get the null key from array$d9896e + at org.vexi.lib.layout.grid:337 + at org.vexi.lib.layout.grid:485 + at org.vexi.lib.layout.grid:592 + at org.vexi.lib.layout.grid:609 + + <lay:grid cols="2" > + + <ui:box colspan="2" id="box1" text="box1"/> + + <ui:box colspan="2" id="box2" text="box2"/> + + <ui:box colspan="2" id="box3" text="box3"/> + </lay:grid> +--> + +<!-- Similar exception from doing same thing + Scheduler: A JavaScript thread spawned with vexi.thread threw an exception: + JSExn: org.vexi.lib.layout.grid:195 Tried to get the null key from array$1dc64a5 + at org.vexi.lib.layout.grid:195 + at org.vexi.lib.layout.grid:580 + at org.vexi.lib.layout.grid:592 + at org.vexi.lib.layout.grid:609 +--> + <lay:grid > + + <ui:box id="box1" text="box1"/> + + <ui:box id="box2" text="box2"/> + + <ui:box id="box3" text="box3"/> + </lay:grid> + + thisbox.setDisplayRules2 = function (item_set) { + $box1.display = false; + $box3.display = false; + } + + $toggle.action ++= function (v) { + cascade = v; + setDisplayRules2(2); + } + + </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. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn