Revert "Feature-parity migration to ngx-extended-pdf-viewer"

This reverts commit 81bbc8405a.
This commit is contained in:
shamoon
2023-11-30 14:23:57 -08:00
parent 3a851797e2
commit 0ac6825154
8 changed files with 104 additions and 107 deletions

View File

@@ -653,14 +653,14 @@ describe('DocumentDetailComponent', () => {
it('should support password-protected PDFs with a password field', () => {
initNormally()
component.onError({ name: 'PasswordException' }) // normally dispatched by pdf viewer
expect(component.showPasswordField).toBeTruthy()
expect(component.requiresPassword).toBeTruthy()
fixture.detectChanges()
expect(
fixture.debugElement.query(By.css('input[type=password]'))
).not.toBeUndefined()
component.password = 'foo'
component.pdfPreviewLoaded({ numPages: 1000 } as any)
expect(component.showPasswordField).toBeFalsy()
expect(component.requiresPassword).toBeFalsy()
})
it('should support Enter key in password field', () => {