assert.equal( $div.css( "letter-spacing" ), "2px", "Do not append px to 'letter-spacing'" );
} );
-QUnit.test( "Append px to whitelisted properties", function( assert ) {
+QUnit.test( "Append px to allowlisted properties", function( assert ) {
var prop,
$div = jQuery( "<div>" ).appendTo( "#qunit-fixture" ),
- whitelist = {
+ allowlist = {
margin: "marginTop",
marginTop: undefined,
marginRight: undefined,
borderLeftWidth: undefined
};
- assert.expect( ( Object.keys( whitelist ).length ) * 2 );
+ assert.expect( ( Object.keys( allowlist ).length ) * 2 );
- for ( prop in whitelist ) {
- var propToCheck = whitelist[ prop ] || prop,
+ for ( prop in allowlist ) {
+ var propToCheck = allowlist[ prop ] || prop,
kebabProp = prop.replace( /[A-Z]/g, function( match ) {
return "-" + match.toLowerCase();
} ),