aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2018-07-30 18:41:08 +0200
committerGitHub <noreply@github.com>2018-07-30 18:41:08 +0200
commitae82e85e64b0a06d585934d8f2d2859ce3e755b6 (patch)
tree551106edbcad0e6a4f49260c0406699bd117e03d /test
parent063c1f2ca35eda780d84bb5d9f77ab3f5942f687 (diff)
downloadjquery-ae82e85e64b0a06d585934d8f2d2859ce3e755b6.tar.gz
jquery-ae82e85e64b0a06d585934d8f2d2859ce3e755b6.zip
Tests: Skip module tests in Edge
Edge sometimes doesn't execute module scripts. It needs to be investigated why but for now, we're skipping the test to make our tests more stable. Closes gh-4140
Diffstat (limited to 'test')
-rw-r--r--test/unit/manipulation.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 28a62fe0b..ddb04c7d6 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -1797,7 +1797,13 @@ QUnit.test( "html(Function)", function( assert ) {
testHtml( manipulationFunctionReturningObj, assert );
} );
-QUnit[ QUnit.moduleTypeSupported ? "test" : "skip" ]( "html(script type module)", function( assert ) {
+QUnit[
+ // Support: Edge 16-17
+ // Edge sometimes doesn't execute module scripts so skip the test there.
+ ( QUnit.moduleTypeSupported && !/edge\//i.test( navigator.userAgent ) ) ?
+ "test" :
+ "skip"
+]( "html(script type module)", function( assert ) {
assert.expect( 4 );
var done = assert.async(),
$fixture = jQuery( "#qunit-fixture" );