Преглед на файлове

test for static style !important support

Evan You преди 9 години
родител
ревизия
26b6374c3c
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  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)
   })
 
+  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 = {