mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(refresher): Improve refresher animation. Allow pulling icon rotation to be disabled.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user