Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 _error, MooTest.TestBlock
 _tests, MooTest.TestBlock
A
 assert, MooTest.TestSet
 assertDefined, MooTest.TestSet
 assertEquals, MooTest.TestSet
 assertGreater, MooTest.TestSet
 assertGreaterOrEqual, MooTest.TestSet
 assertLesser, MooTest.TestSet
 assertLesserOrEqual, MooTest.TestSet
 assertNotDefined, MooTest.TestSet
 assertNotEquals, MooTest.TestSet
 assertThrowException, MooTest.TestSet
 assertThrowNotException, MooTest.TestSet
 assertZero, MooTest.TestSet
C
 ClassEnhancer, MooTest.TestFailed.MooTest
I
 initialize
R
 run
_error: function(description)
Throw a new error caused by a test failed.
_tests: function()
Method to override to return a map between test names and callables; each callable is a test.
assert: function(condition,
message)
Assert a condition.
assertDefined: function(v,
message)
Assert a value is defined (according to the MooTools ‘$defined’ function; that is, it’s neither null nor undefined).
assertEquals: function(v1,
v2,
message)
Assert two values are the same (according to the ‘==’ operator).
assertGreater: function(v1,
v2,
message)
Assert the first value is greater than the second (according to the ‘>’ operator).
assertGreaterOrEqual: function(v1,
v2,
message)
Assert the first value is greater or equal than the second (according to the ‘>=’ operator).
assertLesser: function(v1,
v2,
message)
Assert the first value is greater than the second (according to the ‘<’ operator).
assertLesserOrEqual: function(v1,
v2,
message)
Assert the first value is greater or equal than the second (according to the ‘<=’ operator).
assertNotDefined: function(v,
message)
Assert a value is not defined (according to the MooTools ‘$defined’ function; that is, it’s either null or undefined).
assertNotEquals: function(v1,
v2,
message)
Assert two values are the same (according to the ‘!=’ operator).
assertThrowException: function(f,
message)
Assert a piece of code throw an exception.
assertThrowNotException: function(f,
message)
Assert a piece of code throw not an exception.
assertZero: function(v,
message)
Assert a value is zero.
MooTest.ClassEnhancer = function(className,
classDefinition)
Adds to every method of the class definition a ‘functionName’ attribute which is the name of the function in the class definition.
initialize: function(testBlocks)
Create a new suite.
initialize: function()
Create a new test block.
initialize: function(tests)
Create a new TestSet.
run: function(testBlock)
Run a block of tests, showing the results.
run: function(callback)
Run the test(s) of this test block and report results to a callback function.
Close