...refer to online static resources.
Use .onDeviceReady(...); instead.
...use jQuery Mobile.
...especially together with
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:
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.