feat(refresher): Improve refresher animation. Allow pulling icon rotation to be disabled.

This commit is contained in:
Perry Govier
2014-09-16 16:22:02 -05:00
parent 487e7a9796
commit db27fb116c
7 changed files with 111 additions and 33 deletions

View File

@@ -70,7 +70,7 @@ describe('ionRefresher directive', function() {
it('should have default pullingIcon', function() {
var el = setup();
expect(el[0].querySelector('.icon-pulling .ion-arrow-down-c')).toBeTruthy();
expect(el[0].querySelector('.icon-pulling .ion-ios7-arrow-down')).toBeTruthy();
});
it('should allow custom pullingIcon', function() {
var el = setup('pulling-icon="super-icon"');
@@ -97,4 +97,8 @@ describe('ionRefresher directive', function() {
expect(el[0].querySelector('.text-refreshing').innerHTML).toBe('5 <b>text</b>');
});
it('should allow pulling rotation animation to be disabled', function() {
var el = setup('disable-pulling-rotation="true"');
expect(el[0].querySelector('.pulling-rotation-disabled').innerHTML).toBeTruthy();
});
});