| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src=../../resources/testharness.js></script> | 2 <script src=../../resources/testharness.js></script> |
| 3 <script src=../../resources/testharnessreport.js></script> | 3 <script src=../../resources/testharnessreport.js></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 // This test verifies that DetectedFace can be created | 6 // This test verifies that DetectedFace can be created |
| 7 test(function() { | 7 test(function() { |
| 8 var detectedFace = new DetectedFace(); | 8 var detectedFace = new DetectedFace(); |
| 9 assert_true(detectedFace instanceof DetectedFace); | 9 assert_true(detectedFace instanceof DetectedFace); |
| 10 }, 'DetectedFace instance can be created.'); | 10 }, 'DetectedFace instance can be created.'); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 var detectedBarcode = new DetectedBarcode(); | 33 var detectedBarcode = new DetectedBarcode(); |
| 34 assert_true(detectedBarcode instanceof DetectedBarcode); | 34 assert_true(detectedBarcode instanceof DetectedBarcode); |
| 35 }, 'DetectedBarcode instance can be created.'); | 35 }, 'DetectedBarcode instance can be created.'); |
| 36 | 36 |
| 37 // This test verifies that BarcodeDetector can be created | 37 // This test verifies that BarcodeDetector can be created |
| 38 test(function() { | 38 test(function() { |
| 39 var barcodeDetector = new BarcodeDetector(); | 39 var barcodeDetector = new BarcodeDetector(); |
| 40 assert_true(barcodeDetector instanceof BarcodeDetector); | 40 assert_true(barcodeDetector instanceof BarcodeDetector); |
| 41 }, 'BarcodeDetector instance can be created.'); | 41 }, 'BarcodeDetector instance can be created.'); |
| 42 | 42 |
| 43 // This test verifies that DetectedText can be created |
| 44 test(function() { |
| 45 var detectedText = new DetectedText(); |
| 46 assert_true(detectedText instanceof DetectedText); |
| 47 }, 'DetectedText instance can be created.'); |
| 48 |
| 49 // This test verifies that TextDetector can be created |
| 50 test(function() { |
| 51 var textDetector = new TextDetector(); |
| 52 assert_true(textDetector instanceof TextDetector); |
| 53 }, 'TextDetector instance can be created.'); |
| 54 |
| 43 </script> | 55 </script> |
| OLD | NEW |