mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-4009] Fix horizontal scroll issue for pdf-viewer (#7023)
* [AAE-4009] Fix horizontal scroll issue for pdf-viewer * [AAE-4009] Rewrite method with single exit
This commit is contained in:
@@ -625,6 +625,16 @@ describe('Test PdfViewer component', () => {
|
||||
});
|
||||
}, 25000);
|
||||
|
||||
it('should check if page fits to documentContainer', (done) => {
|
||||
spyOn(componentUrlTestComponent.pdfViewerComponent, 'checkPageFitInContainer');
|
||||
componentUrlTestComponent.pdfViewerComponent.scalePage(1);
|
||||
|
||||
fixtureUrlTestComponent.detectChanges();
|
||||
fixtureUrlTestComponent.whenStable().then(() => {
|
||||
expect(componentUrlTestComponent.pdfViewerComponent.checkPageFitInContainer).toHaveBeenCalled();
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('Zoom', () => {
|
||||
|
Reference in New Issue
Block a user