mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
4
js/angular/directive/refresher.js
vendored
4
js/angular/directive/refresher.js
vendored
@@ -67,9 +67,9 @@ IonicModule
|
||||
'<div class="scroll-refresher">' +
|
||||
'<div class="ionic-refresher-content">' +
|
||||
'<i class="icon {{pullingIcon}} icon-pulling"></i>' +
|
||||
'<div class="text-pulling" ng-bind-html="pullingText || \' \'"></div>' +
|
||||
'<div class="text-pulling" ng-bind-html="pullingText"></div>' +
|
||||
'<i class="icon {{refreshingIcon}} icon-refreshing"></i>' +
|
||||
'<div class="text-refreshing" ng-bind-html="refreshingText || \' \'"></div>' +
|
||||
'<div class="text-refreshing" ng-bind-html="refreshingText"></div>' +
|
||||
'</div>' +
|
||||
'</div>',
|
||||
compile: function($element, $attrs) {
|
||||
|
||||
@@ -86,14 +86,6 @@ describe('ionRefresher directive', function() {
|
||||
expect(el[0].querySelector('.icon.icon-refreshing.monkey-icon')).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should have pulling-text by default', function() {
|
||||
var el = setup();
|
||||
expect(el[0].querySelector('.text-pulling').innerHTML).toBe(' ');
|
||||
});
|
||||
it('should have refreshing-text by default', function() {
|
||||
var el = setup();
|
||||
expect(el[0].querySelector('.text-refreshing').innerHTML).toBe(' ');
|
||||
});
|
||||
it('should allow pullingText', function() {
|
||||
var el = setup('pulling-text="{{2+2}} <b>some</b> text"');
|
||||
expect(el[0].querySelector('.text-pulling').innerHTML).toBe('4 <b>some</b> text');
|
||||
|
||||
Reference in New Issue
Block a user