Disable the biggest JS modifier test cases temporarily

Bug: T303074
Change-Id: I9bd284feb4ede27aadf99904fd230d9bfd778351
This commit is contained in:
Bartosz Dziewoński 2022-03-04 21:07:18 +01:00
parent 6b7ea63d24
commit 0030f4cb9b

View file

@ -8,6 +8,17 @@ QUnit.module( 'mw.dt.modifier', QUnit.newMwEnvironment() );
require( '../cases/modified.json' ).forEach( function ( caseItem, i ) {
// This should be one test with many cases, rather than multiple tests, but the cases are large
// enough that processing all of them at once causes timeouts in Karma test runner.
// FIXME: Actually, even single test cases cause timeouts now. Skip the slowest ones.
var tooBig = [
'enwiki oldparser',
'enwiki parsoid',
'enwiki oldparser (bullet indentation)',
'enwiki parsoid (bullet indentation)'
];
if ( tooBig.indexOf( caseItem.name ) !== -1 ) {
QUnit.skip( '#addListItem/#removeAddedListItem case ' + i );
return;
}
QUnit.test( '#addListItem/#removeAddedListItem case ' + i, function ( assert ) {
var fixture = document.getElementById( 'qunit-fixture' );