15. Testing Phonegap
https://wiki.apache.org/cordova/RunningTests
The device api tests live in a project called mobile-spec.
They run in an Apache Cordova shell:
Create an Apache Cordova project and include the test suite in the www folder. The tests will run
when the application is launched.
There are two parts to the Mobile Spec:
1. a suite of Jasmine tests that assert things about the Cordova JavaScript API.
Load mobile-spec up on your device, hit the "Automatic Tests" button, select which specific
API to test (or select "all" to run them all).
2. a series of "manual" tests.
Linked from the project's root page. Run through each one to make sure baseline
functionality works as expected.