testing.FunctionCall Extends
Struct for a single function call.

Inheritance

Constructor

goog.testing.FunctionCall(functhisContextargsreterror)

Parameters

func : !Function
The called function.
thisContext : !Object
this context of called function.
args : !Arguments
Arguments of the called function.
ret : *
Return value of the function or undefined in case of error.
error : *
The error thrown by the function or null if none.

Instance Methods

Public Protected Private
getArgument(index) *
Returns the nth argument of the called function.
Arguments:
index : number
0-based index of the argument.
Returns: *  The argument value or undefined if there is no such argument.
code »
getArguments() !Array
No description.
Returns: !Array  Arguments of the called function.
code »
getError() *
No description.
Returns: *  The error thrown by the function or null if none.
code »
getFunction() !Function
No description.
Returns: !Function  The called function.
code »
getReturnValue() *
No description.
Returns: *  Return value of the function or undefined in case of error.
code »
getThis() !Object
No description.
Returns: !Object  this context of called function. It is the same as the created object if the function is a constructor.
code »

Instance Properties

arguments_ :
No description.
Code »
error_ :
No description.
Code »
function_ :
No description.
Code »
returnValue_ :
No description.
Code »
thisContext_ :
No description.
Code »

Package testing

Package Reference