User:Evad37/Covery/sandbox.js: Difference between revisions

Content deleted Content added
.
.
Line 1,057:
) {
$.when(setupForTesting(), $.ready()).then(function() {
/*window.QUnit = {
config: {
autoStart: false,
}
};
QUnit.start();*/
mw.loader.using('jquery.qunit').then(function() {
var QUnit.start()loadQunit;
try QUnit.start();{
loadQunit = mw.loader.using('jquery.qunit').then(function() {
} QUnit.startcatch(e); {
console.log('error while loading QUnit');
console.log(e)
}
loadQunit.then(function() {
QUnit.start();
QUnit.module('Get parameters from a template');
QUnit.test('Single unnamed param', function(assert) {
Line 1,093 ⟶ 1,100:
});
QUnit.start();
QUnit.test('Two unnamed params', function(assert) {
var params1 = getTemplateParameters('|one|two');
Line 1,137 ⟶ 1,143:
});
QUnit.start();
QUnit.test('Single named param', function(assert) {
var params1 = getTemplateParameters('|a=apple');
Line 1,744 ⟶ 1,749:
assert.equal(description, expected, 'Two platforms');
});
QUnit.start();
}); // end of "get script QUnit"
}); // end of "when set up for testing" callback