From 249c89c0911254873c68cd753d903ea5606344ac Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 12 Jan 2012 02:29:26 -0800 Subject: fix($autoScroll): scroll even if $location is in html5 mode + use autoscroll in docs (ng:include)--- test/service/autoScrollSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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') ); }); -- cgit v1.2.3