Skip to content

Commit 5288465

Browse files
committed
Tests: Remove unused expected property in css test cases
1 parent a702746 commit 5288465

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

test/unit/css.js

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,40 +1557,32 @@ QUnit.test(
15571557
var done = assert.async();
15581558
var styles = [ {
15591559
name: "backgroundAttachment",
1560-
value: [ "fixed" ],
1561-
expected: [ "scroll" ]
1560+
value: [ "fixed" ]
15621561
}, {
15631562
name: "backgroundColor",
1564-
value: [ "rgb(255, 0, 0)", "rgb(255,0,0)", "#ff0000" ],
1565-
expected: [ "transparent" ]
1563+
value: [ "rgb(255, 0, 0)", "rgb(255,0,0)", "#ff0000" ]
15661564
}, {
15671565

15681566
// Firefox returns auto's value
15691567
name: "backgroundImage",
1570-
value: [ "url('test.png')", "url(" + baseURL + "test.png)", "url(\"" + baseURL + "test.png\")" ],
1571-
expected: [ "none", "url(\"https://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif\")" ]
1568+
value: [ "url('test.png')", "url(" + baseURL + "test.png)", "url(\"" + baseURL + "test.png\")" ]
15721569
}, {
15731570
name: "backgroundPosition",
1574-
value: [ "5% 5%" ],
1575-
expected: [ "0% 0%", "-1000px 0px", "-1000px 0%" ]
1571+
value: [ "5% 5%" ]
15761572
}, {
15771573

15781574
// Firefox returns no-repeat
15791575
name: "backgroundRepeat",
1580-
value: [ "repeat-y" ],
1581-
expected: [ "repeat", "no-repeat" ]
1576+
value: [ "repeat-y" ]
15821577
}, {
15831578
name: "backgroundClip",
1584-
value: [ "padding-box" ],
1585-
expected: [ "border-box" ]
1579+
value: [ "padding-box" ]
15861580
}, {
15871581
name: "backgroundOrigin",
1588-
value: [ "content-box" ],
1589-
expected: [ "padding-box" ]
1582+
value: [ "content-box" ]
15901583
}, {
15911584
name: "backgroundSize",
1592-
value: [ "80px 60px" ],
1593-
expected: [ "auto auto" ]
1585+
value: [ "80px 60px" ]
15941586
} ];
15951587

15961588
jQuery.each( styles, function( index, style ) {
@@ -1599,8 +1591,6 @@ QUnit.test(
15991591
source = $source[ 0 ],
16001592
$children = $source.children();
16011593

1602-
style.expected = style.expected.concat( [ "", "auto" ] );
1603-
16041594
if ( source.style[ style.name ] === undefined ) {
16051595
assert.ok( true, style.name + ": style isn't supported and therefore not an issue" );
16061596
assert.ok( true );

0 commit comments

Comments
 (0)