Loading: remove unnecessary inline styles

This commit is contained in:
Leopoldthecoder
2016-11-13 21:12:04 +08:00
parent 455850d70c
commit 940b189bbd
3 changed files with 54 additions and 50 deletions

View File

@@ -106,9 +106,7 @@ describe('Loading', () => {
Vue.nextTick(() => {
const mask = document.querySelector('.el-loading-mask');
expect(mask.parentNode === document.body).to.true;
expect(mask.style.left).to.equal('0px');
expect(mask.style.right).to.equal('0px');
expect(mask.style.position).to.equal('fixed');
expect(mask.classList.contains('is-fullscreen')).to.true;
vm.loading = false;
document.body.removeChild(mask);
document.body.removeChild(vm.$el);