mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
committed by
Eugenio Romano
parent
53d96679ea
commit
e39a2b149b
@@ -163,7 +163,7 @@ describe('Test PdfViewer component', () => {
|
||||
});
|
||||
|
||||
describe('Required values', () => {
|
||||
it('should thrown an error If urlfile is not present', () => {
|
||||
it('should thrown an error If urlFile is not present', () => {
|
||||
change = new SimpleChange(null, null, true);
|
||||
|
||||
expect(() => {
|
||||
@@ -223,6 +223,7 @@ describe('Test PdfViewer component', () => {
|
||||
|
||||
fixtureUrlTestComponent.detectChanges();
|
||||
fixtureUrlTestComponent.whenStable().then(() => {
|
||||
/* cspell:disable-next-line */
|
||||
expect(elementUrlTestComponent.querySelector('.viewer-pagenumber-input')).toBeDefined();
|
||||
expect(elementUrlTestComponent.querySelector('.viewer-total-pages')).toBeDefined();
|
||||
|
||||
@@ -292,6 +293,7 @@ describe('Test PdfViewer component', () => {
|
||||
fixtureBlobTestComponent.detectChanges();
|
||||
|
||||
fixtureBlobTestComponent.whenStable().then(() => {
|
||||
/* cspell:disable-next-line */
|
||||
expect(elementBlobTestComponent.querySelector('.viewer-pagenumber-input')).toBeDefined();
|
||||
expect(elementBlobTestComponent.querySelector('.viewer-total-pages')).toBeDefined();
|
||||
|
||||
@@ -486,7 +488,7 @@ describe('Test PdfViewer component', () => {
|
||||
|
||||
describe('Viewer events', () => {
|
||||
|
||||
it('should react on the emit of pagechange event', (done) => {
|
||||
it('should react on the emit of pageChange event', (done) => {
|
||||
fixtureUrlTestComponent.detectChanges();
|
||||
fixtureUrlTestComponent.whenStable().then(() => {
|
||||
const args = {
|
||||
@@ -496,6 +498,7 @@ describe('Test PdfViewer component', () => {
|
||||
}
|
||||
};
|
||||
|
||||
/* cspell:disable-next-line */
|
||||
componentUrlTestComponent.pdfViewerComponent.pdfViewer.eventBus.dispatch('pagechange', args);
|
||||
fixtureUrlTestComponent.detectChanges();
|
||||
|
||||
@@ -507,7 +510,7 @@ describe('Test PdfViewer component', () => {
|
||||
});
|
||||
}, 5000);
|
||||
|
||||
it('should react on the emit of pagesloaded event', (done) => {
|
||||
it('should react on the emit of pagesLoaded event', (done) => {
|
||||
fixtureUrlTestComponent.detectChanges();
|
||||
fixtureUrlTestComponent.whenStable().then(() => {
|
||||
expect(componentUrlTestComponent.pdfViewerComponent.isPanelDisabled).toBeFalsy();
|
||||
@@ -519,6 +522,7 @@ describe('Test PdfViewer component', () => {
|
||||
}
|
||||
};
|
||||
|
||||
/* cspell:disable-next-line */
|
||||
componentUrlTestComponent.pdfViewerComponent.pdfViewer.eventBus.dispatch('pagesloaded', args);
|
||||
fixtureUrlTestComponent.detectChanges();
|
||||
|
||||
|
Reference in New Issue
Block a user