middleman/middleman-cli/lib/middleman-templates/mobile/source/tools/wspl
2014-05-26 18:44:11 -07:00
..
simplenotes more templates back into cli 2014-05-26 18:44:11 -07:00
databasefactory.js more templates back into cli 2014-05-26 18:44:11 -07:00
dbworker.js more templates back into cli 2014-05-26 18:44:11 -07:00
dbworker_test.html more templates back into cli 2014-05-26 18:44:11 -07:00
dbworkerstarter.js more templates back into cli 2014-05-26 18:44:11 -07:00
dbwrapper_gears.js more templates back into cli 2014-05-26 18:44:11 -07:00
dbwrapper_gears_test.html more templates back into cli 2014-05-26 18:44:11 -07:00
dbwrapper_html5.js more templates back into cli 2014-05-26 18:44:11 -07:00
dbwrapper_html5_test.html more templates back into cli 2014-05-26 18:44:11 -07:00
dbwrapperapi.js more templates back into cli 2014-05-26 18:44:11 -07:00
dbwrapperapi_test.html more templates back into cli 2014-05-26 18:44:11 -07:00
gears_resultset.js more templates back into cli 2014-05-26 18:44:11 -07:00
gears_resultset_test.html more templates back into cli 2014-05-26 18:44:11 -07:00
gears_transaction.js more templates back into cli 2014-05-26 18:44:11 -07:00
gears_transaction_test.html more templates back into cli 2014-05-26 18:44:11 -07:00
gearsutils.js more templates back into cli 2014-05-26 18:44:11 -07:00
gearsutils_test.html more templates back into cli 2014-05-26 18:44:11 -07:00
global_functions.js more templates back into cli 2014-05-26 18:44:11 -07:00
README more templates back into cli 2014-05-26 18:44:11 -07:00

How to run the tests:

* The tests themselves assume that jsunit is in a sibling directory
to the one containing the distrbution. If this is not so, it is sufficient
to edit the paths in the test files. (On UNIX, symlinks may be your 
friend if this is not convenient.)

* jsmock.js (available from http://jsmock.sourceforge.net/) should
be placed in the distribution directory.

* Specify the test files via a URL parameter. (This might be an issue
with jsunit: http://digitalmihailo.blogspot.com/2008/06/make-jsunit-work-in-firefox-30.html)

For example, if the root of your downloaded of the distribution is /mypath:

file:///mypath/jsunit/testRunner.html?testpage=mypath/webstorageportabilitylayer/dbwrapper_gears_test.html
file:///mypath/jsunit/testRunner.html?testpage=mypath/webstorageportabilitylayer/dbwrapper_html5_test.html
file:///mypath/jsunit/testRunner.html?testpage=mypath/webstorageportabilitylayer/dbwrapperapi_test.html

NB: the leading / in a UNIX path is not included in mypath so setting
it via pwd will not deliver the desired effect.