Index: trunk/phase3/tests/qunit/suites/resources/mediawiki/mediawiki.js |
— | — | @@ -65,7 +65,9 @@ |
66 | 66 | ok( window.anotherGlobalMapChecker, 'new mw.Map( true ) did store its values in the global window object' ); |
67 | 67 | |
68 | 68 | // Whitelist this global variable for QUnit 'noglobal' mode |
69 | | - QUnit.config.pollution.push( 'anotherGlobalMapChecker' ); |
| 69 | + if ( QUnit.config.noglobals ) { |
| 70 | + QUnit.config.pollution.push( 'anotherGlobalMapChecker' ); |
| 71 | + } |
70 | 72 | }); |
71 | 73 | |
72 | 74 | test( 'mw.config', function(){ |