test boundary refactoring and main() invocation (0826)
This commit is contained in:
@ -10,15 +10,15 @@ import {ReflectiveInjector} from '@angular/core';
|
||||
import {AsyncTestCompleter, SpyObject, afterEach, beforeEach, ddescribe, describe, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
|
||||
import {expect} from '@angular/platform-browser/testing/matchers';
|
||||
|
||||
import {BrowserJsonp} from '../../src/backends/browser_jsonp';
|
||||
import {JSONPBackend, JSONPBackend_, JSONPConnection, JSONPConnection_} from '../../src/backends/jsonp_backend';
|
||||
import {BaseRequestOptions, RequestOptions} from '../../src/base_request_options';
|
||||
import {BaseResponseOptions, ResponseOptions} from '../../src/base_response_options';
|
||||
import {ReadyState, RequestMethod, ResponseType} from '../../src/enums';
|
||||
import {Map} from '../../src/facade/collection';
|
||||
import {isPresent} from '../../src/facade/lang';
|
||||
import {Request} from '../../src/static_request';
|
||||
import {Response} from '../../src/static_response';
|
||||
import {BrowserJsonp} from '@angular/http/src/backends/browser_jsonp';
|
||||
import {JSONPBackend, JSONPBackend_, JSONPConnection, JSONPConnection_} from '@angular/http/src/backends/jsonp_backend';
|
||||
import {BaseRequestOptions, RequestOptions} from '@angular/http/src/base_request_options';
|
||||
import {BaseResponseOptions, ResponseOptions} from '@angular/http/src/base_response_options';
|
||||
import {ReadyState, RequestMethod, ResponseType} from '@angular/http/src/enums';
|
||||
import {Map} from '@angular/facade/src/collection';
|
||||
import {isPresent} from '@angular/facade/src/lang';
|
||||
import {Request} from '@angular/http/src/static_request';
|
||||
import {Response} from '@angular/http/src/static_response';
|
||||
|
||||
var existingScripts: MockBrowserJsonp[] = [];
|
||||
var unused: Response;
|
||||
@ -177,3 +177,5 @@ export function main() {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
|
@ -11,11 +11,11 @@ import {AsyncTestCompleter, afterEach, beforeEach, ddescribe, describe, iit, inj
|
||||
import {expect} from '@angular/platform-browser/testing/matchers';
|
||||
import {ReplaySubject} from 'rxjs/ReplaySubject';
|
||||
|
||||
import {BaseRequestOptions, RequestOptions} from '../../src/base_request_options';
|
||||
import {BaseResponseOptions, ResponseOptions} from '../../src/base_response_options';
|
||||
import {Request} from '../../src/static_request';
|
||||
import {Response} from '../../src/static_response';
|
||||
import {MockBackend, MockConnection} from '../../testing/mock_backend';
|
||||
import {BaseRequestOptions, RequestOptions} from '@angular/http/src/base_request_options';
|
||||
import {BaseResponseOptions, ResponseOptions} from '@angular/http/src/base_response_options';
|
||||
import {Request} from '@angular/http/src/static_request';
|
||||
import {Response} from '@angular/http/src/static_response';
|
||||
import {MockBackend, MockConnection} from '@angular/http/testing/mock_backend';
|
||||
|
||||
export function main() {
|
||||
describe('MockBackend', () => {
|
||||
@ -117,3 +117,5 @@ export function main() {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
|
@ -10,18 +10,18 @@ import {Injectable} from '@angular/core';
|
||||
import {AsyncTestCompleter, SpyObject, afterEach, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
|
||||
import {__platform_browser_private__} from '@angular/platform-browser';
|
||||
|
||||
import {BrowserXhr} from '../../src/backends/browser_xhr';
|
||||
import {CookieXSRFStrategy, XHRBackend, XHRConnection} from '../../src/backends/xhr_backend';
|
||||
import {BaseRequestOptions, RequestOptions} from '../../src/base_request_options';
|
||||
import {BaseResponseOptions, ResponseOptions} from '../../src/base_response_options';
|
||||
import {ResponseContentType, ResponseType} from '../../src/enums';
|
||||
import {Map} from '../../src/facade/collection';
|
||||
import {Json} from '../../src/facade/lang';
|
||||
import {Headers} from '../../src/headers';
|
||||
import {XSRFStrategy} from '../../src/interfaces';
|
||||
import {Request} from '../../src/static_request';
|
||||
import {Response} from '../../src/static_response';
|
||||
import {URLSearchParams} from '../../src/url_search_params';
|
||||
import {BrowserXhr} from '@angular/http/src/backends/browser_xhr';
|
||||
import {CookieXSRFStrategy, XHRBackend, XHRConnection} from '@angular/http/src/backends/xhr_backend';
|
||||
import {BaseRequestOptions, RequestOptions} from '@angular/http/src/base_request_options';
|
||||
import {BaseResponseOptions, ResponseOptions} from '@angular/http/src/base_response_options';
|
||||
import {ResponseContentType, ResponseType} from '@angular/http/src/enums';
|
||||
import {Map} from '@angular/facade/src/collection';
|
||||
import {Json} from '@angular/facade/src/lang';
|
||||
import {Headers} from '@angular/http/src/headers';
|
||||
import {XSRFStrategy} from '@angular/http/src/interfaces';
|
||||
import {Request} from '@angular/http/src/static_request';
|
||||
import {Response} from '@angular/http/src/static_response';
|
||||
import {URLSearchParams} from '@angular/http/src/url_search_params';
|
||||
|
||||
var abortSpy: any;
|
||||
var sendSpy: any;
|
||||
@ -692,3 +692,5 @@ Connection: keep-alive`;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
|
@ -7,8 +7,8 @@
|
||||
*/
|
||||
|
||||
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
|
||||
import {BaseRequestOptions, RequestOptions} from '../src/base_request_options';
|
||||
import {RequestMethod} from '../src/enums';
|
||||
import {BaseRequestOptions, RequestOptions} from '@angular/http/src/base_request_options';
|
||||
import {RequestMethod} from '@angular/http/src/enums';
|
||||
|
||||
export function main() {
|
||||
describe('BaseRequestOptions', () => {
|
||||
@ -26,3 +26,5 @@ export function main() {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
|
||||
|
||||
import {Map, StringMapWrapper} from '../src/facade/collection';
|
||||
import {Json} from '../src/facade/lang';
|
||||
import {Headers} from '../src/headers';
|
||||
import {Map, StringMapWrapper} from '@angular/facade/src/collection';
|
||||
import {Json} from '@angular/facade/src/lang';
|
||||
import {Headers} from '@angular/http/src/headers';
|
||||
|
||||
export function main() {
|
||||
describe('Headers', () => {
|
||||
@ -131,3 +131,5 @@ Connection: keep-alive`;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
|
@ -13,10 +13,10 @@ import {expect} from '@angular/platform-browser/testing/matchers';
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
import {zip} from 'rxjs/observable/zip';
|
||||
|
||||
import {BaseRequestOptions, ConnectionBackend, Http, HttpModule, JSONPBackend, Jsonp, JsonpModule, Request, RequestMethod, RequestOptions, Response, ResponseContentType, ResponseOptions, URLSearchParams, XHRBackend} from '../index';
|
||||
import {Json} from '../src/facade/lang';
|
||||
import {stringToArrayBuffer} from '../src/http_utils';
|
||||
import {MockBackend, MockConnection} from '../testing/mock_backend';
|
||||
import {BaseRequestOptions, ConnectionBackend, Http, HttpModule, JSONPBackend, Jsonp, JsonpModule, Request, RequestMethod, RequestOptions, Response, ResponseContentType, ResponseOptions, URLSearchParams, XHRBackend} from '@angular/http/index';
|
||||
import {Json} from '@angular/facade/src/lang';
|
||||
import {stringToArrayBuffer} from '@angular/http/src/http_utils';
|
||||
import {MockBackend, MockConnection} from '@angular/http/testing/mock_backend';
|
||||
|
||||
export function main() {
|
||||
describe('injectables', () => {
|
||||
@ -512,3 +512,5 @@ export function main() {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
|
@ -8,10 +8,10 @@
|
||||
|
||||
import {describe, expect, it} from '@angular/core/testing/testing_internal';
|
||||
|
||||
import {RequestOptions} from '../src/base_request_options';
|
||||
import {ContentType} from '../src/enums';
|
||||
import {Headers} from '../src/headers';
|
||||
import {Request} from '../src/static_request';
|
||||
import {RequestOptions} from '@angular/http/src/base_request_options';
|
||||
import {ContentType} from '@angular/http/src/enums';
|
||||
import {Headers} from '@angular/http/src/headers';
|
||||
import {Request} from '@angular/http/src/static_request';
|
||||
|
||||
export function main() {
|
||||
describe('Request', () => {
|
||||
@ -90,3 +90,5 @@ export function main() {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
|
@ -8,8 +8,8 @@
|
||||
|
||||
import {describe, expect, it} from '@angular/core/testing/testing_internal';
|
||||
|
||||
import {ResponseOptions} from '../src/base_response_options';
|
||||
import {Response} from '../src/static_response';
|
||||
import {ResponseOptions} from '@angular/http/src/base_response_options';
|
||||
import {Response} from '@angular/http/src/static_response';
|
||||
|
||||
|
||||
|
||||
@ -26,3 +26,5 @@ export function main() {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
|
||||
import {URLSearchParams} from '../src/url_search_params';
|
||||
import {URLSearchParams} from '@angular/http/src/url_search_params';
|
||||
|
||||
export function main() {
|
||||
describe('URLSearchParams', () => {
|
||||
@ -151,3 +151,5 @@ export function main() {
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
|
Reference in New Issue
Block a user