'jquery.foo,bar|jquery.ui.baz,quux',
],
[
- 'Regression fixed in r88706 with dotless names',
+ 'Regression fixed in r87497 (7fee86c38e) with dotless names',
[ 'foo', 'bar', 'baz' ],
'foo,bar,baz',
],
*/
header( 'Content-Type: text/javascript; charset=utf-8' );
-require_once __DIR__ . '/../../../includes/json/FormatJson.php';
-require_once __DIR__ . '/../../../includes/Xml.php';
-
$moduleImplementations = [
'testUsesMissing' => "
mw.loader.implement( 'testUsesMissing', function () {
if ( isset( $moduleImplementations[$module] ) ) {
$response .= $moduleImplementations[$module];
} else {
- $response .= Xml::encodeJsCall( 'mw.loader.state', [ $module, 'missing' ], true );
+ $response .= 'mw.loader.state(' . json_encode( $module ) . ', "missing" );' . "\n";
}
}
}