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

Commit8d20cb9

Browse files
Krinklemgol
authored andcommitted
Tests: Switch background image from online file to local 1x1.jpg
Also, remove unused `expected` property in `css` test cases.Closesgh-4866(cherry picked from commit482f846)
1 parentb3e4a7e commit8d20cb9

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(http://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
@@ -1536,40 +1536,32 @@ QUnit.test(
15361536
vardone=assert.async();
15371537
varstyles=[{
15381538
name:"backgroundAttachment",
1539-
value:["fixed"],
1540-
expected:["scroll"]
1539+
value:["fixed"]
15411540
},{
15421541
name:"backgroundColor",
1543-
value:["rgb(255, 0, 0)","rgb(255,0,0)","#ff0000"],
1544-
expected:["transparent"]
1542+
value:["rgb(255, 0, 0)","rgb(255,0,0)","#ff0000"]
15451543
},{
15461544

15471545
// Firefox returns auto's value
15481546
name:"backgroundImage",
1549-
value:["url('test.png')","url("+baseURL+"test.png)","url(\""+baseURL+"test.png\")"],
1550-
expected:["none","url(\"http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif\")"]
1547+
value:["url('test.png')","url("+baseURL+"test.png)","url(\""+baseURL+"test.png\")"]
15511548
},{
15521549
name:"backgroundPosition",
1553-
value:["5% 5%"],
1554-
expected:["0% 0%","-1000px 0px","-1000px 0%"]
1550+
value:["5% 5%"]
15551551
},{
15561552

15571553
// Firefox returns no-repeat
15581554
name:"backgroundRepeat",
1559-
value:["repeat-y"],
1560-
expected:["repeat","no-repeat"]
1555+
value:["repeat-y"]
15611556
},{
15621557
name:"backgroundClip",
1563-
value:["padding-box"],
1564-
expected:["border-box"]
1558+
value:["padding-box"]
15651559
},{
15661560
name:"backgroundOrigin",
1567-
value:["content-box"],
1568-
expected:["padding-box"]
1561+
value:["content-box"]
15691562
},{
15701563
name:"backgroundSize",
1571-
value:["80px 60px"],
1572-
expected:["auto auto"]
1564+
value:["80px 60px"]
15731565
}];
15741566

15751567
jQuery.each(styles,function(index,style){
@@ -1578,8 +1570,6 @@ QUnit.test(
15781570
source=$source[0],
15791571
$children=$source.children();
15801572

1581-
style.expected=style.expected.concat(["","auto"]);
1582-
15831573
if(source.style[style.name]===undefined){
15841574
assert.ok(true,style.name+": style isn't supported and therefore not an issue");
15851575
assert.ok(true);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp