cordova-plugin-webview-javascript-compatibility

0.0.1 • Public • Published

cordova-plugin-webview-javascript-compatibility

A Cordova plugin that can tell you, what JavaScript features the used webview supports on different devices, operating systems and operating system versions via its automated tests.

How it works

The automated tests contain a list of JavaScript features that are only available in some versions of JavaScript. During the test runs it tries to eval these code snippets and fails tests for code that can not successfully be executed.

Usage

Automated

This repository is set up with similar CI configuration to the official Cordova core plugins, and uses Travis CI and cordova-paramedic so for each commit it automatically runs the plugin tests via SauceLabs on the configured devices.

The result is visible as the individual build jobs: Travis Build Status (Click the badge to go to the most recent build on Travis CI)

This build is expected to fail, as it tests on some older devices that do not support all the tested functionality.

Manually

You can of course also install this plugin manually in a Cordova app and run that on the device of your choice:

cordova create pluginTestApp
cd pluginTestApp
cordova plugin add cordova-plugin-webview-javascript-compatibility
cordova plugin add plugins/cordova-plugin-webview-javascript-compatibility/tests
cordova plugin add cordova-plugin-test-framework
sed -i -e 's/index.html/cdvtests\/index.html/g' config.xml # change `config.xml` to contain `<content src="cdvtests/index.html" />` 
cordova platform add android
cordova run android

(You can of course also run this on other platform as ios or browser.)

Package Sidebar

Install

npm i cordova-plugin-webview-javascript-compatibility

Weekly Downloads

4

Version

0.0.1

License

Apache-2.0

Unpacked Size

13 kB

Total Files

9

Last publish

Collaborators

  • janpio