diff options
Diffstat (limited to 'test/ng/browserSpecs.js')
| -rwxr-xr-x | test/ng/browserSpecs.js | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ng/browserSpecs.js b/test/ng/browserSpecs.js index 6c6ac30e..4157ecbd 100755 --- a/test/ng/browserSpecs.js +++ b/test/ng/browserSpecs.js @@ -609,5 +609,10 @@ describe('browser', function() {        fakeDocument.basePath = 'http://host.com/base/path/index.html';        expect(browser.baseHref()).toEqual('/base/path/index.html');      }); + +    it('should remove domain from <base href> beginning with \'//\'', function() { +      fakeDocument.basePath = '//google.com/base/path/'; +      expect(browser.baseHref()).toEqual('/base/path/'); +    });    });  });  | 
