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

Commit2b97b6b

Browse files
authored
Tests: Use allowlist instead of whitelist
Closesgh-5420
1 parentc21c6f4 commit2b97b6b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎test/unit/css.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,10 +1278,10 @@ QUnit.test( "Do not append px to most properties not accepting integer values",
12781278
assert.equal($div.css("letter-spacing"),"2px","Do not append px to 'letter-spacing'");
12791279
});
12801280

1281-
QUnit.test("Append px towhitelisted properties",function(assert){
1281+
QUnit.test("Append px toallowlisted properties",function(assert){
12821282
varprop,
12831283
$div=jQuery("<div>").appendTo("#qunit-fixture"),
1284-
whitelist={
1284+
allowlist={
12851285
margin:"marginTop",
12861286
marginTop:undefined,
12871287
marginRight:undefined,
@@ -1314,10 +1314,10 @@ QUnit.test( "Append px to whitelisted properties", function( assert ) {
13141314
borderLeftWidth:undefined
13151315
};
13161316

1317-
assert.expect((Object.keys(whitelist).length)*2);
1317+
assert.expect((Object.keys(allowlist).length)*2);
13181318

1319-
for(propinwhitelist){
1320-
varpropToCheck=whitelist[prop]||prop,
1319+
for(propinallowlist){
1320+
varpropToCheck=allowlist[prop]||prop,
13211321
kebabProp=prop.replace(/[A-Z]/g,function(match){
13221322
return"-"+match.toLowerCase();
13231323
}),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp