mediawiki-extensions-Revisi.../tests/qunit/QUnit.revisionSlider.testOrSkip.js
Thiemo Kreuz 4ac1ff57f1 Remove closure wrappers from all JavaScript code
These are not needed any more, because the code runs in a
seperate scope anyway.

Change-Id: I939a06102f194a0c98021accb2f62be73dd0562f
2020-11-18 11:16:04 +01:00

13 lines
307 B
JavaScript

QUnit.revisionSlider = {};
$.extend( QUnit.revisionSlider, {
// Helper function to add conditions to QUnit skip methods.
testOrSkip: function ( name, testCallback, skipCondition ) {
if ( skipCondition ) {
QUnit.skip( name, testCallback );
} else {
QUnit.test( name, testCallback );
}
}
} );