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

15 lines
352 B
JavaScript
Raw Normal View History

( function ( $ ) {
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 );
}
}
} );
}( jQuery ) );