aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r--test/unit/effects.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index f71eafb62..ba11eabf5 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -221,8 +221,11 @@ supportjQuery.each( hideOptions, function( type, setup ) {
assert.expectJqData( this, $span, "olddisplay" );
} );
- QUnit[ document.body.attachShadow ? "test" : "skip" ](
- "Persist correct display value - " + type + " hidden, shadow child", function( assert ) {
+ QUnit[
+ document.body.attachShadow && document.body.getRootNode ?
+ "test" :
+ "skip"
+ ]( "Persist correct display value - " + type + " hidden, shadow child", function( assert ) {
assert.expect( 3 );
jQuery( "<div id='shadowHost'></div>" ).appendTo( "#qunit-fixture" );