This is the base class for collecting test output and formatting for different
displays.
This class simply presents test results as if they were being shown on a terminal.
The
XMLResultPrinter
provides a good example of how this class can
be subclassed and used to emit different/additional output.
height:Number
[write-only]Implementation
public function set height(value:Number):void
protected var startTime:Number
protected var testTimes:Array
width:Number
[write-only]Implementation
public function set width(value:Number):void
public function ResultPrinter(showTrace:Boolean = false)
Parameters
| showTrace:Boolean (default = false )
|
public function addError(test:Test, t:Error):void
Parameters
See also
public function addFailure(test:Test, t:AssertionFailedError):void
Parameters
See also
protected function elapsedTimeAsString(runTime:Number):String
Returns the formatted string of the elapsed time.
Duplicated from BaseTestRunner. Fix it.
Parameters
Returns
public function endTest(test:Test):void
Parameters
See also
public function endTestMethod(test:Test, methodName:String):void
Parameters
| test:Test |
|
| methodName:String |
See also
public function onFormatTimeout(format:TextFormat, startIndex:uint, endIndex:uint):void
Parameters
| format:TextFormat |
|
| startIndex:uint |
|
| endIndex:uint |
public function print(... args):void
Parameters
public function printDefect(booBoo:TestFailure, count:int):void
Parameters
protected function printDefectHeader(booBoo:TestFailure, count:int):void
Parameters
protected function printDefects(booBoos:Object, count:int, type:String):void
Parameters
| booBoos:Object |
|
| count:int |
|
| type:String |
protected function printDefectTrace(booBoo:TestFailure):void
Parameters
protected function printErrors(result:TestResult):void
Parameters
protected function printFailures(result:TestResult):void
Parameters
protected function printFooter(result:TestResult):void
Parameters
protected function printHeader(runTime:Number):void
Parameters
public function println(... args):void
Parameters
public function printResult(result:TestResult, runTime:Number):void
Parameters
protected function printTimeSummary():void
public function run(test:Test):void
API for use by textui.TestRunner
Parameters
public function setShowTrace(showTrace:Boolean):void
Parameters
public function startTest(test:Test):void
Parameters
See also
public function startTestMethod(test:Test, methodName:String):void
Parameters
| test:Test |
|
| methodName:String |
See also