Sfoglia il codice sorgente

fix :style single value test in Firefox

Evan You 10 anni fa
parent
commit
cfad4234dd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)?;/)
   })
 })