Explorar o código

test for static style !important support

Evan You %!s(int64=9) %!d(string=hai) anos
pai
achega
26b6374c3c
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      test/unit/features/directives/style.spec.js

+ 7 - 0
test/unit/features/directives/style.spec.js

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