Menu
©2015
Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2015-1-16 18:32

Class puredom.TestSuite

Class Summary
Constructor Attributes Constructor Name and Description
 
Manages views, providing methods for loading, templating, caching and swapping.
Field Summary
Field Attributes Field Name and Description
<static>  
puredom.TestSuite.test

Method Summary

Method Attributes Method Name and Description
 
add (name, test)
Add a test to the suite.
 
get (name)
Retrieve the test that matches name.
 
getList ()
Get a list of test names available in the suite.
 
run (name, callback, messageHandler)
Run the test that matches name.
Methods borrowed from class puredom.EventEmitter:
emit
on
once
removeListener

Class Detail

puredom.TestSuite(options)
Manages views, providing methods for loading, templating, caching and swapping.
Parameters:
{Object} options
Hashmap of options to be given to the instance.

Field Detail

<static> puredom.TestSuite.test

Method Detail

  • add(name, test)
    Add a test to the suite.
    Parameters:
    {String} name
    A human-readable name for the test
    {Object} test
    The test definition
  • get(name)
    Retrieve the test that matches name.
    Parameters:
    {String} name
    The name of a registered test to find
  • getList()
    Get a list of test names available in the suite.
  • run(name, callback, messageHandler)
    Run the test that matches name.
    Parameters:
    {String} name
    The name of a registered test to run
    {Any}callback
    {Any}messageHandler