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.
Field Summary
Field Attributes Field Name and Description
<static>  
Default interval for event loop yields.
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.ExpectationResult(params)
<static>  
jasmine.FakeTimer()
<static>  
jasmine.getEnv()
Getter for the Jasmine environment.
<static>  
jasmine.getGlobal()
<static>  
jasmine.isDomNode(obj)
Returns true if the object is a DOM Node.
<static>  
jasmine.isSpy(putativeSpy)
Determines whether an object is a spy.
<static>  
jasmine.log()
All parameters are pretty-printed and concatenated together, then written to the current spec's output.
<static>  
jasmine.MessageResult(values)
<static>  
jasmine.pp(value)
Pretty printer for expecations.
<static>  
jasmine.PrettyPrinter()
Base class for pretty printing for expectation results.
<static>  
jasmine.Queue(env)
<static>  
<static>  
jasmine.TrivialReporter(doc)
<static>  
jasmine.WaitsBlock(env, timeout, spec)
<static>  
jasmine.WaitsForBlock(env, timeout, latchFunction, message, spec)
Namespace Detail
jasmine
Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
Field Detail
<static> jasmine.DEFAULT_UPDATE_INTERVAL
Default interval for event loop yields. Small values here may result in slow test running. Zero means no updates until all tests have completed.
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).toHaveBeenCalledWith(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.ExpectationResult(params)
Parameters:
params

<static> jasmine.FakeTimer()

Defined in: mock-timeout.js.

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

<static> jasmine.getGlobal()

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

<static> {Boolean} jasmine.isSpy(putativeSpy)
Determines whether an object is a spy.
Parameters:
{jasmine.Spy|Object} putativeSpy
Returns:
{Boolean}

<static> jasmine.log()
All parameters are pretty-printed and concatenated together, then written to the current spec's output. Be careful not to leave calls to jasmine.log in production code.

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

<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.Queue(env)

Defined in: Queue.js.
Parameters:
env

<static> jasmine.StringPrettyPrinter()

Defined in: PrettyPrinter.js.

<static> jasmine.TrivialReporter(doc)

Defined in: TrivialReporter.js.
Parameters:
doc

<static> jasmine.WaitsBlock(env, timeout, spec)

Defined in: WaitsBlock.js.
Parameters:
env
timeout
spec

<static> jasmine.WaitsForBlock(env, timeout, latchFunction, message, spec)

Defined in: WaitsForBlock.js.
Parameters:
env
timeout
latchFunction
message
spec

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:12 GMT-0700 (PDT)