Debian Codegraph @

js/src/tests/test262/intl402/default-locale-is-canonicalized.js

raw
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 es5id: 6.2.4
6 description: >
7 Tests that the default locale is a String value representing the
8 structurally valid and canonicalized BCP 47 language tag.
9 author: Norbert Lindenberg
10 includes: [testIntl.js]
11 ---*/
12
13 testWithIntlConstructors(function (Constructor) {
14 var defaultLocale = new Constructor().resolvedOptions().locale;
15 assert(isCanonicalizedStructurallyValidLanguageTag(defaultLocale), "Default locale \"" + defaultLocale + "\" is not canonicalized and structurally valid language tag.");
16 });
17
18 reportCompare(0, 0);