Class Index | File Index

Classes


Built-In Namespace _global_

Method Summary
Method Attributes Method Name and Description
 
Assert(test, error)
Assert that a condition is true, stopping the engine if it is false.
 
AssertWarn(test, error)
Assert that a condition is true, reporting a warning if the test fails.
Method Detail
Assert(test, error)
Assert that a condition is true, stopping the engine if it is false. If the condifion fails an exception will be thrown.
Defined in: debug.console.js.
Parameters:
test
{Boolean} A simple test that should evaluate to true
error
{String} The error message to throw if the test fails

AssertWarn(test, error)
Assert that a condition is true, reporting a warning if the test fails.
Defined in: debug.console.js.
Parameters:
test
{Boolean} A simple test that should evaluate to true
error
{String} The warning to display if the test fails

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 18 2013 16:09:14 GMT-0400 (EDT)