TestComplete

public class
unittest.TestComplete

Description

Special class to be used when making asynchronous tests. Simply add a parameter with this type to your testing function and call the done() function when your asynchronous test is complete.

API overview

Constructor

TestComplete ( d: Function )

Functions

Public functions

done ( msg: Object = null ): Void

Function to be called when a test is completed

Constructor

TestComplete ( d: Function )

Functions

done ( msg: Object = null ): Void

Function to be called when a test is completed. If this function is called more than once in a given test, an error will be asserted.

to the test results.

Parameters

msg: Object = null A custom result object that will be shown as a String next


getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

: