refactor(animations): make modules and bundles into plural Animations (#14695)

This commit is contained in:
Matias Niemelä 2017-02-24 09:36:58 -08:00 committed by Igor Minar
parent 32c2fd5c9f
commit 93ddd38107
7 changed files with 14 additions and 14 deletions

View File

@ -8,7 +8,7 @@
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 {AnimationDriver, BrowserAnimationModule, ɵAnimationEngine} from '@angular/platform-browser/animations';
import {AnimationDriver, BrowserAnimationsModule, ɵ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';
@ -44,7 +44,7 @@ function declareTests({useJit}: {useJit: boolean}) {
resetLog();
TestBed.configureTestingModule({
providers: [{provide: AnimationDriver, useClass: MockAnimationDriver}],
imports: [BrowserAnimationModule]
imports: [BrowserAnimationsModule]
});
});

View File

@ -11,7 +11,7 @@
* @description
* Entry point for all animation APIs of the animation browser package.
*/
export {BrowserAnimationModule} from './browser_animation_module';
export {NoopBrowserAnimationModule} from './noop_browser_animation_module';
export {BrowserAnimationsModule} from './browser_animations_module';
export {NoopAnimationsModule} from './noop_animations_module';
export {AnimationDriver} from './render/animation_driver';
export * from './private_export';

View File

@ -54,5 +54,5 @@ export function instantiateRendererFactory(
}
]
})
export class BrowserAnimationModule {
export class BrowserAnimationsModule {
}

View File

@ -30,5 +30,5 @@ export function instantiateRendererFactory(
}
]
})
export class NoopBrowserAnimationModule {
export class NoopAnimationsModule {
}

View File

@ -10,13 +10,13 @@ import {USE_VIEW_ENGINE} from '@angular/compiler/src/config';
import {Component} from '@angular/core';
import {TestBed} from '@angular/core/testing';
import {ɵAnimationEngine} from '@angular/platform-browser/animations';
import {NoopBrowserAnimationModule} from '../src/noop_browser_animation_module';
import {NoopAnimationsModule} from '../src/noop_animations_module';
import {NoopAnimationEngine} from '../src/render/noop_animation_engine';
export function main() {
describe('NoopBrowserAnimationModule', () => {
describe('NoopAnimationsModule', () => {
beforeEach(() => {
TestBed.configureTestingModule({imports: [NoopBrowserAnimationModule]});
TestBed.configureTestingModule({imports: [NoopAnimationsModule]});
TestBed.configureCompiler({
useJit: true,
providers: [{

View File

@ -9,9 +9,9 @@ import {AnimationTriggerMetadata, animate, state, style, transition, trigger} fr
import {USE_VIEW_ENGINE} from '@angular/compiler/src/config';
import {AnimationPlayer, Component, Injectable, RendererFactoryV2, RendererTypeV2, ViewChild} from '@angular/core';
import {TestBed} from '@angular/core/testing';
import {BrowserAnimationModule, ɵAnimationEngine, ɵAnimationRendererFactory} from '@angular/platform-browser/animations';
import {BrowserAnimationsModule, ɵAnimationEngine, ɵAnimationRendererFactory} from '@angular/platform-browser/animations';
import {InjectableAnimationEngine} from '../../animations/src/browser_animation_module';
import {InjectableAnimationEngine} from '../../animations/src/browser_animations_module';
import {el} from '../../testing/browser_util';
export function main() {
@ -22,7 +22,7 @@ export function main() {
TestBed.configureTestingModule({
providers: [{provide: ɵAnimationEngine, useClass: MockAnimationEngine}],
imports: [BrowserAnimationModule]
imports: [BrowserAnimationsModule]
});
});

View File

@ -7,9 +7,9 @@ export declare abstract class AnimationDriver {
}
/** @experimental */
export declare class BrowserAnimationModule {
export declare class BrowserAnimationsModule {
}
/** @experimental */
export declare class NoopBrowserAnimationModule {
export declare class NoopAnimationsModule {
}