diff options
Diffstat (limited to 'test/suite/intl402/ch12/12.2/12.2.3.js')
-rw-r--r-- | test/suite/intl402/ch12/12.2/12.2.3.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/suite/intl402/ch12/12.2/12.2.3.js b/test/suite/intl402/ch12/12.2/12.2.3.js new file mode 100644 index 000000000..743353c52 --- /dev/null +++ b/test/suite/intl402/ch12/12.2/12.2.3.js @@ -0,0 +1,26 @@ +// Copyright 2012 Google Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @path intl402/ch12/12.2/12.2.3.js + * @description Tests the internal properties of Intl.NumberFormat + * @author: Roozbeh Pournader + */ + +var testcase = function() { + "use strict"; + + var defaultLocale = (new Intl.LocaleList())[0]; + var supportedLocales = Intl.NumberFormat.supportedLocalesOf([defaultLocale]); + + if (supportedLocales.length < 1 || supportedLocales[0] != defaultLocale) { + $ERROR('The default Locale is not supported by Intl.NumberFormat'); + } + + // FIXME: Find a way to check that [[relevantExtensionKeys]] === ['nu'] + + // FIXME: Find a way to check specified properties of [[localeData]] + + return true; +} +runTestCase(testcase); |