From 2a74f0ec1b671f15fc7df3e1e294a65abc8ebac8 Mon Sep 17 00:00:00 2001 From: Brian Terlson Date: Fri, 5 Dec 2014 15:50:00 -0800 Subject: Reorganize ./test --- test/intl402/11.1.1_6.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/intl402/11.1.1_6.js (limited to 'test/intl402/11.1.1_6.js') diff --git a/test/intl402/11.1.1_6.js b/test/intl402/11.1.1_6.js new file mode 100644 index 000000000..c6d9b7f10 --- /dev/null +++ b/test/intl402/11.1.1_6.js @@ -0,0 +1,18 @@ +// Copyright 2012 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 11.1.1_6 +description: > + Tests that the behavior of a Record is not affected by + adversarial changes to Object.prototype. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ + +taintProperties(["localeMatcher"]); + +var locale = new Intl.NumberFormat(undefined, {localeMatcher: "lookup"}).resolvedOptions().locale; +if (!isCanonicalizedStructurallyValidLanguageTag(locale)) { + $ERROR("NumberFormat returns invalid locale " + locale + "."); +} -- cgit v1.2.1