Skip to content

Commit

Permalink
refactor(animations): make modules and bundles into plural Animations (
Browse files Browse the repository at this point in the history
  • Loading branch information
matsko authored and IgorMinar committed Feb 24, 2017
1 parent 32c2fd5 commit 93ddd38
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -44,7 +44,7 @@ function declareTests({useJit}: {useJit: boolean}) {
resetLog();
TestBed.configureTestingModule({
providers: [{provide: AnimationDriver, useClass: MockAnimationDriver}],
imports: [BrowserAnimationModule]
imports: [BrowserAnimationsModule]
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export function instantiateRendererFactory(
}
]
})
export class BrowserAnimationModule {
export class BrowserAnimationsModule {
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ export function instantiateRendererFactory(
}
]
})
export class NoopBrowserAnimationModule {
export class NoopAnimationsModule {
}
Original file line number Diff line number Diff line change
Expand Up @@ -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: [{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -22,7 +22,7 @@ export function main() {

TestBed.configureTestingModule({
providers: [{provide: ɵAnimationEngine, useClass: MockAnimationEngine}],
imports: [BrowserAnimationModule]
imports: [BrowserAnimationsModule]
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}

0 comments on commit 93ddd38

Please sign in to comment.