Files
RandyMcMillan 976fbc0823 No Change
No Change
2012-08-25 07:38:56 -04:00
..
2012-08-25 07:38:56 -04: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/images files to phonegap-app/images
  • create a .json file with the image scan results, copying it into desktop-app and phonegap-app