reafactor(XHR): rename XHRMock to MockXHR for consistency

This commit is contained in:
Victor Berchet 2015-03-31 16:55:46 +02:00
parent 52c55d0ee8
commit d8aeb40b49
4 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ import {List, ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection
import {isBlank, isPresent, normalizeBlank, BaseException} from 'angular2/src/facade/lang';
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';
export class XHRMock extends XHR {
export class MockXHR extends XHR {
_expectations: List<_Expectation>;
_definitions: Map;
_requests: List<Promise>;

View File

@ -22,7 +22,7 @@ import {appDocumentToken} from 'angular2/src/core/application_tokens';
import {EventManager, DomEventsPlugin} from 'angular2/src/render/dom/events/event_manager';
import {MockTemplateResolver} from 'angular2/src/mock/template_resolver_mock';
import {XHRMock} from 'angular2/src/mock/xhr_mock';
import {MockXHR} from 'angular2/src/mock/xhr_mock';
import {MockVmTurnZone} from 'angular2/src/mock/vm_turn_zone_mock';
import {TestBed} from './test_bed';
@ -76,7 +76,7 @@ function _getAppBindings() {
Parser,
Lexer,
ExceptionHandler,
bind(XHR).toClass(XHRMock),
bind(XHR).toClass(MockXHR),
ComponentUrlMapper,
UrlResolver,
StyleUrlResolver,

View File

@ -10,16 +10,16 @@ import {
IS_DARTIUM,
it,
} from 'angular2/test_lib';
import {XHRMock} from 'angular2/src/mock/xhr_mock';
import {MockXHR} from 'angular2/src/mock/xhr_mock';
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';
import {isPresent} from 'angular2/src/facade/lang';
export function main() {
describe('XHRMock', () => {
describe('MockXHR', () => {
var xhr;
beforeEach(() => {
xhr = new XHRMock();
xhr = new MockXHR();
});
function expectResponse(request: Promise, url: string, response: string, done = null) {

View File

@ -16,14 +16,14 @@ import {UrlResolver} from 'angular2/src/services/url_resolver';
import {Template} from 'angular2/src/render/api';
import {PromiseWrapper} from 'angular2/src/facade/async';
import {XHRMock} from 'angular2/src/mock/xhr_mock';
import {MockXHR} from 'angular2/src/mock/xhr_mock';
export function main() {
describe('TemplateLoader', () => {
var loader, xhr;
beforeEach(() => {
xhr = new XHRMock()
xhr = new MockXHR();
loader = new TemplateLoader(xhr, new FakeUrlResolver());
});