[ADF-3299] and [ADF-3300] upgrade to Angular and Material 6 (#3579)

* upgrade to HttpClient

* upgrade to Renderer2

* upgrade Document reference

* remove useless test with deprecated ReflectiveInjector

* upgrade to latest typescript

* upgrade libs

* upgrade package scripts

* remove rxjs blacklists and duplicate rules

* add rxjs compat to help with migration

* fix breaking changes

* fix breaking changes in material

* fix breaking changes (material 6)

* upgrade rxjs, ngx-translate and flex layout

* update unit tests

* restore providers

* upgrade deprecated Observable.error

* rebase
fix first configuration problems

* fix style issues commented

* fix core build

* fix lib template errors

* move lib test execution in angular.json

* ignore

* karma conf files

* fix import statement test

* single run option

* update packages reporter

* restore report

* increase timeout

* improve karma conf test configuration

* fix test issues about lint

* fix test analytics

* fix process service test

* content service fix test

* fix logout directive test

* fix core test

* fix build

* update node-sass to latest

* update angular cli dependencies

* improve build script

create directorites and move files only if previous command succeded

* upgrade individual libs to 6.0

* remove old webpack files

* revert sass change

* fix type issues
fix style issues

* fix tslint demo shell issue

* fix peerdependencies

* fix test e2e BC

* package upate

* fix style import issue

* extract-text-webpack-plugin beta

* fix test dist build command

* remove alpha js-api

* fix tslint issue
add banner tslint rule

* upload service fix

* change BC script

* fix test dist script

* increase demo shell timeout test

* verbose copy

* path absolute

* fix script bc

* fix copy part

* fix path warning
fix monaco editor

* remove duplicate header

* remove unused import

* fix align and check ago tests

* add missing import

* fix notification button selector

* [ANGULAR6] fixed core tests

* fix CS test

* fix cs test step 2

* increase travis_wait for dist

* fix attachment PS

* fix checklist test

* use pdf min
This commit is contained in:
Denys Vuika
2018-08-07 11:58:16 +01:00
committed by Eugenio Romano
parent c510ec864d
commit 6b24bfb1d4
371 changed files with 16287 additions and 24504 deletions

View File

@@ -23,11 +23,10 @@ import { AlfrescoApiService, RenditionsService } from '../../services';
import { CoreModule } from '../../core.module';
import { Observable } from 'rxjs/Observable';
import { throwError } from 'rxjs';
import { EventMock } from '../../mock/event.mock';
import { RenderingQueueServices } from '../services/rendering-queue.services';
import { ViewerComponent } from './viewer.component';
import 'rxjs/add/observable/throw';
import { setupTestBed } from '../../testing/setupTestBed';
import { AlfrescoApiServiceMock } from '../../mock/alfresco-api.service.mock';
@@ -143,7 +142,7 @@ describe('ViewerComponent', () => {
{
provide: RenditionsService, useValue: {
getRendition: () => {
return Observable.throw('throwed');
return throwError('throwed');
}
}
},
@@ -233,7 +232,7 @@ describe('ViewerComponent', () => {
beforeEach(() => {
component.showToolbar = true;
component.urlFile = 'base/src/assets/fake-test-file.pdf';
component.urlFile = 'fake-test-file.pdf';
component.mimeType = 'application/pdf';
fixture.detectChanges();
@@ -514,7 +513,7 @@ describe('ViewerComponent', () => {
describe('Extension Type Test', () => {
it('should extension file pdf be loaded', async(() => {
component.urlFile = 'base/src/assets/fake-test-file.pdf';
component.urlFile = 'fake-test-file.pdf';
component.ngOnChanges(null);
fixture.detectChanges();
@@ -702,7 +701,7 @@ describe('ViewerComponent', () => {
});
});
it('should display the media player if the file identified by mimetype is a media when the filename has no extension', async(() => {
xit('should display the media player if the file identified by mimetype is a media when the filename has no extension', async(() => {
component.urlFile = 'content';
component.mimeType = 'video/mp4';
fixture.detectChanges();
@@ -714,7 +713,7 @@ describe('ViewerComponent', () => {
});
}));
it('should node without content show unkonwn', async(() => {
xit('should node without content show unkonwn', async(() => {
const displayName = 'the-name';
const nodeDetails = { name: displayName, id: '12' };
const contentUrl = '/content/url/path';
@@ -754,7 +753,7 @@ describe('ViewerComponent', () => {
describe('display name property override by urlFile', () => {
it('should displayName override the default name if is present and urlFile is set', async(() => {
component.urlFile = 'base/src/assets/fake-test-file.pdf';
component.urlFile = 'fake-test-file.pdf';
component.displayName = 'test name';
fixture.detectChanges();
component.ngOnChanges(null);
@@ -766,7 +765,7 @@ describe('ViewerComponent', () => {
}));
it('should use the urlFile name if displayName is NOT set and urlFile is set', async(() => {
component.urlFile = 'base/src/assets/fake-test-file.pdf';
component.urlFile = 'fake-test-file.pdf';
component.displayName = null;
fixture.detectChanges();
component.ngOnChanges(null);
@@ -839,7 +838,7 @@ describe('ViewerComponent', () => {
component = fixture.componentInstance;
component.showToolbar = true;
component.urlFile = 'base/src/assets/fake-test-file.pdf';
component.urlFile = 'fake-test-file.pdf';
component.mimeType = 'application/pdf';
fixture.detectChanges();
});