Revision: 1770
          http://svn.sourceforge.net/vexi/?rev=1770&view=rev
Author:   mkpg2
Date:     2007-03-30 11:18:06 -0700 (Fri, 30 Mar 2007)

Log Message:
-----------
Tests. Elaborating part virualization test.

Modified Paths:
--------------
    core/trunk/org.vexi.core/src_junit/test/core/gut/virtualizepart.t

Modified: core/trunk/org.vexi.core/src_junit/test/core/gut/virtualizepart.t
===================================================================
--- core/trunk/org.vexi.core/src_junit/test/core/gut/virtualizepart.t   
2007-03-30 16:44:16 UTC (rev 1769)
+++ core/trunk/org.vexi.core/src_junit/test/core/gut/virtualizepart.t   
2007-03-30 18:18:06 UTC (rev 1770)
@@ -1,7 +1,6 @@
 <vexi xmlns:ui="vexi://ui" xmlns="">
 
-       var virtvexi = function(){
-       // REMARK - need to make a chain of clones of all the shared
+               // REMARK - need to make a chain of clones of all the shared
        // blessings. For example:
        //
                //   B3       B3b        i
@@ -25,13 +24,24 @@
                // REMARK B"" here is the root of the namespace vexi../vexi[""]
                // REMARK each blessing only shows one child, but they can have
                // may.
+    var virtvexi = function(){
        var vexi_world = vexi.clone(vexi);
+       var path = ".virtualized".split(".");
+               var parent = vexi_world;
+       for(var i=0; path.length>i; i++){
+               var clonee = parent[path[i]];
+               var clone = vexi_world.clone(clonee);
+               parent[path[i]] ++= clone;
+               parent = clone;
+       }
+       parent.sub ++= vexi_world.bless(parent.sub);
+       /* MANUALLY
        var B_clone = vexi_world.clone(vexi[""]);
        vexi_world[""] ++= B_clone;
        var B1_clone = vexi_world.clone(B_clone.virtualized);
        B_clone.virtualized ++= B1_clone;
        var B2b = vexi_world.bless(B1_clone.sub);
-       B1_clone.sub ++= B2b;
+       B1_clone.sub ++= B2b;*/
        return vexi_world;
        }
     


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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to