mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-14 08:57:53 -05:00
PhoneGap BarcodeScanner test applications
This directory contains a set of test applications for the PhoneGap BarcodeScanner plugin. It consists of two pieces:
- desktop app
- phonegap device app
Running the tests
To run the tests,
- build the tests (see below)
- create a new PhoneGap app using the phonegap app. This is just a standard PhoneGap app that uses the barcode scanner plugin.
- fire up the desktop app by opening the desktop app in your desktop browser.
- run the PhoneGap app
- the PhoneGap 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