From 233b69ccbf721345473f0fb69976de163b98b6e9 Mon Sep 17 00:00:00 2001 From: Tobias Gritschacher Date: Tue, 20 Dec 2016 14:44:56 +0100 Subject: [PATCH] Check if QUnit tests are language-setting-proof Change-Id: I6ed0cc013db676a587f734c1f35f117525405db7 --- tests/qunit/RevisionSlider.RevisionListView.test.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/qunit/RevisionSlider.RevisionListView.test.js b/tests/qunit/RevisionSlider.RevisionListView.test.js index 9e405005..5578b6fd 100644 --- a/tests/qunit/RevisionSlider.RevisionListView.test.js +++ b/tests/qunit/RevisionSlider.RevisionListView.test.js @@ -167,24 +167,18 @@ QUnit.test( 'big change number is formatted correctly', function ( assert ) { var revisionListView = new RevisionListView(), - originalUserLangSetting = mw.config.get( 'wgUserLanguage' ), $changeSizeLineHtml; - mw.config.set( 'wgUserLanguage', 'en' ); $changeSizeLineHtml = revisionListView.makeChangeSizeLine( 1000 ); - mw.config.set( 'wgUserLanguage', originalUserLangSetting ); assert.equal( $changeSizeLineHtml.find( '.mw-revslider-change-positive' ).text(), '+1,000' ); } ); QUnit.test( 'page size is formatted correctly', function ( assert ) { var revisionListView = new RevisionListView(), - originalUserLangSetting = mw.config.get( 'wgUserLanguage' ), $pageSizeLineHtml; - mw.config.set( 'wgUserLanguage', 'en' ); $pageSizeLineHtml = revisionListView.makePageSizeLine( 1337 ); - mw.config.set( 'wgUserLanguage', originalUserLangSetting ); assert.ok( $pageSizeLineHtml.text().match( /1,337/ ) ); } );