mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
This commit is contained in:
parent
063c1f2ca3
commit
ae82e85e64
@ -1797,7 +1797,13 @@ QUnit.test( "html(Function)", function( assert ) {
|
|||||||
testHtml( manipulationFunctionReturningObj, 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 );
|
assert.expect( 4 );
|
||||||
var done = assert.async(),
|
var done = assert.async(),
|
||||||
$fixture = jQuery( "#qunit-fixture" );
|
$fixture = jQuery( "#qunit-fixture" );
|
||||||
|
Loading…
Reference in New Issue
Block a user