Revision: 2465
          http://vexi.svn.sourceforge.net/vexi/?rev=2465&view=rev
Author:   mkpg2
Date:     2007-10-14 20:21:45 -0700 (Sun, 14 Oct 2007)

Log Message:
-----------
Test fixed. Test should have been failing, but was passing. 
Exceptions on some box props are logged before they get to the interpreter. 
Worked around this.

Modified Paths:
--------------
    trunk/core/org.vexi.core/src_junit/test/core/box/layout/TestLayout.java
    trunk/core/org.vexi.core/src_junit/test/core/box/layout/visible.t

Modified: 
trunk/core/org.vexi.core/src_junit/test/core/box/layout/TestLayout.java
===================================================================
--- trunk/core/org.vexi.core/src_junit/test/core/box/layout/TestLayout.java     
2007-10-15 03:19:24 UTC (rev 2464)
+++ trunk/core/org.vexi.core/src_junit/test/core/box/layout/TestLayout.java     
2007-10-15 03:21:45 UTC (rev 2465)
@@ -2,10 +2,8 @@
 
 import junit.framework.Test;
 import junit.framework.TestCase;
-import test.core.CoreTestCase;
 import test.core.CoreTestSuite;
 import test.core.box.TestBox;
-import testdeployment.NanoHTTPD;
 
 /**
  * @author mike

Modified: trunk/core/org.vexi.core/src_junit/test/core/box/layout/visible.t
===================================================================
--- trunk/core/org.vexi.core/src_junit/test/core/box/layout/visible.t   
2007-10-15 03:19:24 UTC (rev 2464)
+++ trunk/core/org.vexi.core/src_junit/test/core/box/layout/visible.t   
2007-10-15 03:21:45 UTC (rev 2465)
@@ -1,18 +1,26 @@
 <vexi xmlns:ui="vexi://ui" xmlns="" xmlns:lib="_lib">
     
+    var completed = false;
     var b = vexi.box;
     b.visible ++= function(v) {
-        lib..assertEquals(false, b.visible);
-        lib..assertEquals(true, v);
+        .util..assertEquals(false, b.visible);
+        .util..assertEquals(true, v);
         cascade = v;
-        lib..assertEquals(true, b.visible);
+        .util..assertEquals(true, b.visible);
+        completed = true;
     }
     
     var c = vexi.box;
     c[0] = b;
     c.display = false;
     c.visible ++= function() { return true; }
+    vexi.log.warn("here");
     c.display = true;
+    // FEATURE - find a betterway to achieve this. Should the box
+    // exceptions escape to the scheduler?
+    assert(completed);
+    vexi.log.warn("here");
+
     
     <ui:box/>
 </vexi>


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to