mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
Add test for dropped language name
This commit is contained in:
parent
83781fd380
commit
94e2478a10
1 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,12 @@ test('if an unsupported language is dropped onto the set language block, use def
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('if a supported language name is dropped onto the set language block, use it', t => {
|
||||
ext.setLanguage({LANGUAGE: 'español'});
|
||||
t.strictEqual(ext.getCurrentLanguage(), 'es');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('get the extension locale for a supported locale that differs', t => {
|
||||
ext.setLanguage({LANGUAGE: 'ja-hira'});
|
||||
t.strictEqual(ext.getCurrentLanguage(), 'ja');
|
||||
|
|
Loading…
Reference in a new issue