commit | 87d07d62e2419690ba4a495892fca241f0710b72 | [log] [tgz] |
---|---|---|
author | Max Woghiren <max.woghiren@gmail.com> | Tue Feb 19 13:12:40 2013 -0500 |
committer | Becky Gibson <becka11y@apache.org> | Thu Feb 21 13:01:38 2013 -0500 |
tree | 47445245168db463eb914dec40c653d69920b06a | |
parent | 842e6031ca79fad64c8812e0d1b510b7933b7c27 [diff] |
[CB-2411] Added a popover repositioning test. Also added minor camera test documentation. The "Select Image Using File URI" test will reposition the popover towards the top left corner when the orientation changes.
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 version of cordova-*.js file you are testing. For example, to test with cordova-0.9.6.1, edit the VERSION variable in the cordova.js file as follows:
var VERSION='0.9.6.1';
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 :)
Various parts of this test suite communicate with external servers. Therefore, when you wrap up the test suite inside a Cordova application, make sure you add the following entries to the whitelist!