blob: c5d6655c890b905896716d1de053dc11ed835251 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2012 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @path intl402/ch09/9.1/9.1.1_2_2.js
* @description Tests initialization of LocaleList object with duplicate language IDs.
*/
function testcase() {
"use strict";
var passed = false;
var list = new Intl.LocaleList(['sr-rs', 'sr-rs']);
if (list.length !== 1) {
$ERROR('Duplicates should be removed from the list.');
}
passed = true;
return passed;
}
runTestCase(testcase);
|