Revision: 3528
          http://vexi.svn.sourceforge.net/vexi/?rev=3528&view=rev
Author:   clrg
Date:     2009-06-23 17:05:53 +0000 (Tue, 23 Jun 2009)

Log Message:
-----------
Some small junit updates (fix thisboxNull.t test)

Modified Paths:
--------------
    trunk/core/org.vexi.core/src_junit/test/core/box/childrentrap/thisboxNull.t

Added Paths:
-----------
    trunk/core/org.vexi.core/src_junit/test/core/box/display.t

Modified: 
trunk/core/org.vexi.core/src_junit/test/core/box/childrentrap/thisboxNull.t
===================================================================
--- trunk/core/org.vexi.core/src_junit/test/core/box/childrentrap/thisboxNull.t 
2009-06-23 17:04:27 UTC (rev 3527)
+++ trunk/core/org.vexi.core/src_junit/test/core/box/childrentrap/thisboxNull.t 
2009-06-23 17:05:53 UTC (rev 3528)
@@ -31,11 +31,10 @@
     // let's be cuter
     a[0] = c2;
     assert(a.c2_added);
-    b[0] = c2;
-    assert(a.c2_removed);
     assert(b.c2_added);
     c2.thisbox = null;
     assert(b.c2_removed);
+    assert(a.c2_removed);
     
     <ui:box />
 </vexi>

Added: trunk/core/org.vexi.core/src_junit/test/core/box/display.t
===================================================================
--- trunk/core/org.vexi.core/src_junit/test/core/box/display.t                  
        (rev 0)
+++ trunk/core/org.vexi.core/src_junit/test/core/box/display.t  2009-06-23 
17:05:53 UTC (rev 3528)
@@ -0,0 +1,21 @@
+
+<vexi xmlns:ui="vexi://ui" xmlns="" xmlns:lib="_lib">
+    
+    var a = vexi.box;
+    var pretrap = false;
+    var posttrap = false;
+    a.nullitem = null;
+    a.someprop ++= function(v) { pretrap = true; var n = 
trapee.nullitem.issue; posttrap = true; return; }
+    a.display ++= function(v) { trapee.someprop = true; cascade = v; }
+    vexi.thread = function() {
+        try {
+            a.display = true;
+        } finally {
+            assert(pretrap==true);
+            assert(posttrap==false);
+            assert(a.display==false);
+        }
+    }
+    
+    <ui:box/>
+</vexi>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to