[ADF-613] Add plain text viewer (#1873)

* add plain text viewer

* different devices optimizations

* returns types
This commit is contained in:
Eugenio Romano
2017-05-30 13:13:07 +01:00
committed by Eugenio Romano
parent a2ef939860
commit 4b5eb4bb29
13 changed files with 273 additions and 83 deletions

View File

@@ -57,7 +57,7 @@ describe('Test ng2-alfresco-viewer Not Supported Format View component', () => {
describe('View', () => {
it('Download button should be present', () => {
it('should be present Download button', () => {
expect(element.querySelector('#viewer-download-button')).not.toBeNull();
});
@@ -69,7 +69,7 @@ describe('Test ng2-alfresco-viewer Not Supported Format View component', () => {
});
describe('User Interaction', () => {
it('Click on Download button should call download method', () => {
it('should call download method if Click on Download button', () => {
spyOn(window, 'open');
let downloadButton: any = element.querySelector('#viewer-download-button');