EventTest
Description
Tests for the Event class and friends.
API overview
Constructor
EventTest
()
Functions
Public functions
| run (): Void | |
| testBubbleWithModifiedChain (): Void | |
| testBubbling (): Void | |
| testDuplicateEventHandler (): Void |
[Test] public function testBlankEventDispatcher():void { var dispatcher:EventDispatcher = new EventDispatcher(); Helpers.assertDoesNotThrow(function():void { dispatcher.removeEventListener("Test", null); }); Helpers.assertDoesNotThrow(function():void { dispatcher.removeEventListeners("Test"); }); } |
| testRedispatch (): Void | |
| testRemoveEventListeners (): Void | |
| testStopPropagation (): Void |
Constructor
EventTest ()
Functions
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. |
testDuplicateEventHandler (): Void
[Test] public function testBlankEventDispatcher():void { var dispatcher:EventDispatcher = new EventDispatcher();
Helpers.assertDoesNotThrow(function():void { dispatcher.removeEventListener("Test", null); });
Helpers.assertDoesNotThrow(function():void { dispatcher.removeEventListeners("Test"); }); }