CB-8295 Enable CSP for mobile spec (close #115)

- Uses a javascript include file to document.write a CSP <meta> tag on page
- Minor changes to test pages where need to comply with CSP (e.g. remove inline event handler)
- Changed to Bridge auto tests to remove nested specs, which was causing an error on Android
- Some test pages excluded from CSP (e.g. those with heavy use of inline javascript)
21 files changed
tree: 901b0fec783c2a5a282539ff6569a04f12058118
  1. cordova-plugin-echo/
  2. cordova-plugin-whitelist/
  3. createmobilespec/
  4. dependencies-plugin/
  5. tools/
  6. www/
  7. .gitignore
  8. AndroidBridgePerformance_300.pdf
  9. config.xml
  10. CONTRIBUTING.md
  11. LICENSE
  12. NOTICE
  13. README.md
  14. VERSION
README.md

Mobile Spec Suite

This project is a set of automated & manual tests that test Cordova core functionality.

To set up the project, use cordova-mobile-spec/createmobilespec/createmobilespec.js. See the README.md in that directory.

Requirements

Repositories required:

  • cordova-cli (Install pre-requisites by running npm install inside of cordova-cli).
  • cordova-js
  • All plugins.
  • Platforms to test (e.g., cordova-android, cordova-ios, cordova-blackberry, cordova-wp8, or cordova-windows).
  • cordova-mobile-spec (Install pre-requisites by running npm install inside of createmobilespec).
  • All repositories must be checked out as peers to each other.

Performance

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