Tests: Clean up after the CSS Custom Properties support test

Ref bcec54ee72
Ref 619bf98d5b
This commit is contained in:
Michał Gołębiowski 2017-03-07 16:36:28 +01:00
parent bcec54ee72
commit fc34dbc271

View File

@ -1558,10 +1558,12 @@ QUnit.test( "Do not throw on frame elements from css method (#15098)", function(
( function() { ( function() {
var supportsCssVars, var supportsCssVars,
div = jQuery( "<div>" ).appendTo( "#qunit-fixture" )[ 0 ]; elem = jQuery( "<div>" ).appendTo( document.body ),
div = elem[ 0 ];
div.style.setProperty( "--prop", "value" ); div.style.setProperty( "--prop", "value" );
supportsCssVars = getComputedStyle( div ).getPropertyValue( "--prop" ); supportsCssVars = !!getComputedStyle( div ).getPropertyValue( "--prop" );
elem.remove();
QUnit[ supportsCssVars ? "test" : "skip" ]( "css(--customProperty)", function( assert ) { QUnit[ supportsCssVars ? "test" : "skip" ]( "css(--customProperty)", function( assert ) {
jQuery( "#qunit-fixture" ).append( jQuery( "#qunit-fixture" ).append(