From 8cf63587715727442702183ac72bdb4252b84c1b Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 16 Dec 2016 16:55:33 -0800 Subject: [PATCH] tests: Fix broken setup/teardown in mediawiki.language.test.js Ref T152476. Change-Id: Ie871d36dadefd69d0a5dc85c275b55d4d477dc78 --- .../suites/resources/mediawiki/mediawiki.language.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.language.test.js b/tests/qunit/suites/resources/mediawiki/mediawiki.language.test.js index b2fac3c941..2171f34b40 100644 --- a/tests/qunit/suites/resources/mediawiki/mediawiki.language.test.js +++ b/tests/qunit/suites/resources/mediawiki/mediawiki.language.test.js @@ -3,11 +3,11 @@ QUnit.module( 'mediawiki.language', QUnit.newMwEnvironment( { setup: function () { - this.liveLangData = mw.language.data.values; - mw.language.data.values = $.extend( true, {}, this.liveLangData ); + this.liveLangData = mw.language.data; + mw.language.data = {}; }, teardown: function () { - mw.language.data.values = this.liveLangData; + mw.language.data = this.liveLangData; }, messages: { // mw.language.listToText test -- 2.20.1