cordova-android/test/assets/www
2012-03-23 14:56:55 -07:00
..
accelerometer Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
audio Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
autotest Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
battery Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
camera Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
compass Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
contacts Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
events Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
location Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
misc Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
notification Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
sql Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
storage Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
whitelist Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
cordova-1.4.1.js Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
index.html Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
LICENSE Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
main.js Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
master.css Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
phonegap-1.4.0.js Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
phonegap.js Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00
README.md Adding the tests from the GitHub Prototype 2012-03-23 14:56:55 -07:00

Mobile Spec Suite

These specs are designed to run inside the mobile device that implements it - it will fail in the DESKTOP browser.

These set of tests is designed to be used with Cordova. You should initialize a fresh Cordova repository for a target platform and then toss these files into the www folder, replacing the contents.

Make sure you include Cordova-*.js in the www folder. You also need to edit Cordova.js to reference the Cordova-*.js file you are testing. For example, to test with Cordova-0.9.6.1, the Cordova.js file would be:

document.write('<script type="text/javascript" charset="utf-8" src="../Cordova-0.9.6.1.js"></script>');
document.write('<script type="text/javascript" charset="utf-8" src="Cordova-0.9.6.1.js"></script>');

This is done so that you don't have to modify every HTML file when you want to test a new version of Cordova.

The goal is to test mobile device functionality inside a mobile browser. Where possible, the Cordova API lines up with HTML 5 spec. Maybe down the road we could use this spec for parts of HTML 5, too :)