![]()
Asserts that the function was called
expected times.
Arguments:
|
code » | ||
No description.
Returns: number
Total number of calls.
|
code » | ||
No description.
|
code » | ||
No description.
Returns: goog.testing.FunctionCall
Last call of the recorded function or
null if it hasn't been called.
|
code » | ||
Returns and removes the last call of the recorded function.
Returns: goog.testing.FunctionCall
Last call of the recorded function or
null if it hasn't been called.
|
code » | ||
Same as
goog.testing.recordFunction but the recorded function will
have the same prototype and static fields as the original one. It can be
used with constructors.
|
code » | ||
Wraps the function into another one which calls the inner function and
records its calls. The recorded function will have 3 static methods:
getCallCount , getCalls and getLastCall but won't
inherit the original function's prototype and static fields.
Arguments:
Returns: !Function
The wrapped function.
|
code » | ||
![]()
No description.
|
code » | ||
![]()
Resets the recorded function and removes all calls.
|
code » |