 |
FlexUnit - ActionScript 3.0 Unit Testing Framework
|
|
flexunit.frameworkClass TestResult
public class TestResult
A TestResult collects the results of an executing
Test. It is an instance of the Collecting Parameter pattern.
The test framework distinguishes between failures and errors.
A failure is anticipated and checked for with assertions. Errors are
unanticipated problems.
See also
syncToFrame Property
public var syncToFrame:Boolean
TestResult Constructor
public function TestResult()
addError Method
public function addError(test:Test, error:Error) : void
Parameters
Returns
addFailure Method
public function addFailure(test:Test, error:AssertionFailedError) : void
Parameters
Returns
addListener Method
public function addListener(listener:TestListener) : void
Parameters
Returns
continueRun Method
public function continueRun(testCase:TestCase) : void
Parameters
Returns
endTest Method
public function endTest(test:Test) : void
Parameters
Returns
errorCount Method
public function errorCount() : Number
Returns
errorsIterator Method
public function errorsIterator() : Iterator
Returns
failureCount Method
public function failureCount() : Number
Returns
failuresIterator Method
public function failuresIterator() : Iterator
Returns
removeListener Method
public function removeListener(listener:TestListener) : void
Parameters
Returns
run Method
public function run(testCase:TestCase) : void
Parameters
Returns
runCount Method
public function runCount() : Number
Returns
shouldStop Method
public function shouldStop() : Boolean
Returns
startTest Method
public function startTest(test:Test) : void
Parameters
Returns
stop Method
public function stop(stopTests:Boolean) : void
Parameters
Returns
wasSuccessful Method
public function wasSuccessful() : Boolean
Returns
Copyright © 2005 Macromedia Inc. All rights reserved.
Mon May 8 2006, 15:55 PDT