Bromine.Tester Class
Test Runner Takes care of registering tests, running them and reporting their results
Constructor
Item Index
Methods
Properties
Methods
addEvent
(
chainable
-
the
-
a
Adds an event
addEventOnce
(
chainable
-
the
-
a
Adds an event for one execution, then removes it
addEvents
(
chainable
-
literal
Helper to add multiple events at once
Parameters:
-
literal
Objectobject of event types => callbacks
fireEvent
(
chainable
-
event
-
arguments
dispatches an event
Parameters:
-
event
Stringtype
-
arguments
Mixedto pass with the event
fireLatchedEvent
(
chainable
-
the
-
arguments
Fires a latched event
Parameters:
-
the
Stringevent type
-
arguments
Mixedto pass with the event
registerTest
(
-
name
-
paramaters
register a test
Parameters:
-
name
String -
paramaters
Object | Bromine.Testfor Test constructor or a Test instance
registerTest
(
-
name
-
paramaters
register a test
Parameters:
-
name
String -
paramaters
Object | Bromine.Testfor Test constructor or a Test instance
removeEvent
(
chainable
-
event
-
function
removes a function from an event
reset
()
resets test runner
reset
()
resets test runner
run
()
starts running tests
run
()
starts running tests
Properties
Events
testDone
fires when a test is done successfuly
Event Payload:
-
args
Object-
name
String -
test
Bromine.Test -
results
Array
-
testDone
fires when a test is done successfuly
Event Payload:
-
args
Object-
name
String -
test
Bromine.Test -
results
Array
-
testFAil
fires when a test is done but failed
Event Payload:
-
args
Object-
name
String -
test
Bromine.Test -
results
Array
-
testFAil
fires when a test is done but failed
Event Payload:
-
args
Object-
name
String -
test
Bromine.Test -
results
Array
-