incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r450130 - /incubator/xap/trunk/testsrc/xap/mco/_TestDeclarativeArgumentParser.js
Date Tue, 26 Sep 2006 17:54:27 GMT
Author: mturyn
Date: Tue Sep 26 10:54:26 2006
New Revision: 450130

URL: http://svn.apache.org/viewvc?view=rev&rev=450130
Log:
Replaced locally-spec'd session object with a xap.session.ClientSession instance; better for
keeping in synch with internal changes in the latter.

Modified:
    incubator/xap/trunk/testsrc/xap/mco/_TestDeclarativeArgumentParser.js

Modified: incubator/xap/trunk/testsrc/xap/mco/_TestDeclarativeArgumentParser.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/testsrc/xap/mco/_TestDeclarativeArgumentParser.js?view=diff&rev=450130&r1=450129&r2=450130
==============================================================================
--- incubator/xap/trunk/testsrc/xap/mco/_TestDeclarativeArgumentParser.js (original)
+++ incubator/xap/trunk/testsrc/xap/mco/_TestDeclarativeArgumentParser.js Tue Sep 26 10:54:26
2006
@@ -62,26 +62,7 @@
 
    /* var session = new xap.session.ClientSession('', '', document.body); */
     
-   var session = {
-     getMcoContainer: function() {return this._mcoContainer},
-     getEventHandler: function() {return this._eventHandler},
-     getDeclarativeArgumentParser: function() {return this._declarativeArgumentParser},
-     addContainer: function(name, container) {this._namesToContainers.put(name, container)},
-     getContainer: function(name) {return this._namesToContainers.get(name)},
-     getDocumentContainer: function() {return this._documentContainer},
-     getSystemContainer: function() {return this._systemContainer},     
-     initialize: function() {
-		this._systemContainer = new xap.session.Container(this);
-		this._declarativeArgumentParser = new xap.session.DeclarativeArgumentParser(this);
-        this._documentContainer = new xap.xml.DocumentContainer(this);
-        this._namesToContainers = new xap.util.Hashtable(this);
-        this._eventHandler = new xap.session.EventHandler(this);
-        this._mcoContainer = new xap.session.Container(this);         
-        this.addContainer('mco', this._mcoContainer); 
-     }
-   };
-   
-   session.initialize();
+   var session = new xap.session.ClientSession(null,"dojo",null) ;
    
    var mcoContainer = session.getMcoContainer();
    mcoContainer.put('simple', new SimpleMco());
@@ -120,27 +101,8 @@
 }
 
 function testContainer() {
- var session = {
-     getSystemContainer: function() {return this._systemContainer}, 
-     getMcoContainer: function() {return this._mcoContainer},
-     getEventHandler: function() {return this._eventHandler},
-     getDeclarativeArgumentParser: function() {return this._declarativeArgumentParser},
-     addContainer: function(name, container) {this._namesToContainers.put(name, container)},
-     getContainer: function(name) {return this._namesToContainers.get(name)},
-     getDocumentContainer: function() {return this._documentContainer},
-     getSystemContainer: function() {return this._systemContainer},     
-     initialize: function() {
-     	this._systemContainer = new xap.session.Container(this);
-        this._declarativeArgumentParser = new xap.session.DeclarativeArgumentParser(this);
-        this._documentContainer = new xap.xml.DocumentContainer(this);
-        this._namesToContainers = new xap.util.Hashtable(this);
-        this._eventHandler = new xap.session.EventHandler(this);
-        this._mcoContainer = new xap.session.Container(this);
-        this.addContainer('mco', this._mcoContainer); 
-     }
-   };
-   
-   session.initialize();
+
+   var session = new xap.session.ClientSession(null,"dojo",null) ;
    
    var mcoContainer = session.getMcoContainer();
    mcoContainer.put('simple', new SimpleMco());



Mime
View raw message