فهرست منبع

fix :style single value test in Firefox

Evan You 10 سال پیش
والد
کامیت
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
   // #2654
   it('background size with only one value', function () {
   it('background size with only one value', function () {
     dir.update({ backgroundSize: '100%' })
     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)?;/)
   })
   })
 })
 })