callback/callback-js — pull request #4 by gtanner (2011-11-30 15:37:27+00:00)
Title: Unit Tests

Currently we are only running tests via test/index.html. This gives a good platform to start adding tests to and to get a feel for what the tests should look like.

The accelerometer module is fully under test and should act as a guideline for expectations on the level of test coverage to aim for.

TODO:

- dynamically add tests to index.html (via a connect server like in Ripple-UI)
- not require in the pkg/phonegap.blackberry.js for testing but wrap modules like how we do in the builder.
- run the tests in node.

HACKS:

- we are dumping a test double PhoneGap object into window to get around the fact that we don't have a bridge module yet.