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
This commit is contained in:
parent
2934b82113
commit
979162d324
|
@ -0,0 +1,26 @@
|
|||
library angular2.core;
|
||||
|
||||
export './src/core/metadata.dart';
|
||||
export './src/core/util.dart';
|
||||
export './src/core/dev_mode.dart';
|
||||
export './src/core/di.dart' hide ForwardRefFn, resolveForwardRef, forwardRef;
|
||||
export './src/facade/facade.dart';
|
||||
export './src/core/application_ref.dart' show platform, createNgZone, PlatformRef, ApplicationRef;
|
||||
export './src/core/application_tokens.dart' show APP_ID,
|
||||
APP_COMPONENT,
|
||||
APP_INITIALIZER,
|
||||
PACKAGE_ROOT_URL,
|
||||
PLATFORM_INITIALIZER;
|
||||
export './src/core/zone.dart';
|
||||
export './src/core/render.dart';
|
||||
export './src/core/linker.dart';
|
||||
export './src/core/debug/debug_element.dart' show DebugElement,
|
||||
Scope,
|
||||
inspectElement,
|
||||
asNativeElements;
|
||||
export './src/core/testability/testability.dart';
|
||||
export './src/core/change_detection.dart';
|
||||
export './src/core/platform_directives_and_pipes.dart';
|
||||
export './src/core/platform_common_providers.dart';
|
||||
export './src/core/application_common_providers.dart';
|
||||
export './src/core/reflection/reflection.dart';
|
|
@ -9,7 +9,7 @@ import {
|
|||
it,
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
import {forwardRef, resolveForwardRef} from 'angular2/core';
|
||||
import {forwardRef, resolveForwardRef} from 'angular2/src/core/di';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,7 +2,11 @@ library angular.symbol_inspector.symbol_inspector;
|
|||
|
||||
import 'dart:mirrors';
|
||||
import './simple_library.dart' as simple_library;
|
||||
import 'package:angular2/angular2.dart' as angular2;
|
||||
import 'package:angular2/common.dart';
|
||||
import 'package:angular2/compiler.dart';
|
||||
import 'package:angular2/core.dart';
|
||||
import 'package:angular2/instrumentation.dart';
|
||||
import 'package:angular2/platform/browser.dart';
|
||||
|
||||
const IGNORE = const {
|
||||
'runtimeType': true,
|
||||
|
@ -15,11 +19,15 @@ const IGNORE = const {
|
|||
|
||||
const LIB_MAP = const {
|
||||
'simple_library': 'angular2.test.symbol_inspector.simple_library',
|
||||
'ng': 'angular2'
|
||||
'ngCommon': 'angular2.common',
|
||||
'ngCompiler': 'angular2.compiler',
|
||||
'ngCore': 'angular2.core',
|
||||
'ngInstrumentation': 'angular2.instrumentation',
|
||||
'ngPlatformBrowser': 'angular2.platform.browser'
|
||||
};
|
||||
|
||||
// Have this list here to trick dart to force import.
|
||||
var libs = [simple_library.A, angular2.Component];
|
||||
var libs = [simple_library.A, Component, Form, TemplateCompiler, NgIf, wtfCreateScope, Title];
|
||||
|
||||
List<String> getSymbolsFromLibrary(String name) {
|
||||
var libraryName = LIB_MAP[name];
|
||||
|
|
|
@ -1,9 +1,19 @@
|
|||
import * as simple_library from './simple_library';
|
||||
import * as ng from 'angular2/angular2';
|
||||
import * as ngCommon from 'angular2/common';
|
||||
import * as ngCompiler from 'angular2/compiler';
|
||||
import * as ngCore from 'angular2/core';
|
||||
import * as ngInstrumentation from 'angular2/instrumentation';
|
||||
import * as ngPlatformBrowser from 'angular2/platform/browser';
|
||||
import * as ngUpgrade from 'angular2/upgrade';
|
||||
|
||||
const LIB_MAP = {
|
||||
'simple_library': simple_library,
|
||||
'ng': ng
|
||||
ngCommon,
|
||||
ngCompiler,
|
||||
ngCore,
|
||||
ngInstrumentation,
|
||||
ngPlatformBrowser,
|
||||
ngUpgrade
|
||||
};
|
||||
|
||||
const IGNORE =
|
||||
|
|
Loading…
Reference in New Issue