[qooxdoo-commit] SF.net SVN: qooxdoo:[26960] trunk/qooxdoo/framework/source/class/qx/test/io /remot
Brought to you by:
ecker,
martinwittemann
From: <tri...@us...> - 2011-04-29 13:55:07
|
Revision: 26960 http://qooxdoo.svn.sourceforge.net/qooxdoo/?rev=26960&view=rev Author: tristankoch Date: 2011-04-29 13:55:01 +0000 (Fri, 29 Apr 2011) Log Message: ----------- Fixed warnings and tests Modified Paths: -------------- trunk/qooxdoo/framework/source/class/qx/test/io/remote/AbstractRequest.js trunk/qooxdoo/framework/source/class/qx/test/io/remote/RequestXhr.js Modified: trunk/qooxdoo/framework/source/class/qx/test/io/remote/AbstractRequest.js =================================================================== --- trunk/qooxdoo/framework/source/class/qx/test/io/remote/AbstractRequest.js 2011-04-29 13:37:41 UTC (rev 26959) +++ trunk/qooxdoo/framework/source/class/qx/test/io/remote/AbstractRequest.js 2011-04-29 13:55:01 UTC (rev 26960) @@ -64,6 +64,10 @@ throw new Error("Abstract method call"); }, + _getRequests: function() { + return this.__requests; + }, + tearDown : function() { this._disposeArray("__request"); }, Modified: trunk/qooxdoo/framework/source/class/qx/test/io/remote/RequestXhr.js =================================================================== --- trunk/qooxdoo/framework/source/class/qx/test/io/remote/RequestXhr.js 2011-04-29 13:37:41 UTC (rev 26959) +++ trunk/qooxdoo/framework/source/class/qx/test/io/remote/RequestXhr.js 2011-04-29 13:55:01 UTC (rev 26960) @@ -48,9 +48,9 @@ var completedCount = 0; - for (var i = 0; i < this.__requests.length; i++) + for (var i = 0; i < this._getRequests().length; i++) { - var request = this.__requests[i]; + var request = this._getRequests()[i]; request.setAsynchronous(false); request.setParameter("test", "test" + i); @@ -83,8 +83,8 @@ return; } - var asynchronousRequest = this.__requests[0]; - var synchronousRequest = this.__requests[1]; + var asynchronousRequest = this._getRequests()[0]; + var synchronousRequest = this._getRequests()[1]; asynchronousRequest.setParameter("test", "asynchronousRequest"); asynchronousRequest.setParameter("sleep", 1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |