objectmatcher.js
No description.

File Location

/goog/labs/testing/objectmatcher.js

Classes

goog.labs.testing.HasPropertyMatcher
The HasProperty matcher.
goog.labs.testing.InstanceOfMatcher
The InstanceOf matcher.
goog.labs.testing.IsNullOrUndefinedMatcher
The IsNullOrUndefined matcher.
goog.labs.testing.IsUndefinedMatcher
The IsUndefined matcher.

Public Protected Private

Global Functions

equalsObject(object) !goog.labs.testing.ObjectEqualsMatcher
Returns a matcher that matches objects that are equal to the input object. Equality in this case means the two objects are references to the same object.
Arguments:
object : !Object
The expected object.
Returns: !goog.labs.testing.ObjectEqualsMatcher  A ObjectEqualsMatcher.
code »
hasProperty(property) !goog.labs.testing.HasPropertyMatcher
Returns a matcher that matches objects that contain the input property.
Arguments:
property : string
The property name to check.
Returns: !goog.labs.testing.HasPropertyMatcher  A HasPropertyMatcher.
code »
instanceOfClass(object) !goog.labs.testing.InstanceOfMatcher
Returns a matcher that matches instances of the input class.
Arguments:
object : !Object
The class object.
Returns: !goog.labs.testing.InstanceOfMatcher  A InstanceOfMatcher.
code »
Returns a matcher that matches all null values.
Returns: !goog.labs.testing.IsNullMatcher  A IsNullMatcher.
code »
Returns a matcher that matches all null and undefined values.
Returns: !goog.labs.testing.IsNullOrUndefinedMatcher  A IsNullOrUndefinedMatcher.
code »
Returns a matcher that matches undefined values.
Returns: !goog.labs.testing.IsUndefinedMatcher  A IsUndefinedMatcher.
code »

Directory testing

File Reference