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

13 lines
307 B
JavaScript
Raw Normal View History

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 );
}
}
} );