GitXplorerGitXplorer
j

cordova-plugin-webview-javascript-compatibility

public
1 stars
0 forks
12 issues

Commits

List of commits on branch master.
Unverified
2b1cdc04db53ec43ebbc14a18c8920acaadc2a7c

feat: add plugin tests (copied over from device plugin)

jjanpio committed 6 years ago
Unverified
7f24cd1e905f529eee2280d7969b276b6130dc28

style: fix plugin.js for eslint

jjanpio committed 6 years ago
Unverified
2898ce98a5ae499580af56c8c3d849f330bc0518

configure eslint

jjanpio committed 6 years ago
Unverified
385b330c9089b23cc606ac54038a5eb0898b4015

add plugin.xml and www/plugin.js

jjanpio committed 6 years ago
Unverified
ecba5fdec5c62767eba59a54bd3fe59b46733975

create initial package.json and .gitignore

jjanpio committed 6 years ago
Verified
b6d38ce77fe6e5b65a18be2b4f687844991d535b

Rename .tavis.yml to .travis.yml

jjanpio committed 6 years ago

README

The README file for this repository.

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:

all features are supported

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="https://raw.githubusercontent.com/janpio/cordova-plugin-webview-javascript-compatibility/master/cdvtests/index.html" />`
cordova platform add android
cordova run android

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