|
From: <luk...@us...> - 2006-10-05 19:07:59
|
Revision: 120
http://svn.sourceforge.net/asunit/?rev=120&view=rev
Author: lukebayes
Date: 2006-10-05 12:07:54 -0700 (Thu, 05 Oct 2006)
Log Message:
-----------
hooked up DEFAULT_TIMEOUT constant to async method timeout duration
Modified Paths:
--------------
trunk/framework/as3/asunit/framework/TestCase.as
Modified: trunk/framework/as3/asunit/framework/TestCase.as
===================================================================
--- trunk/framework/as3/asunit/framework/TestCase.as 2006-10-05 19:03:10 UTC (rev 119)
+++ trunk/framework/as3/asunit/framework/TestCase.as 2006-10-05 19:07:54 UTC (rev 120)
@@ -80,7 +80,7 @@
/**
* the name of the test case
*/
- protected static var DEFAULT_TIMEOUT:int = 500;
+ protected static const DEFAULT_TIMEOUT:int = 1000;
protected var fName:String;
protected var result:TestResult;
protected var testMethods:Array;
@@ -277,7 +277,7 @@
return context;
}
- protected function addAsync(handler:Function = null, duration:Number=1000):Function {
+ protected function addAsync(handler:Function = null, duration:Number=DEFAULT_TIMEOUT):Function {
if(handler == null) {
handler = function() {};
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|