Class puredom.TestSuite
- Defined in: TestSuite.js
- Extends puredom.EventEmitter
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
puredom.TestSuite(options)
Manages views, providing methods for loading, templating, caching and swapping.
|
| 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