From: Krinkle Date: Sun, 29 May 2011 04:19:51 +0000 (+0000) Subject: Only whitelist it if QUnit is in that mode though (bug in QUnit?), caused it to repor... X-Git-Tag: 1.31.0-rc.0~29873 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=22752d8796515682a03e34e0d62ccdc4a9069556;p=lhc%2Fweb%2Fwiklou.git Only whitelist it if QUnit is in that mode though (bug in QUnit?), caused it to report an error if not in noglobals mode. (Follow-up r89085) --- diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.js b/tests/qunit/suites/resources/mediawiki/mediawiki.js index c2a6af5c37..2b00088624 100644 --- a/tests/qunit/suites/resources/mediawiki/mediawiki.js +++ b/tests/qunit/suites/resources/mediawiki/mediawiki.js @@ -65,7 +65,9 @@ test( 'mw.Map', function(){ ok( window.anotherGlobalMapChecker, 'new mw.Map( true ) did store its values in the global window object' ); // Whitelist this global variable for QUnit 'noglobal' mode - QUnit.config.pollution.push( 'anotherGlobalMapChecker' ); + if ( QUnit.config.noglobals ) { + QUnit.config.pollution.push( 'anotherGlobalMapChecker' ); + } }); test( 'mw.config', function(){