Browse Source

test for static style !important support

dev
Evan You 8 years ago
parent
commit
26b6374c3c
  1. 7
      test/unit/features/directives/style.spec.js

7
test/unit/features/directives/style.spec.js

@ -83,6 +83,13 @@ describe('Directive v-bind:style', () => {
}).then(done)
})
it('!important', () => {
vm.styles = { display: 'block !important' }
waitForUpdate(() => {
expect(vm.$el.style.getPropertyPriority('display')).toBe('important')
})
})
it('object with multiple entries', done => {
vm.$el.style.color = 'red'
vm.styles = {

Loading…
Cancel
Save