fix(backdrop): Changed z-index for loading backdrop only. Fixes #1428

This commit is contained in:
Max Lynch
2014-05-22 10:43:52 -05:00
parent 633821d9f7
commit 4c700e9c0f
4 changed files with 22 additions and 5 deletions

View File

@@ -70,6 +70,14 @@ describe('$ionicLoading service', function() {
expect(loader.element.text()).toBe('1 content');
}));
it('should add and remove backdrop-loading to backdrop', inject(function($ionicLoading, $ionicBackdrop) {
var loader = TestUtil.unwrapPromise($ionicLoading._getLoader());
loader.show({ templateUrl: 'template.html' });
expect($ionicBackdrop._element.hasClass('backdrop-loading')).toBe(true);
loader.hide();
expect($ionicBackdrop._element.hasClass('backdrop-loading')).toBe(false);
}));
});
describe('.hide()', function() {