commit | e0a72bdc2c0167af85053e3b9d92376b78f0fe8e | [log] [tgz] |
---|---|---|
author | lmnbeyond <lmmbeyond@gmail.com> | Wed Aug 14 19:54:21 2013 +0800 |
committer | Max Woghiren <max.woghiren@gmail.com> | Tue Aug 27 11:39:02 2013 -0400 |
tree | 76970f787a59f10db49eb53bee2204d735f98183 | |
parent | e12609d87241d57113ac27399a2061798a8ecd88 [diff] |
[CB-4568] Disable pop-up messages when running test "XHR to within-package 11kb asset." When fetching a file from the local file system, the result status of XMLHttpRequest should be compared to 0 for success instead of 200. This is because the file and ftp schemes do not use HTTP result codes. FYI:https://developer.mozilla.org/es/docs/XMLHttpRequest/Usar_XMLHttpReq uest
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 (see the code in cordova-incl.js for clarification).
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!