mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 16:38:08 -05:00
Cordova BarcodeScanner test applications
This directory contains a set of test applications for the Cordova BarcodeScanner plugin. It consists of two pieces:
- desktop app
- Cordova device app
Running the tests
To run the tests,
- build the tests (see below)
- create a new Cordova app using the Cordova app. This is just a standard Cordova app that uses the barcode scanner plugin.
- fire up the desktop app by opening the desktop app in your desktop browser.
- run the Cordova app
- the Cordova app will prompt you to scan an image currently displayed in the desktop app. Presumably, it will scan, and check the scan output. Once scanned, or if you cancel, it will move to the next image to test. The final tally is displayed when all the images have been scanned.
Building the tests
Run make build in this directory. It will:
- copy the
desktop-app/imagesfiles tophonegap-app/images - create a
.jsonfile with the image scan results, copying it intodesktop-appandphonegap-app