Skip to content

Commit 979162d

Browse files
jeffbcrosstbosch
authored andcommitted
fix(public_spec): check exports of barrels instead of angular2/angular2
This changes the public api spec to check each public barrel individually to make sure its API has not changed. The previous API spec has been preserved but split into respective barrels. The compiler barrel has been added to the spec, along with all of its public exports. Previously, angular2/angular2 was only exporting a handful of symbols from compiler, so there are now many more symbols being tested in the spec for compiler than previously. Part of #5710 Closes #5841 Supercedes #5821
1 parent 2934b82 commit 979162d

File tree

5 files changed

+995
-725
lines changed

5 files changed

+995
-725
lines changed

modules/angular2/core.dart

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
library angular2.core;
2+
3+
export './src/core/metadata.dart';
4+
export './src/core/util.dart';
5+
export './src/core/dev_mode.dart';
6+
export './src/core/di.dart' hide ForwardRefFn, resolveForwardRef, forwardRef;
7+
export './src/facade/facade.dart';
8+
export './src/core/application_ref.dart' show platform, createNgZone, PlatformRef, ApplicationRef;
9+
export './src/core/application_tokens.dart' show APP_ID,
10+
APP_COMPONENT,
11+
APP_INITIALIZER,
12+
PACKAGE_ROOT_URL,
13+
PLATFORM_INITIALIZER;
14+
export './src/core/zone.dart';
15+
export './src/core/render.dart';
16+
export './src/core/linker.dart';
17+
export './src/core/debug/debug_element.dart' show DebugElement,
18+
Scope,
19+
inspectElement,
20+
asNativeElements;
21+
export './src/core/testability/testability.dart';
22+
export './src/core/change_detection.dart';
23+
export './src/core/platform_directives_and_pipes.dart';
24+
export './src/core/platform_common_providers.dart';
25+
export './src/core/application_common_providers.dart';
26+
export './src/core/reflection/reflection.dart';

modules/angular2/test/core/di/forward_ref_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
it,
1010
xit,
1111
} from 'angular2/testing_internal';
12-
import {forwardRef, resolveForwardRef} from 'angular2/core';
12+
import {forwardRef, resolveForwardRef} from 'angular2/src/core/di';
1313
import {Type} from 'angular2/src/facade/lang';
1414

1515
export function main() {

0 commit comments

Comments
 (0)