EventTest

public class
loom2d.tests.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.

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



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.

: