Skip to content

Commit 63b6e76

Browse files
fix($location): do not get caught in infinite digest in IE9
Closes angular#11439 Closes angular#11675 Closes angular#11935
1 parent e1d9e9f commit 63b6e76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/ng/locationSpec.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global LocationHashbangUrl: false, LocationHtml5Url: false */
22
'use strict';
33

4-
describe('$location', function() {
4+
ddescribe('$location', function() {
55

66
// Mock out the $log function - see testabilityPatch.js
77
beforeEach(module(provideLog));
@@ -787,7 +787,7 @@ describe('$location', function() {
787787

788788
expect($browser.url()).toEqual('http://server/app/Home');
789789
expect($location.path()).toEqual('/Home');
790-
expect($browserUrl.calls.length).toEqual(3);
790+
expect($browserUrl.calls.length).toEqual(1);
791791
});
792792
});
793793

@@ -804,7 +804,7 @@ describe('$location', function() {
804804

805805
expect($browser.url()).toEqual('http://server/app/');
806806
expect($location.path()).toEqual('/');
807-
expect($browserUrl.calls.length).toEqual(2);
807+
expect($browserUrl.calls.length).toEqual(0);
808808
});
809809
});
810810

@@ -821,7 +821,7 @@ describe('$location', function() {
821821

822822
expect($browser.url()).toEqual('http://server/app/Home');
823823
expect($location.path()).toEqual('/Home');
824-
expect($browserUrl.calls.length).toEqual(2);
824+
expect($browserUrl.calls.length).toEqual(1);
825825
});
826826
});
827827

@@ -838,7 +838,7 @@ describe('$location', function() {
838838

839839
expect($browser.url()).toEqual('http://server/app/');
840840
expect($location.path()).toEqual('/');
841-
expect($browserUrl.calls.length).toEqual(1);
841+
expect($browserUrl.calls.length).toEqual(0);
842842
});
843843
});
844844
});

0 commit comments

Comments
 (0)