goog.testing.mockmatchers
Functions
flexibleArrayMatcher( expectedArr, arr, opt_expectation ) → boolean
boolean
A function that checks to see if an array matches a given set of expectations. The expectations array can be a mix of ArgumentMatcher implementations and values. True will be returned if values are identical or if a matcher returns a positive result.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
Properties
ignoreArgument → goog.testing.mockmatchers.IgnoreArgument
goog.testing.mockmatchers.IgnoreArgument
An instance of the IgnoreArgument matcher. Returns true for all matches.
A matcher that verifies that an argument is an array.
isArrayLike → goog.testing.mockmatchers.ArgumentMatcher
goog.testing.mockmatchers.ArgumentMatcher
A matcher that verifies that an argument is a array-like. A NodeList is an example of a collection that is very close to an array.
isBoolean → goog.testing.mockmatchers.ArgumentMatcher
goog.testing.mockmatchers.ArgumentMatcher
A matcher that verifies that an argument is a boolean.
isDateLike → goog.testing.mockmatchers.ArgumentMatcher
goog.testing.mockmatchers.ArgumentMatcher
A matcher that verifies that an argument is a date-like.
isFunction → goog.testing.mockmatchers.ArgumentMatcher
goog.testing.mockmatchers.ArgumentMatcher
A matcher that verifies that an argument is a function.
isNodeLike → goog.testing.mockmatchers.ArgumentMatcher
goog.testing.mockmatchers.ArgumentMatcher
A matcher that verifies that an argument is like a DOM node.
isNumber → goog.testing.mockmatchers.ArgumentMatcher
goog.testing.mockmatchers.ArgumentMatcher
A matcher that verifies that an argument is a number.
isObject → goog.testing.mockmatchers.ArgumentMatcher
goog.testing.mockmatchers.ArgumentMatcher
A matcher that verifies that an argument is an object.
isString → goog.testing.mockmatchers.ArgumentMatcher
goog.testing.mockmatchers.ArgumentMatcher
A matcher that verifies that an argument is a string.