![]()
Runs a function in an environment where test failures are not logged. This is
useful for testing test code, where failures can be a normal part of a test.
Arguments:
|
code » | ||||
Tells whether the array contains the given element.
Arguments:
Returns: boolean
Whether the element is in the array.
|
code » | ||||
Determines if two items of any type match, and formulates an error message
if not.
Arguments:
Returns: ?string
Null on success, error message on failure.
|
code » | ||||
No description.
Arguments:
Returns: string
A failure message of the values don't match.
|
code » | ||||
Finds the position of the first occurrence of an element in a container.
Arguments:
Returns: number
Index of the first occurrence or -1 if not found.
|
code » | ||||
Helper function for assertObjectEquals.
|
code » | ||||
Compares equality of two numbers, allowing them to differ up to a given
tolerance.
|
code » | ||||
![]()
Raises a JsUnit exception with the given comment.
Arguments:
|
code » | ||||
Converts an array like object to array or clones it if it's already array.
Arguments:
Returns: !Array
Copy of the collection as array.
|
code » |
![]()
No description.
|
Code » | |
![]()
The return value of the equality predicate passed to findDifferences below,
in cases where the predicate can't test the input variables for equality.
|
Code » | |
![]()
The return value of the equality predicate passed to findDifferences below,
in cases where the input vriables are equal.
|
Code » | |
![]()
No description.
|
Code » |