import 'mocha' ; import * as assert from 'assert' ; import BarcodeFormat from './../../../core/BarcodeFormat' ; import MultiFormatReader from './../../../core/MultiFormatReader' ; import AbstractBlackBoxTestCase from './../common/AbstractBlackBoxTestCase' ; /**
 * These tests are supplied by Tim Gernat and test finder pattern detection at small size and under
 * rotation, which was a weak spot.
 */ export default class QRCodeBlackBox6TestCase extends AbstractBlackBoxTestCase { public constructor ( ) { super ( "src/test/core/resources/blackbox/qrcode-6" , new MultiFormatReader ( ) , BarcodeFormat . QR_CODE ) ; this . addTest ( 15 , 15 , 0.0 ) ; this . addTest ( 14 , 14 , 90.0 ) ; this . addTest ( 12 , 13 , 180.0 ) ; this . addTest ( 14 , 14 , 270.0 ) ; } } describe ( "QRCodeBlackBox6TestCase" , ( ) => { it ( "testBlackBox" , ( done ) => { const test = new QRCodeBlackBox6TestCase ( ) ; test . testBlackBox ( ( ) => { done ( ) ; } ) ; } ) ; } ) ;