diff options
Diffstat (limited to 'test/ng/locationSpec.js')
| -rw-r--r-- | test/ng/locationSpec.js | 21 | 
1 files changed, 8 insertions, 13 deletions
diff --git a/test/ng/locationSpec.js b/test/ng/locationSpec.js index 98167b4e..648fa42d 100644 --- a/test/ng/locationSpec.js +++ b/test/ng/locationSpec.js @@ -672,6 +672,14 @@ describe('$location', function() {        module(function($provide, $locationProvider) {          var jqRoot = jqLite('<div></div>');          attrs = attrs ? ' ' + attrs + ' ' : ''; + +        // fake the base behavior +        if (linkHref[0] == '/') { +          linkHref = 'http://host.com' + linkHref; +        } else if(!linkHref.match(/:\/\//)) { +          linkHref = 'http://host.com/base/' + linkHref; +        } +          link = jqLite('<a href="' + linkHref + '"' + attrs + '>' + content + '</a>')[0];          root = jqRoot.append(link)[0]; @@ -784,19 +792,6 @@ describe('$location', function() {      }); -    it('should not rewrite ngExtLink', function() { -      configureService('#new', true, true, 'ng-ext-link'); -      inject( -        initBrowser(), -        initLocation(), -        function($browser) { -          browserTrigger(link, 'click'); -          expectNoRewrite($browser); -        } -      ); -    }); - -      it('should not rewrite full url links do different domain', function() {        configureService('http://www.dot.abc/a?b=c', true);        inject(  | 
