From xap-commits-return-506-apmail-incubator-xap-commits-archive=incubator.apache.org@incubator.apache.org Tue Sep 26 17:54:30 2006 Return-Path: Delivered-To: apmail-incubator-xap-commits-archive@locus.apache.org Received: (qmail 96961 invoked from network); 26 Sep 2006 17:54:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 17:54:30 -0000 Received: (qmail 66224 invoked by uid 500); 26 Sep 2006 17:54:30 -0000 Delivered-To: apmail-incubator-xap-commits-archive@incubator.apache.org Received: (qmail 66199 invoked by uid 500); 26 Sep 2006 17:54:30 -0000 Mailing-List: contact xap-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xap-dev@incubator.apache.org Delivered-To: mailing list xap-commits@incubator.apache.org Received: (qmail 66190 invoked by uid 99); 26 Sep 2006 17:54:30 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 10:54:30 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=mturyn@apache.org; spf=permerror X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received-SPF: error (idunn.apache.osuosl.org: domain apache.org from 140.211.166.113 cause and error) Received: from [140.211.166.113] ([140.211.166.113:51534] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id B7/90-14537-55969154 for ; Tue, 26 Sep 2006 10:54:29 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id A4ACC1A981A; Tue, 26 Sep 2006 10:54:27 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r450130 - /incubator/xap/trunk/testsrc/xap/mco/_TestDeclarativeArgumentParser.js Date: Tue, 26 Sep 2006 17:54:27 -0000 To: xap-commits@incubator.apache.org From: mturyn@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060926175427.A4ACC1A981A@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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());