js/src/tests/test262/intl402/ch09/9.2/9.2.1_2.js

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:23fe829650ed
1 // Copyright 2012 Mozilla Corporation. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /**
5 * @description Tests that the behavior of a List is not affected by adversarial
6 * changes to Array.prototype.
7 * @author Norbert Lindenberg
8 */
9
10 $INCLUDE("testIntl.js");
11
12 taintArray();
13
14 testWithIntlConstructors(function (Constructor) {
15 var defaultLocale = new Constructor().resolvedOptions().locale;
16 var canonicalized = Constructor.supportedLocalesOf([defaultLocale, defaultLocale]);
17 if (canonicalized.length > 1) {
18 $ERROR("Canonicalization didn't remove duplicate language tags from locale list.");
19 }
20 });
21

mercurial