[ADF-3501] PDF view fixes (#3735)

* PDF view fixes

* updated package.lock

* fix failing tests

* restore test

* use fake web worker for tests

* test fixes

* test fixes

* disable i18n test

* test fixes
This commit is contained in:
Denys Vuika
2018-09-04 14:55:44 +01:00
committed by Eugenio Romano
parent 567d172176
commit c0acc53eb9
21 changed files with 101 additions and 94 deletions

View File

@@ -19,7 +19,7 @@ import { Component, Inject, OnInit } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { FormControl, Validators } from '@angular/forms';
declare let PDFJS: any;
declare const pdfjsLib: any;
@Component({
selector: 'adf-pdf-viewer-password-dialog',
@@ -39,7 +39,7 @@ export class PdfPasswordDialogComponent implements OnInit {
}
isError(): boolean {
return this.data.reason === PDFJS.PasswordResponses.INCORRECT_PASSWORD;
return this.data.reason === pdfjsLib.PasswordResponses.INCORRECT_PASSWORD;
}
isValid(): boolean {