Merge "maintenance: Script to rename titles for Unicode uppercasing changes"
[lhc/web/wiklou.git] / includes / specials / SpecialJavaScriptTest.php
index 87bd2ed..3e9676c 100644 (file)
@@ -120,6 +120,12 @@ class SpecialJavaScriptTest extends SpecialPage {
                $code = $rl->makeModuleResponse( $startupContext, [
                        'startup' => $rl->getModule( 'startup' ),
                ] );
+               $code .= <<<JAVASCRIPT
+       // Disable module storage.
+       // The unit test for mw.loader.store will enable it
+       // explicitly with a mock timer.
+       mw.loader.store.enabled = false;
+JAVASCRIPT;
                // The following has to be deferred via RLQ because the startup module is asynchronous.
                $code .= ResourceLoader::makeLoaderConditionalScript(
                        // Embed page-specific mw.config variables.
@@ -168,7 +174,7 @@ JAVASCRIPT
                // load before qunit/export.
                $scripts = $out->makeResourceLoaderLink( 'jquery.qunit',
                        ResourceLoaderModule::TYPE_SCRIPTS,
-                       [ 'raw' => true, 'sync' => true ]
+                       [ 'raw' => '1', 'sync' => '1' ]
                );
 
                $head = implode( "\n", [ $styles, $scripts ] );