added missing test page, only run windows phone tests on windows phone
2 files changed
tree: 34fb3cb70d2e01e49a71f27f4736603d5698e01b
  1. accelerometer/
  2. audio/
  3. autotest/
  4. battery/
  5. benchmarks/
  6. camera/
  7. compass/
  8. contacts/
  9. cordova-plugin-echo/
  10. cordova-plugin-whitelist/
  11. dependencies-plugin/
  12. events/
  13. inappbrowser/
  14. lazyloadjs/
  15. location/
  16. misc/
  17. network/
  18. notification/
  19. splashscreen/
  20. sql/
  21. storage/
  22. tools/
  23. AndroidBridgePerformance_300.pdf
  24. beep.wav
  25. config.xml
  26. cordova-incl.js
  27. createmobilespec.sh
  28. index.html
  29. LICENSE
  30. main.js
  31. master.css
  32. README.md
  33. VERSION
README.md

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 (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 :)

Requirements

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!

  • audio.ibeat.org
  • cordova-filetransfer.jitsu.com
  • whatheaders.com
  • apache.org (with all subdomains)
  • www.google.com
  • httpssss://example.com (bad protocol necessary)

Performance

For reference purposes, the document AndroidBridgePerformance_300.pdf in this directory outlines the Android bridge performance using mobile-spec and the manual bridge test. The tests were performed with Cordova 3.0.0.