dictionarymatcher.js
No description.

File Location

/goog/labs/testing/dictionarymatcher.js

Classes

goog.labs.testing.HasEntriesMatcher
The HasEntries matcher.
goog.labs.testing.HasEntryMatcher
The HasEntry matcher.
goog.labs.testing.HasValueMatcher
The HasValue matcher.

Public Protected Private

Global Functions

hasEntries(entries) !goog.labs.testing.HasEntriesMatcher
Gives a matcher that asserts an object contains all the given key-value pairs in the input object.
Arguments:
entries : !Object
The entries to check for presence in the object.
Returns: !goog.labs.testing.HasEntriesMatcher  A HasEntriesMatcher.
code »
hasEntry(keyvalue) !goog.labs.testing.HasEntryMatcher
Gives a matcher that asserts an object contains the given key-value pair.
Arguments:
key : string
The key to check for presence in the object.
value : *
The value to check for presence in the object.
Returns: !goog.labs.testing.HasEntryMatcher  A HasEntryMatcher.
code »
Gives a matcher that asserts an object contains the given key.
Arguments:
key : string
The key to check for presence in the object.
Returns: !goog.labs.testing.HasKeyMatcher  A HasKeyMatcher.
code »
hasValue(value) !goog.labs.testing.HasValueMatcher
Gives a matcher that asserts an object contains the given value.
Arguments:
value : *
The value to check for presence in the object.
Returns: !goog.labs.testing.HasValueMatcher  A HasValueMatcher.
code »

Directory testing

File Reference