Class Index | File Index

Classes


Class jasmine.Matchers


Defined in: Matchers.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jasmine.Matchers(env, actual, spec)
Field Summary
Field Attributes Field Name and Description
 
toBe: compares the actual to the expected using ===
 
Matcher that compares the acutal to undefined.
 
Matcher that boolean nots the actual.
 
Matcher that compares the actual to null.
 
Matcher that boolean not-nots the actual.
 
Matcher that compares the acutal to undefined.
 
Matcher that checks that the expected item is an element in the actual Array.
 
toEqual: compares the actual to the expected using common sense equality.
 
Matcher that compares the actual to the expected using a regular expression.
 
toNotBe: compares the actual to the expected using !==
 
Matcher that checks that the expected item is NOT an element in the actual Array.
 
toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual
 
Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch
 
Matcher that checks that the expected exception was thrown by the actual.
 
Matcher that checks to see if the acutal, a Jasmine spy, was called.
 
Matcher that checks to see if the acutal, a Jasmine spy, was not called.
Method Summary
Method Attributes Method Name and Description
<static>  
jasmine.Matchers.Any(expectedClass)
<static>  
jasmine.Matchers.matcherFn_(matcherName, options)
<static>  
jasmine.Matchers.pp(str)
 
report(result, failing_message, details)
Class Detail
jasmine.Matchers(env, actual, spec)
Parameters:
{jasmine.Env} env
actual
{jasmine.Spec} spec
Field Detail
toBe
toBe: compares the actual to the expected using ===

toBeDefined
Matcher that compares the acutal to undefined.

toBeFalsy
Matcher that boolean nots the actual.

toBeNull
Matcher that compares the actual to null.

toBeTruthy
Matcher that boolean not-nots the actual.

toBeUndefined
Matcher that compares the acutal to undefined.

toContain
Matcher that checks that the expected item is an element in the actual Array.

toEqual
toEqual: compares the actual to the expected using common sense equality. Handles Objects, Arrays, etc.

toMatch
Matcher that compares the actual to the expected using a regular expression. Constructs a RegExp, so takes a pattern or a String.

toNotBe
toNotBe: compares the actual to the expected using !==

toNotContain
Matcher that checks that the expected item is NOT an element in the actual Array.

toNotEqual
toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual

toNotMatch
Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch

toThrow
Matcher that checks that the expected exception was thrown by the actual.

wasCalled
Matcher that checks to see if the acutal, a Jasmine spy, was called.

wasNotCalled
Matcher that checks to see if the acutal, a Jasmine spy, was not called.
Method Detail
<static> jasmine.Matchers.Any(expectedClass)
Parameters:
expectedClass

<static> jasmine.Matchers.matcherFn_(matcherName, options)
Parameters:
matcherName
options

<static> jasmine.Matchers.pp(str)
Parameters:
str

report(result, failing_message, details)
Parameters:
result
failing_message
details

Documentation generated by JsDoc Toolkit 2.1.0 on Tue Nov 10 2009 17:31:30 GMT-0500 (EST)