mediawiki.util: Remove outdated comment from unit test
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 22 Dec 2015 22:30:23 +0000 (14:30 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 22 Dec 2015 22:30:23 +0000 (14:30 -0800)
'wgArticlePath' is actually in the startup module, but that is irrelevant
since tests should (and do) mock these configs regardless of whether they
have defaults so that they work regardless of the wiki configuration.

Change-Id: I8b9321ed9f578b614f5d89fe8ab0ab6ad9f508f2

tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js

index 0b98106..5d72179 100644 (file)
        } );
 
        QUnit.test( 'getUrl', 12, function ( assert ) {
-               // Not part of startUp module
-               mw.config.set( 'wgArticlePath', '/wiki/$1' );
-               mw.config.set( 'wgPageName', 'Foobar' );
+               mw.config.set( {
+                       wgArticlePath: '/wiki/$1',
+                       wgPageName: 'Foobar'
+               } );
 
                var href = mw.util.getUrl( 'Sandbox' );
                assert.equal( href, '/wiki/Sandbox', 'simple title' );
 
        QUnit.test( 'wikiScript', 4, function ( assert ) {
                mw.config.set( {
-                       wgScript: '/w/i.php', // customized wgScript for bug 39103
-                       wgLoadScript: '/w/l.php', // customized wgLoadScript for bug 39103
+                       // customized wgScript for T41103
+                       wgScript: '/w/i.php',
+                       // customized wgLoadScript for T41103
+                       wgLoadScript: '/w/l.php',
                        wgScriptPath: '/w'
                } );