mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1623] routing integration for Viewer (#2404)
* routed viewer (demo app) * toolbar support * app menu component for demo shell * navigate back button * fix unit tests * improve viewer type detection and rendering * download button * automatic pdf rendition, spinners, ui tweaks * border for pdf pages * scroll top support * docs update * info drawer placeholder
This commit is contained in:
committed by
Maurizio Vitale
parent
55a999b492
commit
93a87af4a5
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Location } from '@angular/common';
|
||||
import { SpyLocation } from '@angular/common/testing';
|
||||
import { ElementRef } from '@angular/core';
|
||||
import { Injector } from '@angular/core';
|
||||
import { async, getTestBed, TestBed } from '@angular/core/testing';
|
||||
@@ -28,7 +30,7 @@ export class MockElementRef extends ElementRef {
|
||||
}
|
||||
}
|
||||
|
||||
describe('ExtensionViewerComponent', () => {
|
||||
describe('ExtensionViewerDirective', () => {
|
||||
let injector: Injector;
|
||||
let extensionViewerDirective: ExtensionViewerDirective;
|
||||
let viewerComponent: ViewerComponent;
|
||||
@@ -37,6 +39,7 @@ describe('ExtensionViewerComponent', () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CoreModule],
|
||||
providers: [
|
||||
{ provide: Location, useClass: SpyLocation },
|
||||
ExtensionViewerDirective,
|
||||
{provide: ElementRef, useClass: MockElementRef},
|
||||
ViewerComponent
|
||||
|
Reference in New Issue
Block a user