blob: f96aa7735044fabc24de6f83245f23617a26dcc6 (
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_1.js
* @description Tests initialization of LocaleList object with an empty list.
*/
function testcase() {
"use strict";
var passed = false;
var list = new Intl.LocaleList([]);
if (list.length !== 0) {
$ERROR('LocaleList constructed with empty list should have 0 elements.');
}
passed = true;
return passed;
}
runTestCase(testcase);
|