Revert "fix(url_resolver): in Dart make package urls relative to AppRootUrl"
This reverts commit 469afda53e
.
This commit is contained in:
@ -1,21 +1,9 @@
|
||||
import {
|
||||
describe,
|
||||
it,
|
||||
expect,
|
||||
beforeEach,
|
||||
ddescribe,
|
||||
iit,
|
||||
xit,
|
||||
el,
|
||||
IS_DARTIUM
|
||||
} from 'angular2/test_lib';
|
||||
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el} from 'angular2/test_lib';
|
||||
import {UrlResolver} from 'angular2/src/services/url_resolver';
|
||||
import {AppRootUrl} from 'angular2/src/services/app_root_url';
|
||||
|
||||
export function main() {
|
||||
describe('UrlResolver', () => {
|
||||
var appRootUrl = new AppRootUrl('http://localhost/example/');
|
||||
var resolver = new UrlResolver(appRootUrl);
|
||||
var resolver = new UrlResolver();
|
||||
|
||||
describe('absolute base url', () => {
|
||||
it('should add a relative path to the base url', () => {
|
||||
@ -82,14 +70,5 @@ export function main() {
|
||||
expect(resolver.resolve('foo/baz/', '/bar')).toEqual('/bar');
|
||||
});
|
||||
});
|
||||
|
||||
if (IS_DARTIUM) {
|
||||
describe('package url', () => {
|
||||
it('should be served relative to AppRootUrl', () => {
|
||||
expect(resolver.resolve('foo', 'package:bar/baz.dart'))
|
||||
.toEqual('http://localhost/example/packages/bar/baz.dart');
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user