| $#! | |
| _error, MooTest. | |
| _tests, MooTest. | |
| A | |
| assert, MooTest. | |
| assertDefined, MooTest. | |
| assertEquals, MooTest. | |
| assertGreater, MooTest. | |
| assertGreaterOrEqual, MooTest. | |
| assertLesser, MooTest. | |
| assertLesserOrEqual, MooTest. | |
| assertNotDefined, MooTest. | |
| assertNotEquals, MooTest. | |
| assertThrowException, MooTest. | |
| assertThrowNotException, MooTest. | |
| assertZero, MooTest. | |
| C | |
| ClassEnhancer, MooTest. | |
| I | |
| initialize | |
| R | |
| run |
Throw a new error caused by a test failed.
_error: function( description )
Method to override to return a map between test names and callables; each callable is a test.
_tests: function()
Assert a condition.
assert: function( condition, message )
Assert a value is defined (according to the MooTools ‘$defined’ function; that is, it’s neither null nor undefined).
assertDefined: function( v, message )
Assert two values are the same (according to the ‘==’ operator).
assertEquals: function( v1, v2, message )
Assert the first value is greater than the second (according to the ‘>’ operator).
assertGreater: function( v1, v2, message )
Assert the first value is greater or equal than the second (according to the ‘>=’ operator).
assertGreaterOrEqual: function( v1, v2, message )
Assert the first value is greater than the second (according to the ‘<’ operator).
assertLesser: function( v1, v2, message )
Assert the first value is greater or equal than the second (according to the ‘<=’ operator).
assertLesserOrEqual: function( v1, v2, message )
Assert a value is not defined (according to the MooTools ‘$defined’ function; that is, it’s either null or undefined).
assertNotDefined: function( v, message )
Assert two values are the same (according to the ‘!=’ operator).
assertNotEquals: function( v1, v2, message )
Assert a piece of code throw an exception.
assertThrowException: function( f, message )
Assert a piece of code throw not an exception.
assertThrowNotException: function( f, message )
Assert a value is zero.
assertZero: function( v, message )
Adds to every method of the class definition a ‘functionName’ attribute which is the name of the function in the class definition.
MooTest.ClassEnhancer = function( className, classDefinition )
Create a new suite.
initialize: function( testBlocks )
Create a new test block.
initialize: function()
Create a new TestSet.
initialize: function( tests )
Run a block of tests, showing the results.
run: function( testBlock )
Run the test(s) of this test block and report results to a callback function.
run: function( callback )