stringmatcher.js
No description.

File Location

/goog/labs/testing/stringmatcher.js

Classes

goog.labs.testing.ContainsStringMatcher
The ContainsString matcher.
goog.labs.testing.EndsWithMatcher
The EndsWith matcher.
goog.labs.testing.EqualToIgnoringWhitespaceMatcher
The EqualToIgnoringWhitespace matcher.
goog.labs.testing.RegexMatcher
The MatchesRegex matcher.
goog.labs.testing.StartsWithMatcher
The StartsWith matcher.
goog.labs.testing.StringContainsInOrderMatcher
The StringContainsInOrdermatcher.

Public Protected Private

Global Functions

containsString(value) !goog.labs.testing.ContainsStringMatcher
Matches a string containing the given string.
Arguments:
value : string
The expected value.
Returns: !goog.labs.testing.ContainsStringMatcher  A ContainsStringMatcher.
code »
endsWith(value) !goog.labs.testing.EndsWithMatcher
Matches a string that ends with the given string.
Arguments:
value : string
The expected value.
Returns: !goog.labs.testing.EndsWithMatcher  A EndsWithMatcher.
code »
equalToIgnoringWhitespace(value) !goog.labs.testing.EqualToIgnoringWhitespaceMatcher
Matches a string that equals (ignoring whitespace) the given string.
Arguments:
value : string
The expected value.
Returns: !goog.labs.testing.EqualToIgnoringWhitespaceMatcher  A EqualToIgnoringWhitespaceMatcher.
code »
equals(value) !goog.labs.testing.EqualsMatcher
Matches a string that equals the given string.
Arguments:
value : string
The expected value.
Returns: !goog.labs.testing.EqualsMatcher  A EqualsMatcher.
code »
matchesRegex(regex) !goog.labs.testing.RegexMatcher
Matches a string against a regular expression.
Arguments:
regex : !RegExp
The expected regex.
Returns: !goog.labs.testing.RegexMatcher  A RegexMatcher.
code »
startsWith(value) !goog.labs.testing.StartsWithMatcher
Matches a string that starts with the given string.
Arguments:
value : string
The expected value.
Returns: !goog.labs.testing.StartsWithMatcher  A StartsWithMatcher.
code »
stringContainsInOrder(values) !goog.labs.testing.StringContainsInOrderMatcher
Matches a string that contains the given strings in order.
Arguments:
values : Array.<string>
The expected value.
Returns: !goog.labs.testing.StringContainsInOrderMatcher  A StringContainsInOrderMatcher.
code »

Directory testing

File Reference