Source Mapping is not working on test debugging (#1931)

* coverage single components run fix

* remove spec.ts from coverage

* make the coverage and the istanbul-instrumenter-loader works only over the console test because a problem on the remapping for the browser test

* move tslint on the main folder of any component

* remove build:w from readme

* stop build tslint error also in spec files

* clear karma file from unnecessary files

* add set -f for build all script in order to accept *

* fix lint problem and failing tests

* fix failing test search component

* add loader test for viewer

* fix tslint error userinfo

* --max_old_space_size=2048 remove

* fix tslint error uploader unused EventEmitter

* remove spec|index|.*mock|.*model|.*event from coverage
This commit is contained in:
Eugenio Romano
2017-06-04 23:36:46 +01:00
committed by Eugenio Romano
parent ed30b74ce6
commit 282e64f93d
220 changed files with 1799 additions and 2905 deletions

View File

@@ -79,6 +79,7 @@ export class ViewerComponent {
if (!this.urlFile && !this.blobFile && !this.fileNodeId) {
throw new Error('Attribute urlFile or fileNodeId or blobFile is required');
}
return new Promise((resolve, reject) => {
if (this.blobFile) {
this.mimeType = this.blobFile.type;
@@ -201,7 +202,7 @@ export class ViewerComponent {
if (this.mimeType && this.mimeType.indexOf('/')) {
mimeExtension = this.mimeType.substr(this.mimeType.indexOf('/') + 1, this.mimeType.length);
}
return this.mimeType && (this.mimeType.indexOf('video/') || this.mimeType.indexOf('audio/')) === 0 && this.isMediaExtension(mimeExtension);
return (this.mimeType && (this.mimeType.indexOf('video/') === 0 || this.mimeType.indexOf('audio/') === 0)) && this.isMediaExtension(mimeExtension);
}
/**