Remove broken QUnit test
Bug: T349485 Change-Id: I52b27610c7f753b56e44ed920f1228e716752a7c
This commit is contained in:
committed by
jenkins-bot
parent
90d191ff7c
commit
9f4f99ce2b
@@ -33,42 +33,6 @@
|
|||||||
assert.strictEqual( $.uls.data.getDir( 'als' ), 'ltr', 'The direction of custom MW language als is ltr.' );
|
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 ) {
|
QUnit.test( 'Common languages', function ( assert ) {
|
||||||
var i, foundTagalog, languagesInPH;
|
var i, foundTagalog, languagesInPH;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user