mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-11 06:56:09 +00:00
e62f46dd80
Bug: T208951 Change-Id: Icf10ea6bbc09542e69c0cd583a4ee4f2f76a3f43
15 lines
341 B
JavaScript
15 lines
341 B
JavaScript
( 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 );
|
|
}
|
|
}
|
|
} );
|
|
}() );
|