style(global): group multiple imports from same module
Closes #7802 Closes #8209
This commit is contained in:
parent
140a878a3d
commit
7d1b6af073
|
@ -1,9 +1,8 @@
|
||||||
import {forwardRef, Provider, Attribute, Directive} from 'angular2/core';
|
import {forwardRef, Provider, Attribute, Directive} from 'angular2/core';
|
||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR, NumberWrapper} from 'angular2/src/facade/lang';
|
||||||
import {Validators, NG_VALIDATORS} from '../validators';
|
import {Validators, NG_VALIDATORS} from '../validators';
|
||||||
import {AbstractControl} from '../model';
|
import {AbstractControl} from '../model';
|
||||||
import * as modelModule from '../model';
|
import * as modelModule from '../model';
|
||||||
import {NumberWrapper} from "angular2/src/facade/lang";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ import {
|
||||||
HostMetadata,
|
HostMetadata,
|
||||||
SkipSelfMetadata
|
SkipSelfMetadata
|
||||||
} from 'angular2/src/core/di/metadata';
|
} from 'angular2/src/core/di/metadata';
|
||||||
import {AttributeMetadata} from 'angular2/src/core/metadata/di';
|
|
||||||
import {ReflectorReader} from 'angular2/src/core/reflection/reflector_reader';
|
import {ReflectorReader} from 'angular2/src/core/reflection/reflector_reader';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -208,7 +207,7 @@ export class RuntimeMetadataResolver {
|
||||||
}
|
}
|
||||||
return deps.map((dep) => {
|
return deps.map((dep) => {
|
||||||
var compileToken;
|
var compileToken;
|
||||||
var p = <AttributeMetadata>dep.properties.find(p => p instanceof AttributeMetadata);
|
var p = <dimd.AttributeMetadata>dep.properties.find(p => p instanceof dimd.AttributeMetadata);
|
||||||
var isAttribute = false;
|
var isAttribute = false;
|
||||||
if (isPresent(p)) {
|
if (isPresent(p)) {
|
||||||
compileToken = this.getTokenMetadata(p.attributeName);
|
compileToken = this.getTokenMetadata(p.attributeName);
|
||||||
|
|
|
@ -4,9 +4,15 @@ import {
|
||||||
SetWrapper,
|
SetWrapper,
|
||||||
MapWrapper
|
MapWrapper
|
||||||
} from 'angular2/src/facade/collection';
|
} from 'angular2/src/facade/collection';
|
||||||
import {RegExpWrapper, isPresent, StringWrapper, isBlank, isArray} from 'angular2/src/facade/lang';
|
import {
|
||||||
|
CONST_EXPR,
|
||||||
|
RegExpWrapper,
|
||||||
|
isPresent,
|
||||||
|
StringWrapper,
|
||||||
|
isBlank,
|
||||||
|
isArray
|
||||||
|
} from 'angular2/src/facade/lang';
|
||||||
import {Injectable, Inject, OpaqueToken, Optional} from 'angular2/core';
|
import {Injectable, Inject, OpaqueToken, Optional} from 'angular2/core';
|
||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
|
||||||
import {BaseException} from 'angular2/src/facade/exceptions';
|
import {BaseException} from 'angular2/src/facade/exceptions';
|
||||||
import {
|
import {
|
||||||
AST,
|
AST,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {Injectable, Inject} from 'angular2/src/core/di';
|
import {Provider, Injectable, Inject} from 'angular2/src/core/di';
|
||||||
import {
|
import {
|
||||||
StringWrapper,
|
StringWrapper,
|
||||||
isPresent,
|
isPresent,
|
||||||
|
@ -9,7 +9,6 @@ import {
|
||||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||||
import {PACKAGE_ROOT_URL} from 'angular2/src/core/application_tokens';
|
import {PACKAGE_ROOT_URL} from 'angular2/src/core/application_tokens';
|
||||||
import {Provider} from 'angular2/src/core/di';
|
|
||||||
|
|
||||||
const _ASSET_SCHEME = 'asset:';
|
const _ASSET_SCHEME = 'asset:';
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,8 @@ import {
|
||||||
defaultKeyValueDiffers
|
defaultKeyValueDiffers
|
||||||
} from './change_detection/change_detection';
|
} from './change_detection/change_detection';
|
||||||
import {ViewUtils} from "./linker/view_utils";
|
import {ViewUtils} from "./linker/view_utils";
|
||||||
import {ComponentResolver} from './linker/component_resolver';
|
import {ComponentResolver, ReflectorComponentResolver} from './linker/component_resolver';
|
||||||
import {ReflectorComponentResolver} from "./linker/component_resolver";
|
import {DynamicComponentLoader, DynamicComponentLoader_} from './linker/dynamic_component_loader';
|
||||||
import {DynamicComponentLoader} from './linker/dynamic_component_loader';
|
|
||||||
import {DynamicComponentLoader_} from "./linker/dynamic_component_loader";
|
|
||||||
|
|
||||||
var __unused: Type; // avoid unused import when Type union types are erased
|
var __unused: Type; // avoid unused import when Type union types are erased
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {PromiseWrapper, PromiseCompleter, ObservableWrapper} from 'angular2/src/
|
||||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||||
import {TestabilityRegistry, Testability} from 'angular2/src/core/testability/testability';
|
import {TestabilityRegistry, Testability} from 'angular2/src/core/testability/testability';
|
||||||
import {ComponentResolver} from 'angular2/src/core/linker/component_resolver';
|
import {ComponentResolver} from 'angular2/src/core/linker/component_resolver';
|
||||||
import {ComponentRef} from 'angular2/src/core/linker/component_factory';
|
import {ComponentRef, ComponentFactory} from 'angular2/src/core/linker/component_factory';
|
||||||
import {
|
import {
|
||||||
BaseException,
|
BaseException,
|
||||||
WrappedException,
|
WrappedException,
|
||||||
|
@ -26,7 +26,6 @@ import {
|
||||||
import {Console} from 'angular2/src/core/console';
|
import {Console} from 'angular2/src/core/console';
|
||||||
import {wtfLeave, wtfCreateScope, WtfScopeFn} from './profile/profile';
|
import {wtfLeave, wtfCreateScope, WtfScopeFn} from './profile/profile';
|
||||||
import {ChangeDetectorRef} from 'angular2/src/core/change_detection/change_detector_ref';
|
import {ChangeDetectorRef} from 'angular2/src/core/change_detection/change_detector_ref';
|
||||||
import {ComponentFactory} from 'angular2/src/core/linker/component_factory';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an Angular zone.
|
* Create an Angular zone.
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import {CONST} from 'angular2/src/facade/lang';
|
|
||||||
import {BaseException} from 'angular2/src/facade/exceptions';
|
import {BaseException} from 'angular2/src/facade/exceptions';
|
||||||
import {isListLikeIterable, iterateListLike, ListWrapper} from 'angular2/src/facade/collection';
|
import {isListLikeIterable, iterateListLike, ListWrapper} from 'angular2/src/facade/collection';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
CONST,
|
||||||
isBlank,
|
isBlank,
|
||||||
isPresent,
|
isPresent,
|
||||||
stringify,
|
stringify,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import {isPresent, Type} from 'angular2/src/facade/lang';
|
import {isPresent, Type} from 'angular2/src/facade/lang';
|
||||||
import {Predicate} from 'angular2/src/facade/collection';
|
import {Predicate, ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||||
import {Injector} from 'angular2/src/core/di';
|
import {Injector} from 'angular2/src/core/di';
|
||||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
|
||||||
import {RenderDebugInfo} from 'angular2/src/core/render/api';
|
import {RenderDebugInfo} from 'angular2/src/core/render/api';
|
||||||
|
|
||||||
export class EventListener { constructor(public name: string, public callback: Function){}; }
|
export class EventListener { constructor(public name: string, public callback: Function){}; }
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||||
import {Injectable} from 'angular2/src/core/di';
|
import {Injectable, Injector} from 'angular2/src/core/di';
|
||||||
import {Type} from 'angular2/src/facade/lang';
|
import {Type} from 'angular2/src/facade/lang';
|
||||||
import {ComponentRef, ComponentFactory} from 'angular2/src/core/linker/component_factory';
|
import {ComponentRef, ComponentFactory} from 'angular2/src/core/linker/component_factory';
|
||||||
import {Injector} from 'angular2/src/core/di';
|
|
||||||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,11 +18,9 @@ import {Testability} from 'angular2/src/core/testability/testability';
|
||||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||||
import {DomEventsPlugin} from 'angular2/src/platform/dom/events/dom_events';
|
import {DomEventsPlugin} from 'angular2/src/platform/dom/events/dom_events';
|
||||||
import {KeyEventsPlugin} from 'angular2/src/platform/dom/events/key_events';
|
import {KeyEventsPlugin} from 'angular2/src/platform/dom/events/key_events';
|
||||||
import {HammerGesturesPlugin} from 'angular2/src/platform/dom/events/hammer_gestures';
|
|
||||||
import {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
import {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
||||||
import {DomRootRenderer, DomRootRenderer_} from 'angular2/src/platform/dom/dom_renderer';
|
import {DomRootRenderer, DomRootRenderer_} from 'angular2/src/platform/dom/dom_renderer';
|
||||||
import {DomSharedStylesHost} from 'angular2/src/platform/dom/shared_styles_host';
|
import {DomSharedStylesHost, SharedStylesHost} from 'angular2/src/platform/dom/shared_styles_host';
|
||||||
import {SharedStylesHost} from "angular2/src/platform/dom/shared_styles_host";
|
|
||||||
import {BrowserDetails} from "angular2/src/animate/browser_details";
|
import {BrowserDetails} from "angular2/src/animate/browser_details";
|
||||||
import {AnimationBuilder} from "angular2/src/animate/animation_builder";
|
import {AnimationBuilder} from "angular2/src/animate/animation_builder";
|
||||||
import {BrowserDomAdapter} from './browser/browser_adapter';
|
import {BrowserDomAdapter} from './browser/browser_adapter';
|
||||||
|
@ -32,7 +30,8 @@ import {wtfInit} from 'angular2/src/core/profile/wtf_init';
|
||||||
import {EventManager, EVENT_MANAGER_PLUGINS} from "angular2/src/platform/dom/events/event_manager";
|
import {EventManager, EVENT_MANAGER_PLUGINS} from "angular2/src/platform/dom/events/event_manager";
|
||||||
import {
|
import {
|
||||||
HAMMER_GESTURE_CONFIG,
|
HAMMER_GESTURE_CONFIG,
|
||||||
HammerGestureConfig
|
HammerGestureConfig,
|
||||||
|
HammerGesturesPlugin
|
||||||
} from 'angular2/src/platform/dom/events/hammer_gestures';
|
} from 'angular2/src/platform/dom/events/hammer_gestures';
|
||||||
import {ELEMENT_PROBE_PROVIDERS} from 'angular2/platform/common_dom';
|
import {ELEMENT_PROBE_PROVIDERS} from 'angular2/platform/common_dom';
|
||||||
export {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
export {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
||||||
|
|
|
@ -20,11 +20,9 @@ import {provide, Provider, Injector, OpaqueToken} from 'angular2/src/core/di';
|
||||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||||
import {DomEventsPlugin} from 'angular2/src/platform/dom/events/dom_events';
|
import {DomEventsPlugin} from 'angular2/src/platform/dom/events/dom_events';
|
||||||
import {KeyEventsPlugin} from 'angular2/src/platform/dom/events/key_events';
|
import {KeyEventsPlugin} from 'angular2/src/platform/dom/events/key_events';
|
||||||
import {HammerGesturesPlugin} from 'angular2/src/platform/dom/events/hammer_gestures';
|
|
||||||
import {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
import {DOCUMENT} from 'angular2/src/platform/dom/dom_tokens';
|
||||||
import {DomRootRenderer, DomRootRenderer_} from 'angular2/src/platform/dom/dom_renderer';
|
import {DomRootRenderer, DomRootRenderer_} from 'angular2/src/platform/dom/dom_renderer';
|
||||||
import {DomSharedStylesHost} from 'angular2/src/platform/dom/shared_styles_host';
|
import {DomSharedStylesHost, SharedStylesHost} from 'angular2/src/platform/dom/shared_styles_host';
|
||||||
import {SharedStylesHost} from "angular2/src/platform/dom/shared_styles_host";
|
|
||||||
import {BrowserDetails} from 'angular2/src/animate/browser_details';
|
import {BrowserDetails} from 'angular2/src/animate/browser_details';
|
||||||
import {AnimationBuilder} from 'angular2/src/animate/animation_builder';
|
import {AnimationBuilder} from 'angular2/src/animate/animation_builder';
|
||||||
import {XHR} from 'angular2/compiler';
|
import {XHR} from 'angular2/compiler';
|
||||||
|
@ -49,7 +47,11 @@ import {
|
||||||
import {Serializer} from 'angular2/src/web_workers/shared/serializer';
|
import {Serializer} from 'angular2/src/web_workers/shared/serializer';
|
||||||
import {ON_WEB_WORKER} from 'angular2/src/web_workers/shared/api';
|
import {ON_WEB_WORKER} from 'angular2/src/web_workers/shared/api';
|
||||||
import {RenderStore} from 'angular2/src/web_workers/shared/render_store';
|
import {RenderStore} from 'angular2/src/web_workers/shared/render_store';
|
||||||
import {HAMMER_GESTURE_CONFIG, HammerGestureConfig} from './dom/events/hammer_gestures';
|
import {
|
||||||
|
HAMMER_GESTURE_CONFIG,
|
||||||
|
HammerGestureConfig,
|
||||||
|
HammerGesturesPlugin
|
||||||
|
} from 'angular2/src/platform/dom/events/hammer_gestures';
|
||||||
|
|
||||||
export const WORKER_SCRIPT: OpaqueToken = CONST_EXPR(new OpaqueToken("WebWorkerScript"));
|
export const WORKER_SCRIPT: OpaqueToken = CONST_EXPR(new OpaqueToken("WebWorkerScript"));
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,7 @@ import {Map} from 'angular2/src/facade/collection';
|
||||||
import {RouteHandler} from './route_handlers/route_handler';
|
import {RouteHandler} from './route_handlers/route_handler';
|
||||||
import {Url, convertUrlParamsToArray} from '../url_parser';
|
import {Url, convertUrlParamsToArray} from '../url_parser';
|
||||||
import {ComponentInstruction} from '../instruction';
|
import {ComponentInstruction} from '../instruction';
|
||||||
import {RoutePath} from './route_paths/route_path';
|
import {RoutePath, GeneratedUrl} from './route_paths/route_path';
|
||||||
import {GeneratedUrl} from './route_paths/route_path';
|
|
||||||
|
|
||||||
|
|
||||||
// RouteMatch objects hold information about a match between a rule and a URL
|
// RouteMatch objects hold information about a match between a rule and a URL
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
import {MessageBus} from "angular2/src/web_workers/shared/message_bus";
|
import {MessageBus} from "angular2/src/web_workers/shared/message_bus";
|
||||||
import {print, isPresent, DateWrapper, stringify} from "angular2/src/facade/lang";
|
import {
|
||||||
|
print,
|
||||||
|
isPresent,
|
||||||
|
DateWrapper,
|
||||||
|
stringify,
|
||||||
|
Type,
|
||||||
|
StringWrapper
|
||||||
|
} from "angular2/src/facade/lang";
|
||||||
import {
|
import {
|
||||||
PromiseCompleter,
|
PromiseCompleter,
|
||||||
PromiseWrapper,
|
PromiseWrapper,
|
||||||
|
@ -9,7 +16,6 @@ import {
|
||||||
import {StringMapWrapper, MapWrapper} from "angular2/src/facade/collection";
|
import {StringMapWrapper, MapWrapper} from "angular2/src/facade/collection";
|
||||||
import {Serializer} from "angular2/src/web_workers/shared/serializer";
|
import {Serializer} from "angular2/src/web_workers/shared/serializer";
|
||||||
import {Injectable} from "angular2/src/core/di";
|
import {Injectable} from "angular2/src/core/di";
|
||||||
import {Type, StringWrapper} from "angular2/src/facade/lang";
|
|
||||||
export {Type} from "angular2/src/facade/lang";
|
export {Type} from "angular2/src/facade/lang";
|
||||||
|
|
||||||
export abstract class ClientMessageBrokerFactory {
|
export abstract class ClientMessageBrokerFactory {
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
import {Component, Directive, Output, EventEmitter} from 'angular2/core';
|
import {
|
||||||
|
Component,
|
||||||
|
Directive,
|
||||||
|
Output,
|
||||||
|
EventEmitter,
|
||||||
|
Provider,
|
||||||
|
forwardRef,
|
||||||
|
Input
|
||||||
|
} from 'angular2/core';
|
||||||
import {
|
import {
|
||||||
ComponentFixture,
|
ComponentFixture,
|
||||||
afterEach,
|
afterEach,
|
||||||
|
@ -35,7 +43,6 @@ import {
|
||||||
Validator,
|
Validator,
|
||||||
RadioButtonState
|
RadioButtonState
|
||||||
} from 'angular2/common';
|
} from 'angular2/common';
|
||||||
import {Provider, forwardRef, Input} from 'angular2/core';
|
|
||||||
import {By} from 'angular2/platform/browser';
|
import {By} from 'angular2/platform/browser';
|
||||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||||
import {ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
import {ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
||||||
|
|
|
@ -13,7 +13,7 @@ import {
|
||||||
beforeEachProviders
|
beforeEachProviders
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {stringify} from 'angular2/src/facade/lang';
|
import {IS_DART, stringify} from 'angular2/src/facade/lang';
|
||||||
import {RuntimeMetadataResolver} from 'angular2/src/compiler/runtime_metadata';
|
import {RuntimeMetadataResolver} from 'angular2/src/compiler/runtime_metadata';
|
||||||
import {LifecycleHooks, LIFECYCLE_HOOKS_VALUES} from 'angular2/src/core/metadata/lifecycle_hooks';
|
import {LifecycleHooks, LIFECYCLE_HOOKS_VALUES} from 'angular2/src/core/metadata/lifecycle_hooks';
|
||||||
import {
|
import {
|
||||||
|
@ -35,7 +35,6 @@ import {
|
||||||
|
|
||||||
import {TEST_PROVIDERS} from './test_bindings';
|
import {TEST_PROVIDERS} from './test_bindings';
|
||||||
import {MODULE_SUFFIX} from 'angular2/src/compiler/util';
|
import {MODULE_SUFFIX} from 'angular2/src/compiler/util';
|
||||||
import {IS_DART} from 'angular2/src/facade/lang';
|
|
||||||
import {PLATFORM_DIRECTIVES} from 'angular2/src/core/platform_directives_and_pipes';
|
import {PLATFORM_DIRECTIVES} from 'angular2/src/core/platform_directives_and_pipes';
|
||||||
import {MalformedStylesComponent} from './runtime_metadata_fixture';
|
import {MalformedStylesComponent} from './runtime_metadata_fixture';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/testing_internal';
|
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/testing_internal';
|
||||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||||
import {SelectorMatcher} from 'angular2/src/compiler/selector';
|
import {SelectorMatcher, CssSelector} from 'angular2/src/compiler/selector';
|
||||||
import {CssSelector} from 'angular2/src/compiler/selector';
|
|
||||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
|
|
|
@ -16,7 +16,9 @@ import {
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
IS_DART,
|
||||||
CONST_EXPR,
|
CONST_EXPR,
|
||||||
|
Type,
|
||||||
isPresent,
|
isPresent,
|
||||||
isBlank,
|
isBlank,
|
||||||
isNumber,
|
isNumber,
|
||||||
|
@ -37,7 +39,6 @@ import {
|
||||||
|
|
||||||
import {OnDestroy} from 'angular2/src/core/metadata/lifecycle_hooks';
|
import {OnDestroy} from 'angular2/src/core/metadata/lifecycle_hooks';
|
||||||
|
|
||||||
import {IS_DART, Type} from 'angular2/src/facade/lang';
|
|
||||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,8 @@ import {
|
||||||
stringify,
|
stringify,
|
||||||
isBlank,
|
isBlank,
|
||||||
CONST,
|
CONST,
|
||||||
CONST_EXPR
|
CONST_EXPR,
|
||||||
|
IS_DART
|
||||||
} from 'angular2/src/facade/lang';
|
} from 'angular2/src/facade/lang';
|
||||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||||
import {
|
import {
|
||||||
|
@ -58,9 +59,7 @@ import {
|
||||||
ReflectiveInjector
|
ReflectiveInjector
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
|
|
||||||
import {NgIf, NgFor} from 'angular2/common';
|
import {NgIf, NgFor, AsyncPipe} from 'angular2/common';
|
||||||
|
|
||||||
import {AsyncPipe} from 'angular2/common';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
PipeTransform,
|
PipeTransform,
|
||||||
|
@ -93,7 +92,6 @@ import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||||
import {TemplateRef} from 'angular2/src/core/linker/template_ref';
|
import {TemplateRef} from 'angular2/src/core/linker/template_ref';
|
||||||
|
|
||||||
import {Renderer} from 'angular2/src/core/render';
|
import {Renderer} from 'angular2/src/core/render';
|
||||||
import {IS_DART} from 'angular2/src/facade/lang';
|
|
||||||
|
|
||||||
const ANCHOR_ELEMENT = CONST_EXPR(new OpaqueToken('AnchorElement'));
|
const ANCHOR_ELEMENT = CONST_EXPR(new OpaqueToken('AnchorElement'));
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
xit,
|
xit,
|
||||||
SpyObject
|
SpyObject
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
import {ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
||||||
import {BrowserJsonp} from 'angular2/src/http/backends/browser_jsonp';
|
import {BrowserJsonp} from 'angular2/src/http/backends/browser_jsonp';
|
||||||
import {
|
import {
|
||||||
JSONPConnection,
|
JSONPConnection,
|
||||||
|
@ -21,7 +21,6 @@ import {
|
||||||
} from 'angular2/src/http/backends/jsonp_backend';
|
} from 'angular2/src/http/backends/jsonp_backend';
|
||||||
import {provide, Injector, ReflectiveInjector} from 'angular2/core';
|
import {provide, Injector, ReflectiveInjector} from 'angular2/core';
|
||||||
import {isPresent, StringWrapper} from 'angular2/src/facade/lang';
|
import {isPresent, StringWrapper} from 'angular2/src/facade/lang';
|
||||||
import {TimerWrapper} from 'angular2/src/facade/async';
|
|
||||||
import {Request} from 'angular2/src/http/static_request';
|
import {Request} from 'angular2/src/http/static_request';
|
||||||
import {Response} from 'angular2/src/http/static_response';
|
import {Response} from 'angular2/src/http/static_response';
|
||||||
import {Map} from 'angular2/src/facade/collection';
|
import {Map} from 'angular2/src/facade/collection';
|
||||||
|
|
|
@ -8,14 +8,12 @@ import {
|
||||||
it,
|
it,
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {stringify} from 'angular2/src/facade/lang';
|
import {stringify, isBlank} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
import {MockViewResolver} from 'angular2/src/mock/view_resolver_mock';
|
import {MockViewResolver} from 'angular2/src/mock/view_resolver_mock';
|
||||||
|
|
||||||
import {Component, ViewMetadata} from 'angular2/src/core/metadata';
|
import {Component, ViewMetadata} from 'angular2/src/core/metadata';
|
||||||
|
|
||||||
import {isBlank} from 'angular2/src/facade/lang';
|
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
describe('MockViewResolver', () => {
|
describe('MockViewResolver', () => {
|
||||||
var viewResolver: MockViewResolver;
|
var viewResolver: MockViewResolver;
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
import {IS_DART, isPresent, stringify} from 'angular2/src/facade/lang';
|
import {IS_DART, isPresent, stringify} from 'angular2/src/facade/lang';
|
||||||
import {bootstrap, BROWSER_PROVIDERS, BROWSER_APP_PROVIDERS} from 'angular2/platform/browser';
|
import {bootstrap, BROWSER_PROVIDERS, BROWSER_APP_PROVIDERS} from 'angular2/platform/browser';
|
||||||
import {ApplicationRef, PlatformRef} from 'angular2/src/core/application_ref';
|
import {ApplicationRef, PlatformRef, disposePlatform} from 'angular2/src/core/application_ref';
|
||||||
import {Console} from 'angular2/src/core/console';
|
import {Console} from 'angular2/src/core/console';
|
||||||
import {Component, Directive, OnDestroy} from 'angular2/core';
|
import {Component, Directive, OnDestroy} from 'angular2/core';
|
||||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||||
|
@ -30,7 +30,6 @@ import {
|
||||||
createPlatform,
|
createPlatform,
|
||||||
ReflectiveInjector
|
ReflectiveInjector
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
import {disposePlatform} from 'angular2/src/core/application_ref';
|
|
||||||
import {ExceptionHandler, BaseException} from 'angular2/src/facade/exceptions';
|
import {ExceptionHandler, BaseException} from 'angular2/src/facade/exceptions';
|
||||||
import {Testability, TestabilityRegistry} from 'angular2/src/core/testability/testability';
|
import {Testability, TestabilityRegistry} from 'angular2/src/core/testability/testability';
|
||||||
import {ComponentRef} from "angular2/src/core/linker/component_factory";
|
import {ComponentRef} from "angular2/src/core/linker/component_factory";
|
||||||
|
|
|
@ -15,8 +15,7 @@ import {
|
||||||
tick
|
tick
|
||||||
} from 'angular2/testing';
|
} from 'angular2/testing';
|
||||||
|
|
||||||
import {Injectable, bind} from 'angular2/core';
|
import {Injectable, bind, Directive, Component, ViewMetadata} from 'angular2/core';
|
||||||
import {Directive, Component, ViewMetadata} from 'angular2/core';
|
|
||||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||||
import {XHR} from 'angular2/src/compiler/xhr';
|
import {XHR} from 'angular2/src/compiler/xhr';
|
||||||
import {XHRImpl} from 'angular2/src/platform/browser/xhr_impl';
|
import {XHRImpl} from 'angular2/src/platform/browser/xhr_impl';
|
||||||
|
|
|
@ -16,9 +16,8 @@ import {
|
||||||
TestComponentBuilder
|
TestComponentBuilder
|
||||||
} from 'angular2/testing';
|
} from 'angular2/testing';
|
||||||
|
|
||||||
import {Injectable, bind} from 'angular2/core';
|
import {Injectable, bind, Directive, Component, ViewMetadata} from 'angular2/core';
|
||||||
import {NgIf} from 'angular2/common';
|
import {NgIf} from 'angular2/common';
|
||||||
import {Directive, Component, ViewMetadata} from 'angular2/core';
|
|
||||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||||
|
|
||||||
// Services, and components for the tests.
|
// Services, and components for the tests.
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import {SelectorMatcher} from "angular2/src/compiler/selector";
|
import {SelectorMatcher, CssSelector} from "angular2/src/compiler/selector";
|
||||||
import {CssSelector} from "angular2/src/compiler/selector";
|
|
||||||
import {StringWrapper, Math} from 'angular2/src/facade/lang';
|
import {StringWrapper, Math} from 'angular2/src/facade/lang';
|
||||||
import {getIntParameter, bindAction} from 'angular2/src/testing/benchmark_util';
|
import {getIntParameter, bindAction} from 'angular2/src/testing/benchmark_util';
|
||||||
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
||||||
|
|
Loading…
Reference in New Issue