Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit482f846

Browse files
authored
Tests: Switch background image from online file to local 1x1.jpg
Also, remove unused `expected` property in `css` test cases.Closesgh-4866
1 parente539bac commit482f846

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

‎test/data/testsuite.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ div#fx-tests div.noback {
113113
#nothiddendivchild.prct {font-size:150%; }
114114

115115
/* #9239 Attach a background to the body( avoid crashes in removing the test element in support ) */
116-
body,div {background:url(https://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif) no-repeat-1000px0; }
116+
body,div {background:url(1x1.jpg) no-repeat-1000px0; }
117117

118118
/* #10501 */
119119
section {background:#f0f;display:block; }

‎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
vardone=assert.async();
15581558
varstyles=[{
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)

[8]ページ先頭

©2009-2025 Movatter.jp