Content deleted Content added
. |
. |
||
Line 1,057:
) {
$.when(setupForTesting(), $.ready()).then(function() {
/*window.QUnit = {
config: {
autoStart: false,
}
};
mw.loader.using('jquery.qunit').then(function() {▼
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
|