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.
<static>  
jasmine.details
<static>  
jasmine.Reporters
JasmineReporters.reporter Base object that will get called whenever a Spec, Suite, or Runner is done.
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.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.isSpy(putativeSpy)
Determines whether an object is a spy.
<static>  
jasmine.log(message)
<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.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.

<static> jasmine.details

<static> jasmine.Reporters
JasmineReporters.reporter Base object that will get called whenever a Spec, Suite, or Runner is done. It is up to descendants of this object to do something with the results (see json_reporter.js)
Defined in: Reporters.js.
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.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.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> {Boolean} jasmine.isSpy(putativeSpy)
Determines whether an object is a spy.
Parameters:
{jasmine.Spy|Object} putativeSpy
Returns:
{Boolean}

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

<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.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 Sat Jan 23 2010 13:48:21 GMT-0800 (PST)