[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:
Cilibiu Bogdan
2018-02-20 12:29:40 +02:00
committed by Eugenio Romano
parent 5955cc567d
commit 28ca71a5f9
22 changed files with 631 additions and 18 deletions

View File

@@ -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', () => {