Namespace TH
Test helper main namespace
Defined in: screw.mock.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Test helper main namespace
|
Method Attributes | Method Name and Description |
---|---|
<static> |
TH.click(el)
simulate a browser click on an element passed to the function
|
<static> |
TH.insertDomMock(mock, opts)
used to insert a dom mock for the test being run
assumes a with an id of "dom_test" and directory
of dom_mocks at the same level as suite.html called "dom_mocks"
|
<static> |
TH.pause(millis)
pause the operation of a page for X miliseconds
|
Method Detail
<static>
TH.click(el)
simulate a browser click on an element passed to the function
- Parameters:
- {DomElement} el
- The element to receive the click
<static>
TH.insertDomMock(mock, opts)
used to insert a dom mock for the test being run
assumes a
with an id of "dom_test" and directory
of dom_mocks at the same level as suite.html called "dom_mocks"
TH.insertDomMock("some_mock"); // will insert dom_mocks/some_mock.html into
- Parameters:
- {String} mock
- the name of the mock to put into the div (you can skip the html)
- {Object} opts
- takes an optional insert or a specific element (instead of #dom_test)
- Throws:
- mock must be specified if no mock is specified
<static> TH.pause(millis)pause the operation of a page for X miliseconds
- Parameters:
- {Number} millis
- the number of miliseconds to pause
Documentation generated by JsDoc Toolkit 2.0.1 on Tue Jul 22 2008 22:24:33 GMT-0400 (EDT)