Class goog.testing.MockExpectation code » This is a class that represents an expectation.
Constructor goog.testing.MockExpectation ( name )
Parameters name: string
The name of the method for this expectation.
Show: Public Protected Private
Instance Methods Allow expectation failures to include messages.
Parameters message: string
The failure message.
Get the error messages seen so far.
Returns Error messages separated by \n.
Get how many error messages have been seen so far.
Returns Count of error messages.
Instance Properties The number of times this method is called by real code.
The arguments that are expected to be passed to this function
An array of error messages for expectations not met.
The value that will be thrown when the method is called
The maximum number of times this method should be called.
The minimum number of times this method should be called.
The name of the method that is expected to be called.
The value that this method should return.
The function which will be executed when this method is called.
Method arguments will be passed to this function, and return value
of this function will be returned by the method.
The number of times this method is called during the verification phase.
Overview Types Loading
Modules Loading
Files Loading
License