mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-2137] Document Thumbnail Pane (#2943)
* pdf thumbnails * update TestBed declarations * add PdfViewerService to TestBed * content projection * update TestBed declaration * update TestBed * update TestBed * docs * pristine * added doc component image * use global PDFJS instance fro tests
This commit is contained in:
committed by
Eugenio Romano
parent
5955cc567d
commit
28ca71a5f9
@@ -26,6 +26,8 @@ import { ToolbarModule } from '../../toolbar/toolbar.module';
|
||||
import { EventMock } from '../../mock/event.mock';
|
||||
import { RenderingQueueServices } from '../services/rendering-queue.services';
|
||||
import { PdfViewerComponent } from './pdfViewer.component';
|
||||
import { PdfThumbListComponent } from './pdfViewer-thumbnails.component';
|
||||
import { PdfThumbComponent } from './pdfViewer-thumb.component';
|
||||
|
||||
declare var require: any;
|
||||
|
||||
@@ -41,7 +43,11 @@ describe('Test PdfViewer component', () => {
|
||||
ToolbarModule,
|
||||
MaterialModule
|
||||
],
|
||||
declarations: [PdfViewerComponent],
|
||||
declarations: [
|
||||
PdfViewerComponent,
|
||||
PdfThumbListComponent,
|
||||
PdfThumbComponent
|
||||
],
|
||||
providers: [
|
||||
SettingsService,
|
||||
AuthenticationService,
|
||||
@@ -97,7 +103,7 @@ describe('Test PdfViewer component', () => {
|
||||
|
||||
it('should Canvas be present', () => {
|
||||
expect(element.querySelector('.pdfViewer')).not.toBeNull();
|
||||
expect(element.querySelector('.viewer-pdf-container')).not.toBeNull();
|
||||
expect(element.querySelector('.viewer-pdf-viewer')).not.toBeNull();
|
||||
});
|
||||
|
||||
it('should Loader be present', () => {
|
||||
@@ -145,7 +151,7 @@ describe('Test PdfViewer component', () => {
|
||||
|
||||
it('should Canvas be present', () => {
|
||||
expect(element.querySelector('.pdfViewer')).not.toBeNull();
|
||||
expect(element.querySelector('.viewer-pdf-container')).not.toBeNull();
|
||||
expect(element.querySelector('.viewer-pdf-viewer')).not.toBeNull();
|
||||
});
|
||||
|
||||
it('should Loader be present', () => {
|
||||
|
Reference in New Issue
Block a user