mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
Removed $location.cancel() method (and related test)
This commit is contained in:
@@ -227,16 +227,6 @@ describe("service", function(){
|
||||
expect(scope.$location.hash).toEqual('path?a=b');
|
||||
expect(scope.$location.hashSearch).toEqual({a: 'b'});
|
||||
expect(scope.$location.hashPath).toEqual('path');
|
||||
});
|
||||
|
||||
it('should not update browser if you call cancel()', function() {
|
||||
spyOn($browser, 'setUrl');
|
||||
|
||||
scope.$location.update('http://www.angularjs.org/a/b#a/b');
|
||||
scope.$location.cancel();
|
||||
scope.$eval();
|
||||
|
||||
expect($browser.setUrl).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user