From 9f4f99ce2bf020daa98d4d7e9f476d170ce1acb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 23 Oct 2023 13:18:58 +0300 Subject: [PATCH] Remove broken QUnit test Bug: T349485 Change-Id: I52b27610c7f753b56e44ed920f1228e716752a7c --- tests/qunit/ext.uls.tests.js | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/tests/qunit/ext.uls.tests.js b/tests/qunit/ext.uls.tests.js index e6bc95d4..abf57029 100644 --- a/tests/qunit/ext.uls.tests.js +++ b/tests/qunit/ext.uls.tests.js @@ -33,42 +33,6 @@ assert.strictEqual( $.uls.data.getDir( 'als' ), 'ltr', 'The direction of custom MW language als is ltr.' ); } ); - QUnit.test( 'User preferences', function ( assert ) { - var prefName, prefs, prefsToSave, readPrefs, done; - - // 'gofanim' means "fonts" in Hebrew. - // Here it's used as a meaningless word, to test - // the preferences without changing anything useful. - prefName = 'gofanim'; - prefs = require( 'ext.uls.preferences' )(); - prefsToSave = {}; - - prefsToSave[ prefName ] = { - fonts: { - qqy: 'Megafont' - } - }; - - prefs.set( prefName, prefsToSave ); - - readPrefs = prefs.get( prefName ); - assert.strictEqual( - readPrefs[ prefName ].fonts.qqy, - 'Megafont', - 'Correct value for the font name' - ); - - done = assert.async(); - prefs.save( function ( successSave ) { - assert.true( successSave, 'Options saving API did not produce an error.' ); - // Delete old options - prefs.set( prefName, undefined ); - prefs.save( function () { - done(); - } ); - } ); - } ); - QUnit.test( 'Common languages', function ( assert ) { var i, foundTagalog, languagesInPH;