Progress: add color attribute (#10352)

This commit is contained in:
云游君
2018-03-25 21:50:57 -05:00
committed by 杨奕
parent d9bcaacc74
commit 0b330126c7
5 changed files with 37 additions and 11 deletions

View File

@@ -95,4 +95,12 @@ describe('Progress', () => {
}, true);
expect(vm.$el.querySelector('.el-progress-bar__innerText').offsetTop).to.be.equal(12);
});
it('color', () => {
vm = createVue({
template: `
<el-progress :percentage="50" color="rgb(0, 0, 0)"></el-progress>
`
}, true);
expect(vm.$el.querySelector('.el-progress-bar__inner').style.backgroundColor).to.equal('rgb(0, 0, 0)');
});
});