feat(animations): noop animation module and zone fixes (#14661)

This commit is contained in:
Matias Niemelä
2017-02-23 08:51:00 -08:00
committed by Igor Minar
parent ab3527c99b
commit e8d2743cfb
16 changed files with 608 additions and 104 deletions

View File

@ -8,11 +8,9 @@
import {AUTO_STYLE, AnimationEvent, animate, keyframes, state, style, transition, trigger} from '@angular/animations';
import {USE_VIEW_ENGINE} from '@angular/compiler/src/config';
import {Component, HostBinding, HostListener, ViewChild} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {AnimationDriver, BrowserAnimationModule, ɵAnimationEngine} from '@angular/platform-browser/animations';
import {MockAnimationDriver, MockAnimationPlayer} from '@angular/platform-browser/animations/testing';
import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter';
import {TestBed} from '../../testing';
export function main() {
@ -46,7 +44,7 @@ function declareTests({useJit}: {useJit: boolean}) {
resetLog();
TestBed.configureTestingModule({
providers: [{provide: AnimationDriver, useClass: MockAnimationDriver}],
imports: [BrowserModule, BrowserAnimationModule]
imports: [BrowserAnimationModule]
});
});