mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
refactor($location) Remove unused variables
These were left around in 736c8fbbae
Closes #9482
This commit is contained in:
committed by
Pawel Kozlowski
parent
e21b6ff3ff
commit
77d8ae1d45
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user