diff --git a/test/ng1/urlRouterSpec.js b/test/ng1/urlRouterSpec.js index e07d6d488..6d7ffabad 100644 --- a/test/ng1/urlRouterSpec.js +++ b/test/ng1/urlRouterSpec.js @@ -198,22 +198,6 @@ describe("UrlRouter", function () { expect($location.hash()).toBe('frag'); })); - it('can push location changes that include a #fragment', inject(function($urlRouter, $location) { - // html5mode disabled - $lp.html5Mode(false); - expect($lp.html5Mode()).toBe(false); - $urlRouter.push(new UrlMatcher('/hello/:name'), {name: 'world', '#': 'frag'}); - expect($location.url()).toBe('/hello/world#frag'); - expect($location.hash()).toBe('frag'); - - // html5mode enabled - $lp.html5Mode(true); - expect($lp.html5Mode()).toBe(true); - $urlRouter.push(new UrlMatcher('/hello/:name'), {name: 'world', '#': 'frag'}); - expect($location.url()).toBe('/hello/world#frag'); - expect($location.hash()).toBe('frag'); - })); - it('can read and sync a copy of location URL', inject(function($urlRouter, $location) { $location.url('/old');