diff options
| author | Vojta Jina | 2012-05-14 14:14:52 -0700 |
|---|---|---|
| committer | Vojta Jina | 2012-05-14 15:12:51 -0700 |
| commit | 7b739c97028be2a5d5aef679ef1f8064cd10d386 (patch) | |
| tree | d549dc84026352e50f54df0d4ca22906540fb616 /test/ng/anchorScrollSpec.js | |
| parent | c1533ef5762199bea18d3bf3bcba7fcf89272931 (diff) | |
| download | angular.js-7b739c97028be2a5d5aef679ef1f8064cd10d386.tar.bz2 | |
fix($sniffer): report history false on Android < 4
Android has history.pushState, but it does not update the location correctly:
http://code.google.com/p/android/issues/detail?id=17471
Closes #904
Diffstat (limited to 'test/ng/anchorScrollSpec.js')
| -rw-r--r-- | test/ng/anchorScrollSpec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ng/anchorScrollSpec.js b/test/ng/anchorScrollSpec.js index 7e4b3aa3..ba64d1a5 100644 --- a/test/ng/anchorScrollSpec.js +++ b/test/ng/anchorScrollSpec.js @@ -51,7 +51,8 @@ describe('$anchorScroll', function() { elmSpy = {}; $provide.value('$window', { scrollTo: jasmine.createSpy('$window.scrollTo'), - document: document + document: document, + navigator: {} }); })); |
