You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2012/09/25 00:11:46 UTC
svn commit: r1389624 -
/incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as
Author: aharui
Date: Mon Sep 24 22:11:46 2012
New Revision: 1389624
URL: http://svn.apache.org/viewvc?rev=1389624&view=rev
Log:
Fix problem in last change. Not sure why it didn't blow up on every SWF.
Modified:
incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as
Modified: incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as?rev=1389624&r1=1389623&r2=1389624&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as (original)
+++ incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/UnitTester.as Mon Sep 24 22:11:46 2012
@@ -1212,13 +1212,22 @@ public class UnitTester extends EventDis
}
public static var pendingOutput:int = 0;
+ public static var frameWaitCount:int = 0;
- private static function waitForOutput(event:Event):void
+ private static function waitForOutput():void
{
if (pendingOutput > 0)
{
- trace("waiting on pending output", pendingOutput);
- callback = waitForOutput;
+ if (frameWaitCount > 3) // wait about 3 frames to see if results come back
+ {
+ setTimeout(exit, UnitTester.coverageTimeout);
+ }
+ else
+ {
+ trace("waiting on pending output", pendingOutput);
+ callback = waitForOutput;
+ frameWaitCount++;
+ }
}
else
setTimeout(exit, UnitTester.coverageTimeout);