Просмотр исходного кода

fix :style single value test in Firefox

Evan You 10 лет назад
Родитель
Сommit
cfad4234dd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      test/unit/specs/directives/internal/style_spec.js

+ 1 - 1
test/unit/specs/directives/internal/style_spec.js

@@ -125,6 +125,6 @@ describe(':style', function () {
   // #2654
   it('background size with only one value', function () {
     dir.update({ backgroundSize: '100%' })
-    expect(el.style.cssText.replace(/\s/g, '')).toBe('background-size:100%;')
+    expect(el.style.cssText.replace(/\s/g, '')).toMatch(/background-size:100%(auto)?;/)
   })
 })