refactor(core): move facades out of core
This is part of ongoing work to make core platform-independent.
BREAKING CHANGE
All private exports from 'angular2/src/core/facade/{lang,collection,exception_handler}' should be replaced with 'angular2/src/facade/{lang,collection,exception_handler}'.
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
it,
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
import {ListWrapper, StringMapWrapper, SetWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {ListWrapper, StringMapWrapper, SetWrapper} from 'angular2/src/facade/collection';
|
||||
import {Component, View, NgFor, provide} from 'angular2/angular2';
|
||||
import {NgClass} from 'angular2/src/common/directives/ng_class';
|
||||
import {APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/linker/view_pool';
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {Component, View, TemplateRef, ContentChild} from 'angular2/angular2';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
import {Component, View, NgIf} from 'angular2/core';
|
||||
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
describe('ng-if directive', () => {
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {Component, View} from 'angular2/angular2';
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ import {
|
||||
|
||||
|
||||
import {selectValueAccessor, composeValidators} from 'angular2/src/common/forms/directives/shared';
|
||||
import {TimerWrapper} from 'angular2/src/core/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/promise';
|
||||
import {TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
import {SimpleChange} from 'angular2/src/core/change_detection';
|
||||
|
||||
class DummyControlValueAccessor implements ControlValueAccessor {
|
||||
@@ -135,7 +135,7 @@ export function main() {
|
||||
|
||||
describe("NgFormModel", () => {
|
||||
var form;
|
||||
var formModel;
|
||||
var formModel: ControlGroup;
|
||||
var loginControlDir;
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -188,7 +188,7 @@ export function main() {
|
||||
expect(formModel.hasError("required", ["login"])).toBe(true);
|
||||
expect(formModel.hasError("async", ["login"])).toBe(false);
|
||||
|
||||
formModel.find(["login"]).updateValue("invalid value");
|
||||
(<Control>formModel.find(["login"])).updateValue("invalid value");
|
||||
|
||||
// sync validator passes, running async validators
|
||||
expect(formModel.pending).toBe(true);
|
||||
@@ -200,7 +200,7 @@ export function main() {
|
||||
}));
|
||||
|
||||
it("should write value to the DOM", () => {
|
||||
formModel.find(["login"]).updateValue("initValue");
|
||||
(<Control>formModel.find(["login"])).updateValue("initValue");
|
||||
|
||||
form.addControl(loginControlDir);
|
||||
|
||||
@@ -228,13 +228,15 @@ export function main() {
|
||||
group.name = "passwords";
|
||||
form.addControlGroup(group);
|
||||
|
||||
formModel.find(["passwords", "password"]).updateValue("somePassword");
|
||||
formModel.find(["passwords", "passwordConfirm"]).updateValue("someOtherPassword");
|
||||
(<Control>formModel.find(["passwords", "password"])).updateValue("somePassword");
|
||||
(<Control>formModel.find(["passwords", "passwordConfirm"]))
|
||||
.updateValue("someOtherPassword");
|
||||
|
||||
// sync validators are set
|
||||
expect(formModel.hasError("differentPasswords", ["passwords"])).toEqual(true);
|
||||
|
||||
formModel.find(["passwords", "passwordConfirm"]).updateValue("somePassword");
|
||||
(<Control>formModel.find(["passwords", "passwordConfirm"]))
|
||||
.updateValue("somePassword");
|
||||
|
||||
// sync validators pass, running async validators
|
||||
expect(formModel.pending).toBe(true);
|
||||
@@ -257,7 +259,7 @@ export function main() {
|
||||
it("should update dom values of all the directives", () => {
|
||||
form.addControl(loginControlDir);
|
||||
|
||||
formModel.find(["login"]).updateValue("new value");
|
||||
(<Control>formModel.find(["login"])).updateValue("new value");
|
||||
|
||||
form.onChanges({});
|
||||
|
||||
@@ -268,7 +270,7 @@ export function main() {
|
||||
var formValidator = (c) => ({"custom": true});
|
||||
var f = new NgFormModel([formValidator], []);
|
||||
f.form = formModel;
|
||||
f.onChanges({"form": formModel});
|
||||
f.onChanges({"form":<any>formModel});
|
||||
|
||||
expect(formModel.errors).toEqual({"custom": true});
|
||||
});
|
||||
@@ -276,7 +278,7 @@ export function main() {
|
||||
it("should set up an async validator", fakeAsync(() => {
|
||||
var f = new NgFormModel([], [asyncValidator("expected")]);
|
||||
f.form = formModel;
|
||||
f.onChanges({"form": formModel});
|
||||
f.onChanges({"form":<any>formModel});
|
||||
|
||||
tick();
|
||||
|
||||
@@ -287,7 +289,7 @@ export function main() {
|
||||
|
||||
describe("NgForm", () => {
|
||||
var form;
|
||||
var formModel;
|
||||
var formModel: ControlGroup;
|
||||
var loginControlDir;
|
||||
var personControlGroupDir;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
el
|
||||
} from 'angular2/testing_internal';
|
||||
import {Control, FormBuilder} from 'angular2/core';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/promise';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
|
||||
export function main() {
|
||||
function syncValidator(_) { return null; }
|
||||
|
||||
@@ -37,10 +37,10 @@ import {
|
||||
Validator
|
||||
} from 'angular2/core';
|
||||
import {By} from 'angular2/src/core/debug';
|
||||
import {ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {PromiseWrapper} from "angular2/src/core/facade/promise";
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {PromiseWrapper} from "angular2/src/facade/promise";
|
||||
|
||||
export function main() {
|
||||
describe("integration tests", () => {
|
||||
|
||||
@@ -14,9 +14,9 @@ import {
|
||||
inject
|
||||
} from 'angular2/testing_internal';
|
||||
import {ControlGroup, Control, ControlArray, Validators} from 'angular2/core';
|
||||
import {IS_DART, isPresent, CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/promise';
|
||||
import {TimerWrapper, ObservableWrapper, EventEmitter} from 'angular2/src/core/facade/async';
|
||||
import {IS_DART, isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
import {TimerWrapper, ObservableWrapper, EventEmitter} from 'angular2/src/facade/async';
|
||||
|
||||
export function main() {
|
||||
function asyncValidator(expected, timeouts = CONST_EXPR({})) {
|
||||
|
||||
@@ -12,9 +12,9 @@ import {
|
||||
el
|
||||
} from 'angular2/testing_internal';
|
||||
import {ControlGroup, Control, Validators, AbstractControl, ControlArray} from 'angular2/core';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/promise';
|
||||
import {EventEmitter, ObservableWrapper, TimerWrapper} from 'angular2/src/core/facade/async';
|
||||
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
import {EventEmitter, ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
function validator(key: string, error: any) {
|
||||
|
||||
@@ -13,14 +13,14 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
import {SpyChangeDetectorRef} from '../spies';
|
||||
|
||||
import {isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank} from 'angular2/src/facade/lang';
|
||||
import {AsyncPipe, WrappedValue} from 'angular2/core';
|
||||
import {
|
||||
EventEmitter,
|
||||
ObservableWrapper,
|
||||
PromiseWrapper,
|
||||
TimerWrapper
|
||||
} from 'angular2/src/core/facade/async';
|
||||
} from 'angular2/src/facade/async';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DatePipe} from 'angular2/core';
|
||||
import {DateWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {DateWrapper} from 'angular2/src/facade/lang';
|
||||
import {PipeResolver} from 'angular2/src/core/linker/pipe_resolver';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
proxy,
|
||||
TestComponentBuilder
|
||||
} from 'angular2/testing_internal';
|
||||
import {Json, RegExp, NumberWrapper, StringWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {Json, RegExp, NumberWrapper, StringWrapper} from 'angular2/src/facade/lang';
|
||||
|
||||
import {JsonPipe, Component} from 'angular2/core';
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
TestComponentBuilder,
|
||||
beforeEachBindings
|
||||
} from 'angular2/testing_internal';
|
||||
import {MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {
|
||||
CompileDirectiveMetadata,
|
||||
CompileTypeMetadata
|
||||
|
||||
@@ -14,9 +14,9 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
import {provide} from 'angular2/src/core/di';
|
||||
|
||||
import {CONST_EXPR, stringify} from 'angular2/src/core/facade/lang';
|
||||
import {MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {Promise} from 'angular2/src/core/facade/async';
|
||||
import {CONST_EXPR, stringify} from 'angular2/src/facade/lang';
|
||||
import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {Promise} from 'angular2/src/facade/async';
|
||||
|
||||
import {ChangeDetectionCompiler} from 'angular2/src/compiler/change_detector_compiler';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank} from 'angular2/src/facade/lang';
|
||||
import {Pipes} from 'angular2/src/core/change_detection/pipes';
|
||||
import {
|
||||
ProtoChangeDetector,
|
||||
|
||||
@@ -13,9 +13,9 @@ import {
|
||||
beforeEachBindings
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {CONST_EXPR, stringify, isType, Type, isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {PromiseWrapper, Promise} from 'angular2/src/core/facade/async';
|
||||
import {CONST_EXPR, stringify, isType, Type, isBlank} from 'angular2/src/facade/lang';
|
||||
import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';
|
||||
import {TemplateParser} from 'angular2/src/compiler/template_parser';
|
||||
import {
|
||||
CommandVisitor,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {isPresent, global, StringWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {isPresent, global, StringWrapper} from 'angular2/src/facade/lang';
|
||||
|
||||
var evalCounter = 0;
|
||||
var MODULE_URL_REGEX = /^package:(.*)\.js/;
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
AsyncTestCompleter,
|
||||
inject
|
||||
} from 'angular2/testing_internal';
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
import {evalModule} from './eval_module';
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {Component, View, provide} from 'angular2/core';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {SpyProtoViewFactory} from '../core/spies';
|
||||
import {
|
||||
CompiledHostTemplate,
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
beforeEachProviders
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {stringify} from 'angular2/src/core/facade/lang';
|
||||
import {stringify} from 'angular2/src/facade/lang';
|
||||
import {RuntimeMetadataResolver} from 'angular2/src/compiler/runtime_metadata';
|
||||
import {LifecycleHooks, LIFECYCLE_HOOKS_VALUES} from 'angular2/src/core/linker/interfaces';
|
||||
import {
|
||||
@@ -36,7 +36,7 @@ import {
|
||||
|
||||
import {TEST_PROVIDERS} from './test_bindings';
|
||||
import {MODULE_SUFFIX} from 'angular2/src/compiler/util';
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
import {AMBIENT_DIRECTIVES} from 'angular2/src/core/ambient';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
it,
|
||||
xit
|
||||
} from 'angular2/testing_internal';
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
import {DomElementSchemaRegistry} from 'angular2/src/compiler/schema/dom_element_schema_registry';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {ElementSchemaRegistry} from 'angular2/src/compiler/schema/element_schema_registry';
|
||||
import {isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
|
||||
export class MockSchemaRegistry implements ElementSchemaRegistry {
|
||||
constructor(public existingProperties: {[key: string]: boolean},
|
||||
|
||||
@@ -2,7 +2,7 @@ import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {SelectorMatcher} from 'angular2/src/compiler/selector';
|
||||
import {CssSelector} from 'angular2/src/compiler/selector';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
export function main() {
|
||||
describe('SelectorMatcher', () => {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
import {ShadowCss, processRules, CssRule} from 'angular2/src/compiler/shadow_css';
|
||||
|
||||
import {RegExpWrapper, StringWrapper, isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {RegExpWrapper, StringWrapper, isPresent} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
describe('ShadowCss', function() {
|
||||
|
||||
@@ -15,10 +15,10 @@ import {
|
||||
import {provide} from 'angular2/src/core/di';
|
||||
import {SpyXHR} from './spies';
|
||||
import {XHR} from 'angular2/src/compiler/xhr';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
|
||||
import {CONST_EXPR, isPresent, isBlank, StringWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {PromiseWrapper, Promise} from 'angular2/src/core/facade/async';
|
||||
import {CONST_EXPR, isPresent, isBlank, StringWrapper} from 'angular2/src/facade/lang';
|
||||
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';
|
||||
import {evalModule} from './eval_module';
|
||||
import {StyleCompiler} from 'angular2/src/compiler/style_compiler';
|
||||
import {
|
||||
|
||||
@@ -13,9 +13,9 @@ import {
|
||||
beforeEachBindings
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {Type, isPresent, isBlank, stringify, isString} from 'angular2/src/core/facade/lang';
|
||||
import {MapWrapper, SetWrapper, ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {Type, isPresent, isBlank, stringify, isString} from 'angular2/src/facade/lang';
|
||||
import {MapWrapper, SetWrapper, ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {RuntimeMetadataResolver} from 'angular2/src/compiler/runtime_metadata';
|
||||
import {
|
||||
TemplateCompiler,
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
import {provide} from 'angular2/src/core/di';
|
||||
|
||||
import {TEST_PROVIDERS} from './test_bindings';
|
||||
import {isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {TemplateParser, splitClasses} from 'angular2/src/compiler/template_parser';
|
||||
import {
|
||||
CompileDirectiveMetadata,
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
TestComponentBuilder
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
import {escapeSingleQuoteString, escapeDoubleQuoteString} from 'angular2/src/compiler/util';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {XHRImpl} from 'angular2/src/compiler/xhr_impl';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
export function main() {
|
||||
describe('XHRImpl', () => {
|
||||
|
||||
@@ -10,8 +10,8 @@ import {
|
||||
it,
|
||||
} from 'angular2/testing_internal';
|
||||
import {MockXHR} from 'angular2/src/compiler/xhr_mock';
|
||||
import {PromiseWrapper, Promise} from 'angular2/src/core/facade/async';
|
||||
import {isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
describe('MockXHR', () => {
|
||||
|
||||
@@ -10,15 +10,15 @@ import {
|
||||
xdescribe,
|
||||
xit
|
||||
} from 'angular2/testing_internal';
|
||||
import {IS_DART, isPresent, stringify} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART, isPresent, stringify} from 'angular2/src/facade/lang';
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
import {Component, Directive, View} from 'angular2/core';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOCUMENT} from 'angular2/render';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {provide, Inject, Injector} from 'angular2/core';
|
||||
import {ExceptionHandler} from 'angular2/src/core/facade/exceptions';
|
||||
import {ExceptionHandler} from 'angular2/src/facade/exceptions';
|
||||
import {Testability, TestabilityRegistry} from 'angular2/src/core/testability/testability';
|
||||
import {ComponentRef_} from "angular2/src/core/linker/dynamic_component_loader";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {ListWrapper, MapWrapper, StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {isBlank, isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {ListWrapper, MapWrapper, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {isBlank, isPresent} from 'angular2/src/facade/lang';
|
||||
import {
|
||||
ChangeDetectionStrategy,
|
||||
BindingRecord,
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
FunctionWrapper,
|
||||
NumberWrapper,
|
||||
normalizeBool
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {MapWrapper, StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
} from 'angular2/src/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
import {MapWrapper, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {
|
||||
ChangeDispatcher,
|
||||
@@ -52,7 +52,7 @@ import {JitProtoChangeDetector} from 'angular2/src/core/change_detection/jit_pro
|
||||
import {getDefinition} from './change_detector_config';
|
||||
import {createObservableModel} from './change_detector_spec_util';
|
||||
import {getFactoryById} from './generated/change_detector_classes';
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
const _DEFAULT_CONTEXT = CONST_EXPR(new Object());
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
beforeEach,
|
||||
afterEach
|
||||
} from 'angular2/testing_internal';
|
||||
import {isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank} from 'angular2/src/facade/lang';
|
||||
|
||||
import {coalesce} from 'angular2/src/core/change_detection/coalesce';
|
||||
import {RecordType, ProtoRecord} from 'angular2/src/core/change_detection/proto_record';
|
||||
|
||||
@@ -13,8 +13,8 @@ import {
|
||||
DefaultIterableDifferFactory
|
||||
} from 'angular2/src/core/change_detection/differs/default_iterable_differ';
|
||||
|
||||
import {NumberWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {NumberWrapper} from 'angular2/src/facade/lang';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {TestIterable} from '../../../core/change_detection/iterable';
|
||||
import {iterableChangesAsString} from '../../../core/change_detection/util';
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
DefaultKeyValueDiffer,
|
||||
DefaultKeyValueDifferFactory
|
||||
} from 'angular2/src/core/change_detection/differs/default_keyvalue_differ';
|
||||
import {NumberWrapper, isJsObject} from 'angular2/src/core/facade/lang';
|
||||
import {NumberWrapper, isJsObject} from 'angular2/src/facade/lang';
|
||||
import {kvChangesAsString} from '../../../core/change_detection/util';
|
||||
|
||||
// todo(vicb): Update the code & tests for object equality
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {getSymbolIterator} from 'angular2/src/core/facade/lang';
|
||||
import {getSymbolIterator} from 'angular2/src/facade/lang';
|
||||
|
||||
export class TestIterable {
|
||||
list: number[];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {ddescribe, describe, it, expect} from 'angular2/testing_internal';
|
||||
|
||||
import {Lexer, Token} from 'angular2/src/core/change_detection/parser/lexer';
|
||||
|
||||
import {StringWrapper} from "angular2/src/core/facade/lang";
|
||||
import {StringWrapper} from "angular2/src/facade/lang";
|
||||
|
||||
function lex(text: string): any[] {
|
||||
return new Lexer().tokenize(text);
|
||||
|
||||
@@ -2,7 +2,7 @@ import {ddescribe, describe, it, xit, iit, expect, beforeEach} from 'angular2/te
|
||||
|
||||
import {Locals} from 'angular2/src/core/change_detection/parser/locals';
|
||||
|
||||
import {MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
export function main() {
|
||||
describe('Locals', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {ddescribe, describe, it, xit, iit, expect, beforeEach} from 'angular2/testing_internal';
|
||||
import {isBlank, isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank, isPresent} from 'angular2/src/facade/lang';
|
||||
import {reflector} from 'angular2/src/core/reflection/reflection';
|
||||
import {Parser} from 'angular2/src/core/change_detection/parser/parser';
|
||||
import {Unparser} from './unparser';
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
} from 'angular2/src/core/change_detection/parser/ast';
|
||||
|
||||
|
||||
import {StringWrapper, isPresent, isString} from 'angular2/src/core/facade/lang';
|
||||
import {StringWrapper, isPresent, isString} from 'angular2/src/facade/lang';
|
||||
|
||||
export class Unparser implements AstVisitor {
|
||||
private static _quoteRegExp = /"/g;
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
beforeEach,
|
||||
afterEach
|
||||
} from 'angular2/testing_internal';
|
||||
import {isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank} from 'angular2/src/facade/lang';
|
||||
|
||||
import {RecordType, ProtoRecord} from 'angular2/src/core/change_detection/proto_record';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {isBlank, CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
|
||||
export function iterableChangesAsString({collection = CONST_EXPR([]), previous = CONST_EXPR([]),
|
||||
additions = CONST_EXPR([]), moves = CONST_EXPR([]),
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
import {PromiseWrapper, EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {PromiseWrapper, EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
import {Injectable, NgFor, NgIf} from 'angular2/core';
|
||||
import {By, Scope} from 'angular2/src/core/debug';
|
||||
|
||||
@@ -13,11 +13,11 @@ import {
|
||||
xit,
|
||||
TestComponentBuilder,
|
||||
} from 'angular2/testing_internal';
|
||||
import {global} from 'angular2/src/core/facade/lang';
|
||||
import {global} from 'angular2/src/facade/lang';
|
||||
import {APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/linker/view_pool';
|
||||
import {provide, Component, Directive, Injectable, View} from 'angular2/core';
|
||||
import {inspectNativeElement} from 'angular2/src/core/debug';
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
@Component({selector: 'my-comp'})
|
||||
@View({directives: []})
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
import {forwardRef, resolveForwardRef} from 'angular2/core';
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
describe("forwardRef", function() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {isBlank, stringify} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {isBlank, stringify} from 'angular2/src/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
import {describe, ddescribe, it, iit, expect, beforeEach} from 'angular2/testing_internal';
|
||||
import {SpyDependencyProvider} from '../spies';
|
||||
import {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
library angular2.test.facade.async_dart_spec;
|
||||
|
||||
import 'package:angular2/testing_internal.dart';
|
||||
import 'package:angular2/src/core/facade/async.dart';
|
||||
import 'package:angular2/src/facade/async.dart';
|
||||
|
||||
class MockException implements Error {
|
||||
var message;
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
Subject,
|
||||
EventEmitter,
|
||||
PromiseWrapper
|
||||
} from 'angular2/src/core/facade/async';
|
||||
} from 'angular2/src/facade/async';
|
||||
|
||||
export function main() {
|
||||
describe('EventEmitter', () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {describe, it, expect, beforeEach, ddescribe, iit, xit} from 'angular2/testing_internal';
|
||||
|
||||
import {ListWrapper, StringMapWrapper, MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {ListWrapper, StringMapWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
export function main() {
|
||||
describe('ListWrapper', () => {
|
||||
|
||||
@@ -11,11 +11,7 @@ import {
|
||||
xit,
|
||||
Log
|
||||
} from 'angular2/testing_internal';
|
||||
import {
|
||||
BaseException,
|
||||
WrappedException,
|
||||
ExceptionHandler
|
||||
} from 'angular2/src/core/facade/exceptions';
|
||||
import {BaseException, WrappedException, ExceptionHandler} from 'angular2/src/facade/exceptions';
|
||||
|
||||
class _CustomException {
|
||||
context = "some context";
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
RegExpMatcherWrapper,
|
||||
StringWrapper,
|
||||
CONST_EXPR
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
describe('RegExp', () => {
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
QueryList,
|
||||
View
|
||||
} from 'angular2/core';
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
import {asNativeElements} from 'angular2/src/core/debug';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -16,13 +16,13 @@ import {
|
||||
containsRegexp
|
||||
} from 'angular2/testing_internal';
|
||||
import {SpyView, SpyElementRef} from '../spies';
|
||||
import {isBlank, isPresent, stringify} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank, isPresent, stringify} from 'angular2/src/facade/lang';
|
||||
import {
|
||||
ListWrapper,
|
||||
MapWrapper,
|
||||
StringMapWrapper,
|
||||
iterateListLike
|
||||
} from 'angular2/src/core/facade/collection';
|
||||
} from 'angular2/src/facade/collection';
|
||||
import {
|
||||
ProtoElementInjector,
|
||||
ElementInjector,
|
||||
|
||||
@@ -33,15 +33,15 @@ import {
|
||||
isBlank,
|
||||
CONST,
|
||||
CONST_EXPR
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
} from 'angular2/src/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
import {
|
||||
PromiseWrapper,
|
||||
EventEmitter,
|
||||
ObservableWrapper,
|
||||
PromiseCompleter,
|
||||
Promise
|
||||
} from 'angular2/src/core/facade/async';
|
||||
} from 'angular2/src/facade/async';
|
||||
|
||||
import {
|
||||
Injector,
|
||||
@@ -92,7 +92,7 @@ import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||
import {TemplateRef} from 'angular2/src/core/linker/template_ref';
|
||||
|
||||
import {DomRenderer} from 'angular2/src/core/render/dom/dom_renderer';
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
const ANCHOR_ELEMENT = CONST_EXPR(new OpaqueToken('AnchorElement'));
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ import {
|
||||
TestComponentBuilder,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
import {
|
||||
Component,
|
||||
|
||||
@@ -10,12 +10,17 @@ import {
|
||||
fakeAsync,
|
||||
tick
|
||||
} from 'angular2/testing_internal';
|
||||
import {MapWrapper, ListWrapper, iterateListLike} from 'angular2/src/core/facade/collection';
|
||||
import {IS_DART, StringWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {MapWrapper, ListWrapper, iterateListLike} from 'angular2/src/facade/collection';
|
||||
import {IS_DART, StringWrapper} from 'angular2/src/facade/lang';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {QueryList} from 'angular2/src/core/linker/query_list';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
interface _JsQueryList {
|
||||
filter(c: any): any;
|
||||
reduce(a: any, b: any): any;
|
||||
toArray(): any;
|
||||
}
|
||||
|
||||
export function main() {
|
||||
describe('QueryList', () => {
|
||||
@@ -48,22 +53,22 @@ export function main() {
|
||||
if (!IS_DART) {
|
||||
it('should support filter', () => {
|
||||
queryList.reset(['one', 'two']);
|
||||
expect((<any>queryList).filter((x) => x == "one")).toEqual(['one']);
|
||||
expect((<_JsQueryList>queryList).filter((x) => x == "one")).toEqual(['one']);
|
||||
});
|
||||
|
||||
it('should support reduce', () => {
|
||||
queryList.reset(["one", "two"]);
|
||||
expect((<any>queryList).reduce((a, x) => a + x, "start:")).toEqual("start:onetwo");
|
||||
expect((<_JsQueryList>queryList).reduce((a, x) => a + x, "start:")).toEqual("start:onetwo");
|
||||
});
|
||||
|
||||
it('should support toArray', () => {
|
||||
queryList.reset(["one", "two"]);
|
||||
expect((<any>queryList).reduce((a, x) => a + x, "start:")).toEqual("start:onetwo");
|
||||
expect((<_JsQueryList>queryList).reduce((a, x) => a + x, "start:")).toEqual("start:onetwo");
|
||||
});
|
||||
|
||||
it('should support toArray', () => {
|
||||
queryList.reset(["one", "two"]);
|
||||
expect((<any>queryList).toArray()).toEqual(["one", "two"]);
|
||||
expect((<_JsQueryList>queryList).toArray()).toEqual(["one", "two"]);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
} from '../spies';
|
||||
|
||||
import {Injector, provide} from 'angular2/core';
|
||||
import {isBlank, isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank, isPresent} from 'angular2/src/facade/lang';
|
||||
|
||||
import {
|
||||
AppProtoView,
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
import {AppViewPool} from 'angular2/src/core/linker/view_pool';
|
||||
import {AppProtoView, AppView} from 'angular2/src/core/linker/view';
|
||||
import {MapWrapper, Map} from 'angular2/src/core/facade/collection';
|
||||
import {MapWrapper, Map} from 'angular2/src/facade/collection';
|
||||
|
||||
export function main() {
|
||||
describe('AppViewPool', () => {
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
propDecorator,
|
||||
HasGetterAndSetterDecorators
|
||||
} from './reflector_common';
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
class AType {
|
||||
value;
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
SpyObject,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
// import {MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
// import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
// import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
// import {DomTestbed, TestRootView, elRef} from './dom_testbed';
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
DomEventsPlugin
|
||||
} from 'angular2/src/core/render/dom/events/event_manager';
|
||||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
import {ListWrapper, Map, MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -11,8 +11,8 @@ import {
|
||||
stringifyElement
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {MapWrapper, ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {MapWrapper, ListWrapper} from 'angular2/src/facade/collection';
|
||||
import * as appCmds from 'angular2/src/core/linker/template_commands';
|
||||
import {createRenderView, NodeFactory} from 'angular2/src/core/render/view_factory';
|
||||
import {RenderTemplateCmd, RenderBeginElementCmd} from 'angular2/src/core/render/api';
|
||||
|
||||
@@ -13,8 +13,8 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
import {Testability} from 'angular2/src/core/testability/testability';
|
||||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
import {normalizeBlank} from 'angular2/src/core/facade/lang';
|
||||
import {PromiseWrapper, EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {normalizeBlank} from 'angular2/src/facade/lang';
|
||||
import {PromiseWrapper, EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
// Schedules a microtasks (using a resolved promise .then())
|
||||
function microTask(fn: Function): void {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {makeDecorator, makeParamDecorator, Class} from 'angular2/src/core/util/decorators';
|
||||
import {global} from 'angular2/src/core/facade/lang';
|
||||
import {global} from 'angular2/src/facade/lang';
|
||||
import {Inject} from 'angular2/angular2';
|
||||
import {reflector} from 'angular2/src/core/reflection/reflection';
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ import {
|
||||
browserDetection
|
||||
} from 'angular2/test_lib';
|
||||
|
||||
import {PromiseCompleter, PromiseWrapper, TimerWrapper} from 'angular2/src/core/facade/async';
|
||||
import {BaseException} from 'angular2/src/core/facade/exceptions';
|
||||
import {PromiseCompleter, PromiseWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {BaseException} from 'angular2/src/facade/exceptions';
|
||||
|
||||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ import {
|
||||
TimerWrapper,
|
||||
ObservableWrapper,
|
||||
EventEmitter
|
||||
} from 'angular2/src/core/facade/async';
|
||||
import {BaseException} from 'angular2/src/core/facade/exceptions';
|
||||
} from 'angular2/src/facade/async';
|
||||
import {BaseException} from 'angular2/src/facade/exceptions';
|
||||
|
||||
import {NgZone, NgZoneError} from 'angular2/src/core/zone/ng_zone';
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
xit
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {assertionsEnabled} from 'angular2/src/core/facade/lang';
|
||||
import {assertionsEnabled} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
describe('dev mode', () => {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
xit,
|
||||
SpyObject
|
||||
} from 'angular2/testing_internal';
|
||||
import {ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {BrowserJsonp} from 'angular2/src/http/backends/browser_jsonp';
|
||||
import {
|
||||
JSONPConnection,
|
||||
@@ -20,11 +20,11 @@ import {
|
||||
JSONPBackend_
|
||||
} from 'angular2/src/http/backends/jsonp_backend';
|
||||
import {provide, Injector} from 'angular2/core';
|
||||
import {isPresent, StringWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {TimerWrapper} from 'angular2/src/core/facade/async';
|
||||
import {isPresent, StringWrapper} from 'angular2/src/facade/lang';
|
||||
import {TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {Request} from 'angular2/src/http/static_request';
|
||||
import {Response} from 'angular2/src/http/static_response';
|
||||
import {Map} from 'angular2/src/core/facade/collection';
|
||||
import {Map} from 'angular2/src/facade/collection';
|
||||
import {RequestOptions, BaseRequestOptions} from 'angular2/src/http/base_request_options';
|
||||
import {BaseResponseOptions, ResponseOptions} from 'angular2/src/http/base_response_options';
|
||||
import {ResponseTypes, ReadyStates, RequestMethods} from 'angular2/src/http/enums';
|
||||
|
||||
@@ -11,14 +11,14 @@ import {
|
||||
xit,
|
||||
SpyObject
|
||||
} from 'angular2/testing_internal';
|
||||
import {ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {BrowserXhr} from 'angular2/src/http/backends/browser_xhr';
|
||||
import {MockConnection, MockBackend} from 'angular2/src/http/backends/mock_backend';
|
||||
import {provide, Injector} from 'angular2/core';
|
||||
import {Request} from 'angular2/src/http/static_request';
|
||||
import {Response} from 'angular2/src/http/static_response';
|
||||
import {Headers} from 'angular2/src/http/headers';
|
||||
import {Map} from 'angular2/src/core/facade/collection';
|
||||
import {Map} from 'angular2/src/facade/collection';
|
||||
import {RequestOptions, BaseRequestOptions} from 'angular2/src/http/base_request_options';
|
||||
import {BaseResponseOptions, ResponseOptions} from 'angular2/src/http/base_response_options';
|
||||
import {ResponseTypes} from 'angular2/src/http/enums';
|
||||
|
||||
@@ -11,14 +11,14 @@ import {
|
||||
xit,
|
||||
SpyObject
|
||||
} from 'angular2/testing_internal';
|
||||
import {ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {BrowserXhr} from 'angular2/src/http/backends/browser_xhr';
|
||||
import {XHRConnection, XHRBackend} from 'angular2/src/http/backends/xhr_backend';
|
||||
import {provide, Injector} from 'angular2/core';
|
||||
import {Request} from 'angular2/src/http/static_request';
|
||||
import {Response} from 'angular2/src/http/static_response';
|
||||
import {Headers} from 'angular2/src/http/headers';
|
||||
import {Map} from 'angular2/src/core/facade/collection';
|
||||
import {Map} from 'angular2/src/facade/collection';
|
||||
import {RequestOptions, BaseRequestOptions} from 'angular2/src/http/base_request_options';
|
||||
import {BaseResponseOptions, ResponseOptions} from 'angular2/src/http/base_response_options';
|
||||
import {ResponseTypes} from 'angular2/src/http/enums';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Headers} from 'angular2/src/http/headers';
|
||||
import {Map, StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {Map, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {
|
||||
AsyncTestCompleter,
|
||||
beforeEach,
|
||||
|
||||
@@ -8,13 +8,13 @@ import {
|
||||
it,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {stringify} from 'angular2/src/core/facade/lang';
|
||||
import {stringify} from 'angular2/src/facade/lang';
|
||||
|
||||
import {MockViewResolver} from 'angular2/src/mock/view_resolver_mock';
|
||||
|
||||
import {Component, View, ViewMetadata} from 'angular2/src/core/metadata';
|
||||
|
||||
import {isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {isBlank} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
describe('MockViewResolver', () => {
|
||||
|
||||
@@ -540,6 +540,10 @@ var NG_ALL = [
|
||||
'EventEmitter.transform():dart',
|
||||
'EventEmitter.where():dart',
|
||||
|
||||
'ExceptionHandler',
|
||||
'ExceptionHandler#exceptionToString()',
|
||||
'ExceptionHandler.call()',
|
||||
|
||||
/*
|
||||
RxJS API - may need to maintain as RxJS evolves
|
||||
*/
|
||||
@@ -629,113 +633,6 @@ var NG_ALL = [
|
||||
'Observable.multicast():js',
|
||||
'Observable.observeOn():js',
|
||||
|
||||
'Subject',
|
||||
'Subject#combineLatest():js',
|
||||
'Subject#concat():js',
|
||||
'Subject#create():js',
|
||||
'Subject#defer():js',
|
||||
'Subject#empty():js',
|
||||
'Subject#forkJoin():js',
|
||||
'Subject#from():js',
|
||||
'Subject#fromArray():js',
|
||||
'Subject#fromEvent():js',
|
||||
'Subject#fromEventPattern():js',
|
||||
'Subject#fromPromise():js',
|
||||
'Subject#interval():js',
|
||||
'Subject#merge():js',
|
||||
'Subject#never():js',
|
||||
'Subject#of():js',
|
||||
'Subject#range():js',
|
||||
'Subject#throw():js',
|
||||
'Subject#timer():js',
|
||||
'Subject#zip():js',
|
||||
'Subject.add():js',
|
||||
'Subject.buffer():js',
|
||||
'Subject.bufferCount():js',
|
||||
'Subject.bufferTime():js',
|
||||
'Subject.bufferToggle():js',
|
||||
'Subject.bufferWhen():js',
|
||||
'Subject.catch():js',
|
||||
'Subject.combineAll():js',
|
||||
'Subject.combineLatest():js',
|
||||
'Subject.complete():js',
|
||||
'Subject.concat():js',
|
||||
'Subject.concatAll():js',
|
||||
'Subject.concatMap():js',
|
||||
'Subject.concatMapTo():js',
|
||||
'Subject.count():js',
|
||||
'Subject.debounce():js',
|
||||
'Subject.debounceTime():js',
|
||||
'Subject.defaultIfEmpty():js',
|
||||
'Subject.delay():js',
|
||||
'Subject.dematerialize():js',
|
||||
'Subject.distinctUntilChanged():js',
|
||||
'Subject.do():js',
|
||||
'Subject.error():js',
|
||||
'Subject.every():js',
|
||||
'Subject.expand():js',
|
||||
'Subject.filter():js',
|
||||
'Subject.finally():js',
|
||||
'Subject.first():js',
|
||||
'Subject.flatMap():js',
|
||||
'Subject.flatMapTo():js',
|
||||
'Subject.forEach():js',
|
||||
'Subject.groupBy():js',
|
||||
'Subject.ignoreElements():js',
|
||||
'Subject.last():js',
|
||||
'Subject.lift():js',
|
||||
'Subject.map():js',
|
||||
'Subject.mapTo():js',
|
||||
'Subject.materialize():js',
|
||||
'Subject.merge():js',
|
||||
'Subject.mergeAll():js',
|
||||
'Subject.mergeMap():js',
|
||||
'Subject.mergeMapTo():js',
|
||||
'Subject.multicast():js',
|
||||
'Subject.next():js',
|
||||
'Subject.observeOn():js',
|
||||
'Subject.partition():js',
|
||||
'Subject.publish():js',
|
||||
'Subject.publishBehavior():js',
|
||||
'Subject.publishReplay():js',
|
||||
'Subject.reduce():js',
|
||||
'Subject.remove():js',
|
||||
'Subject.repeat():js',
|
||||
'Subject.retry():js',
|
||||
'Subject.retryWhen():js',
|
||||
'Subject.sample():js',
|
||||
'Subject.sampleTime():js',
|
||||
'Subject.scan():js',
|
||||
'Subject.share():js',
|
||||
'Subject.shareBehavior():js',
|
||||
'Subject.shareReplay():js',
|
||||
'Subject.single():js',
|
||||
'Subject.skip():js',
|
||||
'Subject.skipUntil():js',
|
||||
'Subject.startWith():js',
|
||||
'Subject.subscribe():js',
|
||||
'Subject.subscribeOn():js',
|
||||
'Subject.switch():js',
|
||||
'Subject.switchMap():js',
|
||||
'Subject.switchMapTo():js',
|
||||
'Subject.take():js',
|
||||
'Subject.takeUntil():js',
|
||||
'Subject.throttle():js',
|
||||
'Subject.timeout():js',
|
||||
'Subject.timeoutWith():js',
|
||||
'Subject.toArray():js',
|
||||
'Subject.toPromise():js',
|
||||
'Subject.unsubscribe():js',
|
||||
'Subject.window():js',
|
||||
'Subject.windowCount():js',
|
||||
'Subject.windowTime():js',
|
||||
'Subject.windowToggle():js',
|
||||
'Subject.windowWhen():js',
|
||||
'Subject.withLatestFrom():js',
|
||||
'Subject.zip():js',
|
||||
'Subject.zipAll():js',
|
||||
|
||||
|
||||
'OutputMetadata',
|
||||
'OutputMetadata.bindingPropertyName',
|
||||
'enableDevMode():js',
|
||||
@@ -1083,7 +980,6 @@ var NG_ALL = [
|
||||
'PlatformRef.registerDisposeListener()',
|
||||
*/
|
||||
'PlatformRef.injector',
|
||||
'Predicate:dart',
|
||||
'Input',
|
||||
'Input.bindingPropertyName',
|
||||
'InputMetadata',
|
||||
|
||||
@@ -16,14 +16,14 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {provide, Component, Injector, Inject, View} from 'angular2/core';
|
||||
import {isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {
|
||||
Promise,
|
||||
PromiseWrapper,
|
||||
PromiseCompleter,
|
||||
EventEmitter,
|
||||
ObservableWrapper
|
||||
} from 'angular2/src/core/facade/async';
|
||||
} from 'angular2/src/facade/async';
|
||||
|
||||
import {RootRouter} from 'angular2/src/router/router';
|
||||
import {Router, RouterOutlet, RouterLink, RouteParams} from 'angular2/router';
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {provide, Component, View, Injector, Inject} from 'angular2/core';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
import {RootRouter} from 'angular2/src/router/router';
|
||||
import {Router, RouterOutlet, RouterLink, RouteParams, RouteData} from 'angular2/router';
|
||||
|
||||
@@ -20,8 +20,8 @@ import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {provide} from 'angular2/core';
|
||||
import {DOCUMENT} from 'angular2/src/core/render/render';
|
||||
import {RouteConfig, Route, Redirect} from 'angular2/src/router/route_config_decorator';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
import {
|
||||
ROUTER_PROVIDERS,
|
||||
ROUTER_PRIMARY_COMPONENT,
|
||||
|
||||
@@ -17,9 +17,9 @@ import {
|
||||
SpyObject
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {NumberWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {NumberWrapper} from 'angular2/src/facade/lang';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {provide, Component, DirectiveResolver, View} from 'angular2/core';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {Injector, provide} from 'angular2/core';
|
||||
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {Location, APP_BASE_HREF} from 'angular2/src/router/location';
|
||||
import {LocationStrategy} from 'angular2/src/router/location_strategy';
|
||||
import {MockLocationStrategy} from 'angular2/src/mock/mock_location_strategy';
|
||||
|
||||
@@ -16,7 +16,7 @@ import {Component, Directive, View} from 'angular2/src/core/metadata';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {provide} from 'angular2/core';
|
||||
import {DOCUMENT} from 'angular2/src/core/render/render';
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
|
||||
import {
|
||||
ROUTER_PROVIDERS,
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
ROUTER_DIRECTIVES
|
||||
} from 'angular2/router';
|
||||
|
||||
import {ExceptionHandler} from 'angular2/src/core/facade/exceptions';
|
||||
import {ExceptionHandler} from 'angular2/src/facade/exceptions';
|
||||
import {LocationStrategy} from 'angular2/src/router/location_strategy';
|
||||
import {MockLocationStrategy} from 'angular2/src/mock/mock_location_strategy';
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
SpyObject
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {Map, StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {Map, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {RouteRecognizer} from 'angular2/src/router/route_recognizer';
|
||||
import {ComponentInstruction} from 'angular2/src/router/instruction';
|
||||
|
||||
@@ -10,8 +10,8 @@ import {
|
||||
SpyObject
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
|
||||
import {RouteRegistry} from 'angular2/src/router/route_registry';
|
||||
import {
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
AsyncRoute
|
||||
} from 'angular2/src/router/route_config_decorator';
|
||||
import {stringifyInstruction} from 'angular2/src/router/instruction';
|
||||
import {IS_DART} from 'angular2/src/core/facade/lang';
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
export function main() {
|
||||
describe('RouteRegistry', () => {
|
||||
|
||||
@@ -11,9 +11,9 @@ import {
|
||||
beforeEachBindings
|
||||
} from 'angular2/testing_internal';
|
||||
import {SpyRouterOutlet} from './spies';
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
import {Promise, PromiseWrapper, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
import {Promise, PromiseWrapper, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {Router, RootRouter} from 'angular2/src/router/router';
|
||||
import {SpyLocation} from 'angular2/src/mock/location_mock';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {StringWrapper, RegExpWrapper, isJsObject} from 'angular2/src/core/facade/lang';
|
||||
import {StringWrapper, RegExpWrapper, isJsObject} from 'angular2/src/facade/lang';
|
||||
|
||||
var IS_FIELD = RegExpWrapper.create('^\\w+[\\.|\\#]\\w+=?$');
|
||||
var IS_INTERFACE = RegExpWrapper.create('^\\{.+\\}');
|
||||
|
||||
@@ -13,8 +13,8 @@ import {
|
||||
tick,
|
||||
xit
|
||||
} from 'angular2/testing_internal';
|
||||
import {TimerWrapper, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {BaseException} from 'angular2/src/core/facade/exceptions';
|
||||
import {TimerWrapper, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {BaseException} from 'angular2/src/facade/exceptions';
|
||||
import {Parser} from 'angular2/src/core/change_detection/change_detection';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -12,8 +12,8 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {MapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {RegExpWrapper} from 'angular2/src/core/facade/lang';
|
||||
import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {RegExpWrapper} from 'angular2/src/facade/lang';
|
||||
|
||||
class TestObj {
|
||||
prop;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {describe, it, iit, ddescribe, expect, BrowserDetection} from 'angular2/testing_internal';
|
||||
import {StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
export function main() {
|
||||
describe('BrowserDetection', () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {SpyObject} from 'angular2/testing_internal';
|
||||
import {Injector, provide} from 'angular2/angular2';
|
||||
import {ComponentRef} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||
import {global} from 'angular2/src/core/facade/lang';
|
||||
import {global} from 'angular2/src/facade/lang';
|
||||
import {ApplicationRef, ApplicationRef_} from 'angular2/src/core/application_ref';
|
||||
|
||||
export class SpyApplicationRef extends SpyObject {
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
SpyObject,
|
||||
proxy
|
||||
} from 'angular2/testing_internal';
|
||||
import {ObservableWrapper, TimerWrapper} from 'angular2/src/core/facade/async';
|
||||
import {ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
|
||||
import {createConnectedMessageBus} from './message_bus_util';
|
||||
import {MockNgZone} from 'angular2/src/mock/ng_zone_mock';
|
||||
|
||||
@@ -2,7 +2,7 @@ library angular2.test.web_workers.worker.mock_event_emitter;
|
||||
|
||||
import 'dart:core';
|
||||
import 'dart:async';
|
||||
import "package:angular2/src/core/facade/async.dart";
|
||||
import "package:angular2/src/facade/async.dart";
|
||||
|
||||
class MockEventEmitter<T> extends EventEmitter<T> {
|
||||
final controller = new StreamController.broadcast(sync: true);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {EventEmitter} from 'angular2/src/core/facade/async';
|
||||
import {EventEmitter} from 'angular2/src/facade/async';
|
||||
|
||||
export class MockEventEmitter<T> extends EventEmitter<T> {
|
||||
private _nextFns: Function[] = [];
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
WebWorkerRenderViewRef,
|
||||
WebWorkerRenderFragmentRef
|
||||
} from "angular2/src/web_workers/shared/render_view_with_fragments_store";
|
||||
import {ListWrapper} from "angular2/src/core/facade/collection";
|
||||
import {ListWrapper} from "angular2/src/facade/collection";
|
||||
|
||||
export function main() {
|
||||
describe("RenderViewWithFragmentsStore", () => {
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
ServiceMessageBroker,
|
||||
ServiceMessageBroker_
|
||||
} from 'angular2/src/web_workers/shared/service_message_broker';
|
||||
import {ObservableWrapper, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {ObservableWrapper, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {provide} from 'angular2/core';
|
||||
import {ON_WEB_WORKER} from 'angular2/src/web_workers/shared/api';
|
||||
import {RenderProtoViewRefStore} from 'angular2/src/web_workers/shared/render_proto_view_ref_store';
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {StringMapWrapper, ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {StringMapWrapper, ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {
|
||||
MessageBusSink,
|
||||
MessageBusSource,
|
||||
MessageBus
|
||||
} from 'angular2/src/web_workers/shared/message_bus';
|
||||
import {MockEventEmitter} from './mock_event_emitter';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
import {RenderEventDispatcher, RenderViewRef} from 'angular2/src/core/render/api';
|
||||
import {createPairedMessageBuses} from '../shared/web_worker_test_util';
|
||||
import {WebWorkerEventDispatcher} from 'angular2/src/web_workers/worker/event_dispatcher';
|
||||
import {ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {EVENT_CHANNEL} from 'angular2/src/web_workers/shared/messaging_api';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
beforeEachBindings
|
||||
} from 'angular2/testing_internal';
|
||||
import {SpyMessageBroker} from './spies';
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
import {
|
||||
ClientMessageBroker,
|
||||
UiArguments,
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
ClientMessageBrokerFactory_
|
||||
} from 'angular2/src/web_workers/shared/client_message_broker';
|
||||
import {WebWorkerXHRImpl} from "angular2/src/web_workers/worker/xhr_impl";
|
||||
import {PromiseWrapper} from "angular2/src/core/facade/async";
|
||||
import {PromiseWrapper} from "angular2/src/facade/async";
|
||||
|
||||
export function main() {
|
||||
describe("WebWorkerXHRImpl", () => {
|
||||
|
||||
Reference in New Issue
Block a user