qunit: Remove mwlogenv feature
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 25 Apr 2015 01:09:07 +0000 (02:09 +0100)
committerKrinkle <krinklemail@gmail.com>
Sat, 25 Apr 2015 01:19:36 +0000 (01:19 +0000)
I added this in the JSTesting branch back in SVN (r107521, merged in
r107919 for MediaWiki 1.19.0).

It was mostly for debugging the setup/teardown in the branch. It never
had much practical use.

Change-Id: I8d6eb9e06ad070c23cb9c9041b5cf4143ee6ac0b

tests/qunit/data/testrunner.js

index 3dd2af6..7c3d699 100644 (file)
                mwTester = new CompletenessTest( mw, mwTestIgnore );
        }
 
-       /**
-        * Test environment recommended for all QUnit test modules
-        *
-        * Whether to log environment changes to the console
-        */
-       QUnit.config.urlConfig.push( 'mwlogenv' );
-
        /**
         * Reset mw.config and others to a fresh copy of the live config for each test(),
         * and restore it back to the live one afterwards.
         * </code>
         */
        QUnit.newMwEnvironment = ( function () {
-               var warn, error, log, liveConfig, liveMessages,
+               var warn, error, liveConfig, liveMessages,
                        ajaxRequests = [];
 
                liveConfig = mw.config.values;
                        ajaxRequests.push( { xhr: jqXHR, options: ajaxOptions } );
                }
 
-               log = QUnit.urlParams.mwlogenv ? mw.log : function () {};
-
                return function ( localEnv ) {
                        localEnv = $.extend( {
                                // QUnit
 
                        return {
                                setup: function () {
-                                       log( 'MwEnvironment> SETUP    for "' + QUnit.config.current.module
-                                               + ': ' + QUnit.config.current.testName + '"' );
 
                                        // Greetings, mock environment!
                                        mw.config.values = freshConfigCopy( localEnv.config );
 
                                teardown: function () {
                                        var timers, active;
-                                       log( 'MwEnvironment> TEARDOWN for "' + QUnit.config.current.module
-                                               + ': ' + QUnit.config.current.testName + '"' );
 
                                        localEnv.teardown.call( this );