GitXplorerGitXplorer
j

cordova-plugin-webview-javascript-compatibility

public
1 stars
0 forks
12 issues

Commits

List of commits on branch master.
Verified
c61a94c7f3652d8d25d28a55379fa48284ecd111

Update README.md

jjanpio committed 6 years ago
Verified
b4c2861b409e1b6c64094916392dfa39f3e9828a

Update README.md

jjanpio committed 6 years ago
Unverified
4ddec7f069a34566e9f2584e4a7a3a70d84a7ee4

refactor: split methods tests into individual its

jjanpio committed 6 years ago
Unverified
7515f116b93da11c889d16a0bcbbddb017fcfed8

feat: tests based on https://codereview.stackexchange.com/questions/147892/small-javascript-library-for-ecmascript-version-detection

jjanpio committed 6 years ago
Unverified
be83000b2467b9767782459ff79d3826b25538f9

fix: correct sauce username in travis.yml

jjanpio committed 6 years ago
Unverified
45a20a3882c7fd72641796cd0f40e44df1492cd5

fix: use newer node on travis

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.)