@ -1,6 +1,6 @@
/ * g l o b a l s P D F J S , e x p e c t , i t , d e s c r i b e , P r o m i s e , c o m b i n e U r l ,
/ * g l o b a l s P D F J S , e x p e c t , i t , d e s c r i b e , P r o m i s e , c o m b i n e U r l , b e f o r e A l l ,
InvalidPDFException , MissingPDFException , StreamType , FontType ,
InvalidPDFException , MissingPDFException , StreamType , FontType ,
PDFDocumentProxy , PasswordException , PasswordResponses ,
PDFDocumentProxy , PasswordException , PasswordResponses , afterAll ,
PDFPageProxy , createPromiseCapability , beforeEach , afterEach * /
PDFPageProxy , createPromiseCapability , beforeEach , afterEach * /
'use strict' ;
'use strict' ;
@ -310,7 +310,7 @@ describe('api', function() {
var loadingTask ;
var loadingTask ;
var doc ;
var doc ;
beforeEach ( function ( done ) {
beforeAll ( function ( done ) {
loadingTask = PDFJS . getDocument ( basicApiUrl ) ;
loadingTask = PDFJS . getDocument ( basicApiUrl ) ;
loadingTask . promise . then ( function ( data ) {
loadingTask . promise . then ( function ( data ) {
doc = data ;
doc = data ;
@ -318,7 +318,7 @@ describe('api', function() {
} ) ;
} ) ;
} ) ;
} ) ;
afterEach ( function ( ) {
afterAll ( function ( ) {
loadingTask . destroy ( ) ;
loadingTask . destroy ( ) ;
} ) ;
} ) ;
@ -680,7 +680,7 @@ describe('api', function() {
var loadingTask ;
var loadingTask ;
var pdfDocument , page ;
var pdfDocument , page ;
beforeEach ( function ( done ) {
beforeAll ( function ( done ) {
loadingTask = PDFJS . getDocument ( basicApiUrl ) ;
loadingTask = PDFJS . getDocument ( basicApiUrl ) ;
loadingTask . promise . then ( function ( doc ) {
loadingTask . promise . then ( function ( doc ) {
pdfDocument = doc ;
pdfDocument = doc ;
@ -693,7 +693,7 @@ describe('api', function() {
} ) ;
} ) ;
} ) ;
} ) ;
afterEach ( function ( ) {
afterAll ( function ( ) {
loadingTask . destroy ( ) ;
loadingTask . destroy ( ) ;
} ) ;
} ) ;