aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/autoScrollSpec.js
diff options
context:
space:
mode:
authorVojta Jina2012-01-12 02:29:26 -0800
committerVojta Jina2012-01-13 01:01:26 -0800
commit249c89c0911254873c68cd753d903ea5606344ac (patch)
treeee89b4d54ce20eabcaad625debbc0b282afdee74 /test/service/autoScrollSpec.js
parent5164ae545b10723b4e9ec454f436f6698dc93e24 (diff)
downloadangular.js-249c89c0911254873c68cd753d903ea5606344ac.tar.bz2
fix($autoScroll): scroll even if $location is in html5 mode
+ use autoscroll in docs (ng:include)
Diffstat (limited to 'test/service/autoScrollSpec.js')
-rw-r--r--test/service/autoScrollSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/service/autoScrollSpec.js b/test/service/autoScrollSpec.js
index 86a47f50..4f4dd0e2 100644
--- a/test/service/autoScrollSpec.js
+++ b/test/service/autoScrollSpec.js
@@ -169,12 +169,12 @@ describe('$autoScroll', function() {
});
- it('should not scroll when html5 mode with history api', function() {
+ it('should scroll when html5 mode with history api', function() {
module(initLocation({html5Mode: true, historyApi: true}));
inject(
addElements('id=some'),
changeHashAndDigest('some'),
- expectNoScrolling()
+ expectScrollingTo('id=some')
);
});