flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1433777 - /flex/sdk/branches/develop/mustella/as3/src/mustella/TestCase.as
Date Wed, 16 Jan 2013 00:44:18 GMT
Author: aharui
Date: Wed Jan 16 00:44:17 2013
New Revision: 1433777

URL: http://svn.apache.org/viewvc?rev=1433777&view=rev
Log:
Fix random timeouts in mobile tests that use step_timeout/timeout_plus.

Modified:
    flex/sdk/branches/develop/mustella/as3/src/mustella/TestCase.as

Modified: flex/sdk/branches/develop/mustella/as3/src/mustella/TestCase.as
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/mustella/as3/src/mustella/TestCase.as?rev=1433777&r1=1433776&r2=1433777&view=diff
==============================================================================
--- flex/sdk/branches/develop/mustella/as3/src/mustella/TestCase.as (original)
+++ flex/sdk/branches/develop/mustella/as3/src/mustella/TestCase.as Wed Jan 16 00:44:17 2013
@@ -119,7 +119,7 @@ public class TestCase extends EventDispa
 	/**
 	 *  If non-zero, the time when we'll give up on waiting
 	 */
-	private var expirationTime:int;
+	public var expirationTime:int;
 
 	/**
 	 *  the last expected Error thrown by SetProperty
@@ -131,7 +131,7 @@ public class TestCase extends EventDispa
 	 */
 	public function setExpirationTime(time:int):void
 	{
-		expirationTime = time + UnitTester.timeout_plus;
+		expirationTime = (time > 0) ? time + UnitTester.timeout_plus : 0;
 	}
 
 	/**



Mime
View raw message