Class Index | File Index

Classes


Namespace jasmine


Defined in: base.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
Method Summary
Method Attributes Method Name and Description
<static>  
jasmine.any(clazz)
Returns a matchable 'generic' object of the class type.
<static>  
jasmine.createSpy(name)
<static>  
jasmine.createSpyObj(baseName, methodNames)
Creates a more complicated spy: an Object that has every property a function that is a spy.
<static>  
jasmine.Env()
<static>  
jasmine.ExpectationResult(passed, message, details)
<static>  
jasmine.FakeTimer()
<static>  
jasmine.getEnv()
Getter for the Jasmine environment.
<static>  
jasmine.include(url, opt_global)
Adds suite files to an HTML document so that they are executed, thus adding them to the current Jasmine environment.
<static>  
jasmine.isDomNode(obj)
Returns true if the object is a DOM Node.
<static>  
jasmine.log(message)
<static>  
jasmine.Matchers(env, actual, results)
<static>  
jasmine.MessageResult(text)
<static>  
jasmine.pp(value)
Pretty printer for expecations.
<static>  
jasmine.PrettyPrinter()
Base class for pretty printing for expectation results.
<static>  
jasmine.specFilter()
<static>  
<static>  
jasmine.XmlHttpRequest()
Namespace Detail
jasmine
Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
Method Detail
<static> jasmine.any(clazz)
Returns a matchable 'generic' object of the class type. For use in expecations of type when values don't matter.
// don't care about which function is passed in, as long as it's a function
expect(mySpy).wasCalledWith(jasmine.any(Function));
Parameters:
{Class} clazz
Returns:
matchable object of the type clazz

<static> jasmine.createSpy(name)
Parameters:
name

<static> jasmine.createSpyObj(baseName, methodNames)
Creates a more complicated spy: an Object that has every property a function that is a spy. Used for stubbing something large in one call.
Parameters:
{String} baseName
name of spy class
{Array} methodNames
array of names of methods to make spies

<static> jasmine.Env()

Defined in: Env.js.

<static> jasmine.ExpectationResult(passed, message, details)
Parameters:
passed
message
details

<static> jasmine.FakeTimer()

Defined in: mock-timeout.js.

<static> jasmine.getEnv()
Getter for the Jasmine environment. Ensures one gets created

<static> jasmine.include(url, opt_global)
Adds suite files to an HTML document so that they are executed, thus adding them to the current Jasmine environment.
Parameters:
{String} url
path to the file to include
{Boolean} opt_global

<static> {Boolean} jasmine.isDomNode(obj)
Returns true if the object is a DOM Node.
Parameters:
{Object} obj
object to check
Returns:
{Boolean}

<static> jasmine.log(message)
Parameters:
message

<static> jasmine.Matchers(env, actual, results)

Defined in: Matchers.js.
Parameters:
env
actual
results

<static> jasmine.MessageResult(text)
Parameters:
text

<static> {String} jasmine.pp(value)
Pretty printer for expecations. Takes any object and turns it into a human-readable string.
Parameters:
value
{Object} an object to be outputted
Returns:
{String}

<static> jasmine.PrettyPrinter()
Base class for pretty printing for expectation results.
Defined in: PrettyPrinter.js.

<static> jasmine.specFilter()

Defined in: Env.js.

<static> jasmine.StringPrettyPrinter()

Defined in: PrettyPrinter.js.

<static> jasmine.XmlHttpRequest()

Documentation generated by JsDoc Toolkit 2.3.0 on Sun Jun 28 2009 13:34:05 GMT-0700 (PDT)