Revert "fix(url_resolver): in Dart make package urls relative to AppRootUrl"

This reverts commit 469afda53e.
This commit is contained in:
Misko Hevery
2015-07-27 14:15:02 -07:00
parent 30bd2a3fc7
commit a2bb81c406
18 changed files with 33 additions and 58 deletions

View File

@ -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');
});
});
}
});
}