Skip to content

Commit

Permalink
Tests: Clean up after the CSS Custom Properties support test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol committed Mar 7, 2017
1 parent bcec54e commit fc34dbc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/unit/css.js
Expand Up @@ -1558,10 +1558,12 @@ QUnit.test( "Do not throw on frame elements from css method (#15098)", function(

( function() {
var supportsCssVars,
div = jQuery( "<div>" ).appendTo( "#qunit-fixture" )[ 0 ];
elem = jQuery( "<div>" ).appendTo( document.body ),
div = elem[ 0 ];

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 ) {
jQuery( "#qunit-fixture" ).append(
Expand Down

0 comments on commit fc34dbc

Please sign in to comment.