refactor($location) Remove unused variables

These were left around in 736c8fbbae

Closes #9482
This commit is contained in:
Rouven Weßling
2014-10-08 01:58:05 +02:00
committed by Pawel Kozlowski
parent e21b6ff3ff
commit 77d8ae1d45
3 changed files with 12 additions and 12 deletions

View File

@@ -27,10 +27,10 @@ describe('urlUtils', function() {
it('should support various combinations of urls - both string and parsed', inject(function($document) {
function expectIsSameOrigin(url, expectedValue) {
expect(urlIsSameOrigin(url)).toBe(expectedValue);
expect(urlIsSameOrigin(urlResolve(url, true))).toBe(expectedValue);
expect(urlIsSameOrigin(urlResolve(url))).toBe(expectedValue);
}
expectIsSameOrigin('path', true);
var origin = urlResolve($document[0].location.href, true);
var origin = urlResolve($document[0].location.href);
expectIsSameOrigin('//' + origin.host + '/path', true);
// Different domain.
expectIsSameOrigin('http://example.com/path', false);