소스 검색

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
   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)?;/)
   })
 })