diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2021-05-24 17:23:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 18:23:50 +0200 |
commit | 482f846203e82b1c2620f580e483bf41d11f9f49 (patch) | |
tree | 4e2da972c1cc7f1d0d2b5a052cb109484dd99a91 /test/unit | |
parent | e539bac79e666bba95bba86d690b4e609dca2286 (diff) | |
download | jquery-482f846203e82b1c2620f580e483bf41d11f9f49.tar.gz jquery-482f846203e82b1c2620f580e483bf41d11f9f49.zip |
Tests: Switch background image from online file to local 1x1.jpg
Also, remove unused `expected` property in `css` test cases.
Closes gh-4866
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/css.js | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 6d2983f87..8ade482ff 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1557,40 +1557,32 @@ QUnit.test( var done = assert.async(); var styles = [ { name: "backgroundAttachment", - value: [ "fixed" ], - expected: [ "scroll" ] + value: [ "fixed" ] }, { name: "backgroundColor", - value: [ "rgb(255, 0, 0)", "rgb(255,0,0)", "#ff0000" ], - expected: [ "transparent" ] + value: [ "rgb(255, 0, 0)", "rgb(255,0,0)", "#ff0000" ] }, { // Firefox returns auto's value name: "backgroundImage", - value: [ "url('test.png')", "url(" + baseURL + "test.png)", "url(\"" + baseURL + "test.png\")" ], - expected: [ "none", "url(\"https://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif\")" ] + value: [ "url('test.png')", "url(" + baseURL + "test.png)", "url(\"" + baseURL + "test.png\")" ] }, { name: "backgroundPosition", - value: [ "5% 5%" ], - expected: [ "0% 0%", "-1000px 0px", "-1000px 0%" ] + value: [ "5% 5%" ] }, { // Firefox returns no-repeat name: "backgroundRepeat", - value: [ "repeat-y" ], - expected: [ "repeat", "no-repeat" ] + value: [ "repeat-y" ] }, { name: "backgroundClip", - value: [ "padding-box" ], - expected: [ "border-box" ] + value: [ "padding-box" ] }, { name: "backgroundOrigin", - value: [ "content-box" ], - expected: [ "padding-box" ] + value: [ "content-box" ] }, { name: "backgroundSize", - value: [ "80px 60px" ], - expected: [ "auto auto" ] + value: [ "80px 60px" ] } ]; jQuery.each( styles, function( index, style ) { @@ -1599,8 +1591,6 @@ QUnit.test( source = $source[ 0 ], $children = $source.children(); - style.expected = style.expected.concat( [ "", "auto" ] ); - if ( source.style[ style.name ] === undefined ) { assert.ok( true, style.name + ": style isn't supported and therefore not an issue" ); assert.ok( true ); |