From d0e55bf4465bdfe6660f75d26882bc1d9da9b924 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Mon, 18 Oct 2010 19:19:49 +0100 Subject: Removed $location.cancel() method (and related test) --- test/servicesSpec.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'test') diff --git a/test/servicesSpec.js b/test/servicesSpec.js index 77ad59df..cf45becb 100644 --- a/test/servicesSpec.js +++ b/test/servicesSpec.js @@ -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(); }); }); -- cgit v1.2.3