mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-23 20:23:05 +00:00
4ac1ff57f1
These are not needed any more, because the code runs in a seperate scope anyway. Change-Id: I939a06102f194a0c98021accb2f62be73dd0562f
13 lines
307 B
JavaScript
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 );
|
|
}
|
|
}
|
|
} );
|