fix(core): Keep core exports seperate from core/testing exports.
This commit is contained in:
parent
7e352a27f7
commit
f4f6b8721a
|
@ -42,8 +42,6 @@ import {
|
||||||
EMPTY_STATE as EMPTY_STATE_,
|
EMPTY_STATE as EMPTY_STATE_,
|
||||||
FILL_STYLE_FLAG as FILL_STYLE_FLAG_
|
FILL_STYLE_FLAG as FILL_STYLE_FLAG_
|
||||||
} from './src/animation/animation_constants';
|
} 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 declare namespace __core_private_types__ {
|
||||||
export var isDefaultChangeDetectionStrategy: typeof constants.isDefaultChangeDetectionStrategy;
|
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 ANY_STATE: typeof ANY_STATE_;
|
||||||
export var EMPTY_STATE: typeof EMPTY_STATE_;
|
export var EMPTY_STATE: typeof EMPTY_STATE_;
|
||||||
export var FILL_STYLE_FLAG: typeof FILL_STYLE_FLAG_;
|
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__ = {
|
export var __core_private__ = {
|
||||||
|
@ -195,8 +189,6 @@ export var __core_private__ = {
|
||||||
AnimationKeyframe: AnimationKeyframe_,
|
AnimationKeyframe: AnimationKeyframe_,
|
||||||
AnimationStyleUtil: AnimationStyleUtil_,
|
AnimationStyleUtil: AnimationStyleUtil_,
|
||||||
AnimationStyles: AnimationStyles_,
|
AnimationStyles: AnimationStyles_,
|
||||||
MockAnimationPlayer: MockAnimationPlayer_,
|
|
||||||
MockAnimationDriver: MockAnimationDriver_,
|
|
||||||
ANY_STATE: ANY_STATE_,
|
ANY_STATE: ANY_STATE_,
|
||||||
EMPTY_STATE: EMPTY_STATE_,
|
EMPTY_STATE: EMPTY_STATE_,
|
||||||
FILL_STYLE_FLAG: FILL_STYLE_FLAG_
|
FILL_STYLE_FLAG: FILL_STYLE_FLAG_
|
||||||
|
|
|
@ -8,6 +8,9 @@ export {expect} from './testing';
|
||||||
export {inject} from './test_injector';
|
export {inject} from './test_injector';
|
||||||
export {AsyncTestCompleter} from './async_test_completer';
|
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;
|
export var proxy: ClassDecorator = (t) => t;
|
||||||
|
|
||||||
var _global = <any>(typeof window === 'undefined' ? global : window);
|
var _global = <any>(typeof window === 'undefined' ? global : window);
|
||||||
|
|
|
@ -32,8 +32,3 @@ export type AnimationStyleUtil = t.AnimationStyleUtil;
|
||||||
export var AnimationStyleUtil: typeof t.AnimationStyleUtil = r.AnimationStyleUtil;
|
export var AnimationStyleUtil: typeof t.AnimationStyleUtil = r.AnimationStyleUtil;
|
||||||
export type AnimationStyles = t.AnimationStyles;
|
export type AnimationStyles = t.AnimationStyles;
|
||||||
export var AnimationStyles: typeof t.AnimationStyles = r.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;
|
|
||||||
|
|
|
@ -9,13 +9,13 @@ import {
|
||||||
inject,
|
inject,
|
||||||
it,
|
it,
|
||||||
xit,
|
xit,
|
||||||
beforeEachProviders
|
beforeEachProviders,
|
||||||
|
MockAnimationPlayer
|
||||||
} from '@angular/core/testing/testing_internal';
|
} from '@angular/core/testing/testing_internal';
|
||||||
|
|
||||||
import {isPresent} from "../../src/facade/lang";
|
import {isPresent} from "../../src/facade/lang";
|
||||||
import {WebAnimationsPlayer} from '../../src/dom/web_animations_player';
|
import {WebAnimationsPlayer} from '../../src/dom/web_animations_player';
|
||||||
import {DomAnimatePlayer} from '../../src/dom/dom_animate_player';
|
import {DomAnimatePlayer} from '../../src/dom/dom_animate_player';
|
||||||
import {MockAnimationPlayer} from '../../core_private';
|
|
||||||
|
|
||||||
export class MockDomAnimatePlayer implements DomAnimatePlayer {
|
export class MockDomAnimatePlayer implements DomAnimatePlayer {
|
||||||
public captures: {[key: string]: any[]} = {};
|
public captures: {[key: string]: any[]} = {};
|
||||||
|
|
Loading…
Reference in New Issue