fix(url_resolver): always replace package: in Dart, even if it came from baseUrl.

Closes #4775
This commit is contained in:
Tobias Bosch
2015-10-15 16:03:23 -07:00
parent 5256457144
commit fd9b67537d
3 changed files with 21 additions and 9 deletions

View File

@ -3,8 +3,10 @@ import {MockSchemaRegistry} from './schema_registry_mock';
import {ElementSchemaRegistry} from 'angular2/src/core/compiler/schema/element_schema_registry';
import {MockXHR} from 'angular2/src/core/compiler/xhr_mock';
import {XHR} from 'angular2/src/core/compiler/xhr';
import {UrlResolver, createWithoutPackagePrefix} from 'angular2/src/core/compiler/url_resolver';
export var TEST_PROVIDERS = [
provide(ElementSchemaRegistry, {useValue: new MockSchemaRegistry({}, {})}),
provide(XHR, {useClass: MockXHR})
provide(XHR, {useClass: MockXHR}),
provide(UrlResolver, {useFactory: createWithoutPackagePrefix})
];