From 449d6849ce4c27cc89f48879a761ef1f68bcc579 Mon Sep 17 00:00:00 2001 From: Dean Sofer Date: Sun, 30 Jun 2013 13:39:11 -0700 Subject: [PATCH] fix(scrollfix): Fixed tests broken in previous commit --- modules/scrollfix/test/scrollfixSpec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/scrollfix/test/scrollfixSpec.js b/modules/scrollfix/test/scrollfixSpec.js index 7c93a79d..cc4e4231 100644 --- a/modules/scrollfix/test/scrollfixSpec.js +++ b/modules/scrollfix/test/scrollfixSpec.js @@ -11,29 +11,29 @@ describe('uiScrollfix', function () { })); describe('compiling this directive', function () { - it('should bind to window "scroll" event with a ui-scrollfix namespace', function () { + it('should bind to window "scroll" event', function () { spyOn($.fn, 'bind'); $compile('
')(scope); expect($.fn.bind).toHaveBeenCalled(); - expect($.fn.bind.mostRecentCall.args[0]).toBe('scroll.ui-scrollfix'); + expect($.fn.bind.mostRecentCall.args[0]).toBe('scroll'); }); }); describe('scrolling the window', function () { it('should add the ui-scrollfix class if the offset is greater than specified', function () { var element = $compile('
')(scope); - angular.element($window).trigger('scroll.ui-scrollfix'); + angular.element($window).trigger('scroll'); expect(element.hasClass('ui-scrollfix')).toBe(true); }); it('should remove the ui-scrollfix class if the offset is less than specified (using absolute coord)', function () { var element = $compile('
')(scope); - angular.element($window).trigger('scroll.ui-scrollfix'); + angular.element($window).trigger('scroll'); expect(element.hasClass('ui-scrollfix')).toBe(false); }); it('should remove the ui-scrollfix class if the offset is less than specified (using relative coord)', function () { var element = $compile('
')(scope); - angular.element($window).trigger('scroll.ui-scrollfix'); + angular.element($window).trigger('scroll'); expect(element.hasClass('ui-scrollfix')).toBe(false); }); }); -}); \ No newline at end of file +});