[ADF-2138] Viewer enhancements (#2897)

* greatly improved rendition management

* code cleanup

* test fixes

* better handling of media types

* docs update

* fix code style

* fix tests after rebase
This commit is contained in:
Denys Vuika
2018-02-01 17:14:32 +00:00
committed by Eugenio Romano
parent 8cd2190f37
commit e5afe96a52
5 changed files with 238 additions and 121 deletions

View File

@@ -622,7 +622,7 @@ describe('ViewerComponent', () => {
it('should display the txt viewer if the file identified by mimetype is a txt when the filename has wrong extension', async(() => {
component.urlFile = 'content.bin';
component.mimeType = 'text/txt';
component.mimeType = 'text/plain';
component.urlFile = require('../assets/fake-test-file.txt');
fixture.detectChanges();
component.ngOnChanges(null);