mw.loader.addSource(
'testloader',
- {
- loadScript: QUnit.fixurl( mw.config.get( 'wgScriptPath' ) + '/tests/qunit/data/load.mock.php' )
- }
+ QUnit.fixurl( mw.config.get( 'wgScriptPath' ) + '/tests/qunit/data/load.mock.php' )
);
QUnit.test( 'Initial check', 8, function ( assert ) {
// Confirm that mw.loader.load() works with protocol-relative URLs
target = target.replace( /https?:/, '' );
- assert.equal( target.substr( 0, 2 ), '//',
+ assert.equal( target.slice( 0, 2 ), '//',
'URL must be relative to test relative URLs!'
);