mediawiki-extensions-Revisi.../tests/qunit/QUnit.revisionSlider.testOrSkip.js

13 lines
312 B
JavaScript
Raw Normal View History

QUnit.revisionSlider = {};
Object.assign( 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 );
}
}
} );