fix(core): Keep core exports seperate from core/testing exports.

This commit is contained in:
Vikram Subramanian 2016-05-31 15:15:38 -07:00
parent 7e352a27f7
commit f4f6b8721a
4 changed files with 5 additions and 15 deletions

View File

@ -42,8 +42,6 @@ import {
EMPTY_STATE as EMPTY_STATE_,
FILL_STYLE_FLAG as FILL_STYLE_FLAG_
} from './src/animation/animation_constants';
import {MockAnimationPlayer as MockAnimationPlayer_} from './testing/animation/mock_animation_player';
import {MockAnimationDriver as MockAnimationDriver_} from './testing/animation/mock_animation_driver';
export declare namespace __core_private_types__ {
export var isDefaultChangeDetectionStrategy: typeof constants.isDefaultChangeDetectionStrategy;
@ -130,10 +128,6 @@ export declare namespace __core_private_types__ {
export var ANY_STATE: typeof ANY_STATE_;
export var EMPTY_STATE: typeof EMPTY_STATE_;
export var FILL_STYLE_FLAG: typeof FILL_STYLE_FLAG_;
export type MockAnimationPlayer = MockAnimationPlayer_;
export var MockAnimationPlayer: typeof MockAnimationPlayer_;
export type MockAnimationDriver = MockAnimationDriver_;
export var MockAnimationDriver: typeof MockAnimationDriver_;
}
export var __core_private__ = {
@ -195,8 +189,6 @@ export var __core_private__ = {
AnimationKeyframe: AnimationKeyframe_,
AnimationStyleUtil: AnimationStyleUtil_,
AnimationStyles: AnimationStyles_,
MockAnimationPlayer: MockAnimationPlayer_,
MockAnimationDriver: MockAnimationDriver_,
ANY_STATE: ANY_STATE_,
EMPTY_STATE: EMPTY_STATE_,
FILL_STYLE_FLAG: FILL_STYLE_FLAG_

View File

@ -8,6 +8,9 @@ export {expect} from './testing';
export {inject} from './test_injector';
export {AsyncTestCompleter} from './async_test_completer';
export {MockAnimationPlayer} from './animation/mock_animation_player';
export {MockAnimationDriver} from './animation/mock_animation_driver';
export var proxy: ClassDecorator = (t) => t;
var _global = <any>(typeof window === 'undefined' ? global : window);

View File

@ -32,8 +32,3 @@ export type AnimationStyleUtil = t.AnimationStyleUtil;
export var AnimationStyleUtil: typeof t.AnimationStyleUtil = r.AnimationStyleUtil;
export type AnimationStyles = t.AnimationStyles;
export var AnimationStyles: typeof t.AnimationStyles = r.AnimationStyles;
export type MockAnimationPlayer = t.MockAnimationPlayer;
export var MockAnimationPlayer: typeof t.MockAnimationPlayer = r.MockAnimationPlayer;
export type MockAnimationDriver = t.MockAnimationDriver;
export var MockAnimationDriver: typeof t.MockAnimationDriver = r.MockAnimationDriver;

View File

@ -9,13 +9,13 @@ import {
inject,
it,
xit,
beforeEachProviders
beforeEachProviders,
MockAnimationPlayer
} from '@angular/core/testing/testing_internal';
import {isPresent} from "../../src/facade/lang";
import {WebAnimationsPlayer} from '../../src/dom/web_animations_player';
import {DomAnimatePlayer} from '../../src/dom/dom_animate_player';
import {MockAnimationPlayer} from '../../core_private';
export class MockDomAnimatePlayer implements DomAnimatePlayer {
public captures: {[key: string]: any[]} = {};