Packagefunit.core
Classpublic class Test
InheritanceTest Inheritance flash.events.EventDispatcher
ImplementsITest
SubclassesTestCase, TestSuite



Public Properties
 PropertyDefined by
  description : String
Test
  fixture : Object
Test
  fixtureType : Type
[read-only]
Test
  ignoreReason : String
Test
  isSuite : Boolean
[read-only] [abstract]
Test
  parent : ITest
[read-only]
Test
  runState : RunState
Test
  testCount : int
[read-only] [abstract]
Test
  testName : TestName
[read-only]
Test
  tests : Array
[read-only] [abstract]
Test
  testType : String
[read-only] [abstract]
Test
Public Methods
 MethodDefined by
  
Test(fixtureType:Type = null)
Test
  
endRun():void
[abstract] Used to cancel any asynchronous processes and end the test.
Test
  
run(listener:ITestListener):void
[abstract]
Test
  
setParent(test:ITest):void
Test
Protected Methods
 MethodDefined by
  
delayTestFinish(timeout:int):void
Enters asynchronous mode and begins a delay period.
Test
  
finishTest(result:TestResult):void
Marks the test as complete and closes asynchronous mode successfully.
Test
Property detail
descriptionproperty
description:String  [read-write]

Implementation
    public function get description():String
    public function set description(value:String):void
fixtureproperty 
fixture:Object  [read-write]

Implementation
    public function get fixture():Object
    public function set fixture(value:Object):void
fixtureTypeproperty 
fixtureType:Type  [read-only]

Implementation
    public function get fixtureType():Type
ignoreReasonproperty 
ignoreReason:String  [read-write]

Implementation
    public function get ignoreReason():String
    public function set ignoreReason(value:String):void
isSuiteproperty 
isSuite:Boolean  [read-only]

[abstract]

Implementation
    public function get isSuite():Boolean
parentproperty 
parent:ITest  [read-only]

Implementation
    public function get parent():ITest
runStateproperty 
runState:RunState  [read-write]

Implementation
    public function get runState():RunState
    public function set runState(value:RunState):void
testCountproperty 
testCount:int  [read-only]

[abstract]

Implementation
    public function get testCount():int
testNameproperty 
testName:TestName  [read-only]

Implementation
    public function get testName():TestName
testsproperty 
tests:Array  [read-only]

[abstract]

Implementation
    public function get tests():Array
testTypeproperty 
testType:String  [read-only]

[abstract]

Implementation
    public function get testType():String
Constructor detail
Test()constructor
public function Test(fixtureType:Type = null)

Parameters
fixtureType:Type (default = null)
Method detail
delayTestFinish()method
protected function delayTestFinish(timeout:int):void

Enters asynchronous mode and begins a delay period. The test can only be marked 'complete' when one of three events occur.

Parameters
timeout:int — The time milliseconds when any pending asynchronous routines will expire.

See also

endRun()method 
public function endRun():void

[abstract] Used to cancel any asynchronous processes and end the test.

finishTest()method 
protected function finishTest(result:TestResult):void

Marks the test as complete and closes asynchronous mode successfully.

Parameters
result:TestResult
run()method 
public function run(listener:ITestListener):void

[abstract]

Parameters
listener:ITestListener
setParent()method 
public function setParent(test:ITest):void

Parameters
test:ITest