Class TestFailure
Object
|
+--TestFailure
- class
TestFailure
Defined in test_failure.js
Constructor Summary |
TestFailure
(<Test> test, <Object> error)
Creates an object to tie a failed test to the cause of its failure.
|
TestFailure
function TestFailure(<Test> test, <Object> error)
Creates an object to tie a failed test to the cause of its failure.
Parameters:
test
- the test that failed
error
- the exception or error that was thrown to cause the test to fail
getCause
Object getCause()
Returns the cause of the test's failure.
Returns:
the exception or error that caused the test to fail
getTest
Test getTest()