diff options
Diffstat (limited to 'test/suite/intl402')
153 files changed, 972 insertions, 1064 deletions
diff --git a/test/suite/intl402/ch06/6.2/6.2.2_a.js b/test/suite/intl402/ch06/6.2/6.2.2_a.js index a56894570..af6d867d0 100644 --- a/test/suite/intl402/ch06/6.2/6.2.2_a.js +++ b/test/suite/intl402/ch06/6.2/6.2.2_a.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that structurally valid language tags are accepted. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that structurally valid language tags are accepted. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var validLanguageTags = [ "de", // ISO 639 language code @@ -37,4 +36,3 @@ testWithIntlConstructors(function (Constructor) { }); return true; }); - diff --git a/test/suite/intl402/ch06/6.2/6.2.2_b.js b/test/suite/intl402/ch06/6.2/6.2.2_b.js index 42d69e7c2..8b6f4f9ef 100644 --- a/test/suite/intl402/ch06/6.2/6.2.2_b.js +++ b/test/suite/intl402/ch06/6.2/6.2.2_b.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that language tags with "_" are not accepted. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that language tags with "_" are not accepted. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var invalidLanguageTags = [ "de_DE", @@ -38,4 +37,3 @@ testWithIntlConstructors(function (Constructor) { }); return true; }); - diff --git a/test/suite/intl402/ch06/6.2/6.2.2_c.js b/test/suite/intl402/ch06/6.2/6.2.2_c.js index 6d669ebef..e7569e178 100644 --- a/test/suite/intl402/ch06/6.2/6.2.2_c.js +++ b/test/suite/intl402/ch06/6.2/6.2.2_c.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that language tags with invalid subtag sequences are not accepted. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that language tags with invalid subtag sequences are not + accepted. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var invalidLanguageTags = [ "", // empty tag @@ -44,4 +45,3 @@ testWithIntlConstructors(function (Constructor) { }); return true; }); - diff --git a/test/suite/intl402/ch06/6.2/6.2.3.js b/test/suite/intl402/ch06/6.2/6.2.3.js index 4ae15ab27..a94e6463a 100644 --- a/test/suite/intl402/ch06/6.2/6.2.3.js +++ b/test/suite/intl402/ch06/6.2/6.2.3.js @@ -2,12 +2,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that language tags are canonicalized in return values. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that language tags are canonicalized in return values. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var canonicalizedTags = { "de": ["de"], @@ -66,4 +65,3 @@ testWithIntlConstructors(function (Constructor) { }); return true; }); - diff --git a/test/suite/intl402/ch06/6.2/6.2.4.js b/test/suite/intl402/ch06/6.2/6.2.4.js index 6ca47af14..93c4f047d 100644 --- a/test/suite/intl402/ch06/6.2/6.2.4.js +++ b/test/suite/intl402/ch06/6.2/6.2.4.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the default locale is a String value representing the - * structurally valid and canonicalized BCP 47 language tag. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the default locale is a String value representing the + structurally valid and canonicalized BCP 47 language tag. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var defaultLocale = new Constructor().resolvedOptions().locale; @@ -16,4 +16,3 @@ testWithIntlConstructors(function (Constructor) { } return true; }); - diff --git a/test/suite/intl402/ch06/6.3/6.3.1_a.js b/test/suite/intl402/ch06/6.3/6.3.1_a.js index 01cc18b03..b74d53e07 100644 --- a/test/suite/intl402/ch06/6.3/6.3.1_a.js +++ b/test/suite/intl402/ch06/6.3/6.3.1_a.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that well-formed currency codes are accepted. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that well-formed currency codes are accepted. +author: Norbert Lindenberg +---*/ var wellFormedCurrencyCodes = [ "BOB", @@ -22,4 +22,3 @@ wellFormedCurrencyCodes.forEach(function (code) { format.resolvedOptions().currency + "."); } }); - diff --git a/test/suite/intl402/ch06/6.3/6.3.1_b.js b/test/suite/intl402/ch06/6.3/6.3.1_b.js index 038dd1fc4..40542831d 100644 --- a/test/suite/intl402/ch06/6.3/6.3.1_b.js +++ b/test/suite/intl402/ch06/6.3/6.3.1_b.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that invalid currency codes are not accepted. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that invalid currency codes are not accepted. +author: Norbert Lindenberg +---*/ var invalidCurrencyCodes = [ "", @@ -32,4 +32,3 @@ invalidCurrencyCodes.forEach(function (code) { $ERROR("Invalid currency code '" + code + "' was rejected with wrong error " + error.name + "."); } }); - diff --git a/test/suite/intl402/ch06/6.4/6.4_a.js b/test/suite/intl402/ch06/6.4/6.4_a.js index 05202353c..20cb6c3c8 100644 --- a/test/suite/intl402/ch06/6.4/6.4_a.js +++ b/test/suite/intl402/ch06/6.4/6.4_a.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that valid time zone names are accepted. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that valid time zone names are accepted. +author: Norbert Lindenberg +---*/ var validTimeZoneNames = [ "UTC", @@ -19,4 +19,3 @@ validTimeZoneNames.forEach(function (name) { format.resolvedOptions().timeZone + "."); } }); - diff --git a/test/suite/intl402/ch06/6.4/6.4_b.js b/test/suite/intl402/ch06/6.4/6.4_b.js index 847d804e3..a3f7d8f21 100644 --- a/test/suite/intl402/ch06/6.4/6.4_b.js +++ b/test/suite/intl402/ch06/6.4/6.4_b.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that invalid time zone names are not accepted. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that invalid time zone names are not accepted. +author: Norbert Lindenberg +---*/ var invalidTimeZoneNames = [ "", @@ -31,4 +31,3 @@ invalidTimeZoneNames.forEach(function (name) { $ERROR("Invalid time zone name " + name + " was rejected with wrong error " + error.name + "."); } }); - diff --git a/test/suite/intl402/ch06/6.4/6.4_c.js b/test/suite/intl402/ch06/6.4/6.4_c.js index a9969b648..6d5e5502d 100644 --- a/test/suite/intl402/ch06/6.4/6.4_c.js +++ b/test/suite/intl402/ch06/6.4/6.4_c.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that additional time zone names, if accepted, are handled correctly. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that additional time zone names, if accepted, are handled + correctly. +author: Norbert Lindenberg +---*/ // canonicalization specified in conformance clause var additionalTimeZoneNames = { @@ -33,4 +35,3 @@ Object.getOwnPropertyNames(additionalTimeZoneNames).forEach(function (name) { $ERROR("Time zone name " + name + " was rejected with wrong error " + error.name + "."); } }); - diff --git a/test/suite/intl402/ch08/8.0/8.0.js b/test/suite/intl402/ch08/8.0/8.0.js index dedda973b..be395a4cb 100644 --- a/test/suite/intl402/ch08/8.0/8.0.js +++ b/test/suite/intl402/ch08/8.0/8.0.js @@ -1,12 +1,11 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl has Object.prototype as its prototype. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that Intl has Object.prototype as its prototype. +author: Norbert Lindenberg +---*/ if (Object.getPrototypeOf(Intl) !== Object.prototype) { $ERROR("Intl doesn't have Object.prototype as its prototype."); } - diff --git a/test/suite/intl402/ch08/8.0/8.0_L15.js b/test/suite/intl402/ch08/8.0/8.0_L15.js index 0174bef54..817d053dc 100644 --- a/test/suite/intl402/ch08/8.0/8.0_L15.js +++ b/test/suite/intl402/ch08/8.0/8.0_L15.js @@ -1,15 +1,16 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl meets the requirements for built-in objects + defined by the introduction of chapter 15 of the ECMAScript + Language Specification. +author: Norbert Lindenberg +includes: + - fnGlobalObject.js + - testBuiltInObject.js +---*/ testBuiltInObject(fnGlobalObject().Intl, false, false, []); testBuiltInObject(Intl, false, false, ["Collator", "NumberFormat", "DateTimeFormat"]); - diff --git a/test/suite/intl402/ch09/9.1/9.1_a.js b/test/suite/intl402/ch09/9.1/9.1_a.js index b7358304b..dd45f3faf 100644 --- a/test/suite/intl402/ch09/9.1/9.1_a.js +++ b/test/suite/intl402/ch09/9.1/9.1_a.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that default locale is available. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that default locale is available. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var defaultLocale = new Constructor().resolvedOptions().locale; @@ -15,4 +14,3 @@ testWithIntlConstructors(function (Constructor) { $ERROR("Default locale is not reported as available."); } }); - diff --git a/test/suite/intl402/ch09/9.1/9.1_b.js b/test/suite/intl402/ch09/9.1/9.1_b.js index a0abc7fc1..1dbf8eed2 100644 --- a/test/suite/intl402/ch09/9.1/9.1_b.js +++ b/test/suite/intl402/ch09/9.1/9.1_b.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that appropriate fallback locales are provided for - * supported locales. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that appropriate fallback locales are provided for + supported locales. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var info = getLocaleSupportInfo(Constructor); @@ -29,4 +29,3 @@ testWithIntlConstructors(function (Constructor) { } }); }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.1_1.js b/test/suite/intl402/ch09/9.2/9.2.1_1.js index 7386fdeda..d5d0856bf 100644 --- a/test/suite/intl402/ch09/9.2/9.2.1_1.js +++ b/test/suite/intl402/ch09/9.2/9.2.1_1.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that canonicalization of locale lists treats undefined and empty lists the same. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that canonicalization of locale lists treats undefined and + empty lists the same. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var supportedForUndefined = Constructor.supportedLocalesOf(undefined); @@ -20,4 +21,3 @@ testWithIntlConstructors(function (Constructor) { } return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.1_2.js b/test/suite/intl402/ch09/9.2/9.2.1_2.js index e4fb3756d..666351c21 100644 --- a/test/suite/intl402/ch09/9.2/9.2.1_2.js +++ b/test/suite/intl402/ch09/9.2/9.2.1_2.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the behavior of a List is not affected by adversarial - * changes to Array.prototype. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the behavior of a List is not affected by adversarial + changes to Array.prototype. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintArray(); @@ -18,4 +18,3 @@ testWithIntlConstructors(function (Constructor) { $ERROR("Canonicalization didn't remove duplicate language tags from locale list."); } }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.1_3.js b/test/suite/intl402/ch09/9.2/9.2.1_3.js index e403b1765..5de59a302 100644 --- a/test/suite/intl402/ch09/9.2/9.2.1_3.js +++ b/test/suite/intl402/ch09/9.2/9.2.1_3.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that a single string instead of a locale list is treated - * as the locale list containing that string. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that a single string instead of a locale list is treated as + the locale list containing that string. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var validAndInvalidLanguageTags = [ "de", // ISO 639 language code @@ -84,4 +84,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.1_4.js b/test/suite/intl402/ch09/9.2/9.2.1_4.js index b9bb9db79..4842b6f8a 100644 --- a/test/suite/intl402/ch09/9.2/9.2.1_4.js +++ b/test/suite/intl402/ch09/9.2/9.2.1_4.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that non-objects are converted to objects before canonicalization. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that non-objects are converted to objects before + canonicalization. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { // undefined is handled separately @@ -43,4 +44,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.1_8_c_ii.js b/test/suite/intl402/ch09/9.2/9.2.1_8_c_ii.js index 8dfb9b7b3..fe8d031dc 100644 --- a/test/suite/intl402/ch09/9.2/9.2.1_8_c_ii.js +++ b/test/suite/intl402/ch09/9.2/9.2.1_8_c_ii.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that values other than strings are not accepted as locales. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that values other than strings are not accepted as locales. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var notStringOrObject = [undefined, null, true, false, 0, 5, -5, NaN]; @@ -27,4 +26,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.1_8_c_vi.js b/test/suite/intl402/ch09/9.2/9.2.1_8_c_vi.js index ef78fa97b..b7c978af6 100644 --- a/test/suite/intl402/ch09/9.2/9.2.1_8_c_vi.js +++ b/test/suite/intl402/ch09/9.2/9.2.1_8_c_vi.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that canonicalization of locale lists removes duplicate language tags. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that canonicalization of locale lists removes duplicate + language tags. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var defaultLocale = new Constructor().resolvedOptions().locale; @@ -15,4 +16,3 @@ testWithIntlConstructors(function (Constructor) { $ERROR("Canonicalization didn't remove duplicate language tags from locale list."); } }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.2.js b/test/suite/intl402/ch09/9.2/9.2.2.js index cb74eaad2..6634dd0ee 100644 --- a/test/suite/intl402/ch09/9.2/9.2.2.js +++ b/test/suite/intl402/ch09/9.2/9.2.2.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that locales that are reported by resolvedOptions - * are also reported by supportedLocalesOf. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that locales that are reported by resolvedOptions are also + reported by supportedLocalesOf. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var info = getLocaleSupportInfo(Constructor); @@ -42,4 +42,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.3_5.js b/test/suite/intl402/ch09/9.2/9.2.3_5.js index 8ae8a216b..a6c8eb761 100644 --- a/test/suite/intl402/ch09/9.2/9.2.3_5.js +++ b/test/suite/intl402/ch09/9.2/9.2.3_5.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the behavior of a Record is not affected by adversarial - * changes to Object.prototype. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the behavior of a Record is not affected by + adversarial changes to Object.prototype. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintProperties(["locale", "extension", "extensionIndex"]); @@ -19,4 +19,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.5_11_g_ii_2.js b/test/suite/intl402/ch09/9.2/9.2.5_11_g_ii_2.js index d4213d2da..baf7cb10f 100644 --- a/test/suite/intl402/ch09/9.2/9.2.5_11_g_ii_2.js +++ b/test/suite/intl402/ch09/9.2/9.2.5_11_g_ii_2.js @@ -2,11 +2,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that missing Unicode extension values default to true for - * boolean keys. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that missing Unicode extension values default to true for + boolean keys. +author: Norbert Lindenberg +---*/ var extensions = ["-u-co-phonebk-kn", "-u-kn-co-phonebk"]; extensions.forEach(function (extension) { @@ -23,4 +24,3 @@ extensions.forEach(function (extension) { } } }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.5_6.js b/test/suite/intl402/ch09/9.2/9.2.5_6.js index 4bc904ee1..9f82e7f21 100644 --- a/test/suite/intl402/ch09/9.2/9.2.5_6.js +++ b/test/suite/intl402/ch09/9.2/9.2.5_6.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the behavior of a Record is not affected by adversarial - * changes to Object.prototype. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the behavior of a Record is not affected by + adversarial changes to Object.prototype. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintProperties(["dataLocale", "nu", "ca", "co", "locale"]); @@ -19,4 +19,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.6_2.js b/test/suite/intl402/ch09/9.2/9.2.6_2.js index 8d4f7efa9..a863ec1ce 100644 --- a/test/suite/intl402/ch09/9.2/9.2.6_2.js +++ b/test/suite/intl402/ch09/9.2/9.2.6_2.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the behavior of a List is not affected by adversarial - * changes to Array.prototype. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the behavior of a List is not affected by adversarial + changes to Array.prototype. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintArray(); @@ -24,4 +24,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.6_4.js b/test/suite/intl402/ch09/9.2/9.2.6_4.js index 7c053a381..afaaac90e 100644 --- a/test/suite/intl402/ch09/9.2/9.2.6_4.js +++ b/test/suite/intl402/ch09/9.2/9.2.6_4.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that LookupSupportedLocales returns an empty list when - * given an empty list. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that LookupSupportedLocales returns an empty list when + given an empty list. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { // this test should work equally for both matching algorithms @@ -20,4 +20,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.6_4_b.js b/test/suite/intl402/ch09/9.2/9.2.6_4_b.js index a998e3378..206f3982b 100644 --- a/test/suite/intl402/ch09/9.2/9.2.6_4_b.js +++ b/test/suite/intl402/ch09/9.2/9.2.6_4_b.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Unicode locale extension sequences do not affect - * whether a locale is considered supported, but are reported back. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Unicode locale extension sequences do not affect + whether a locale is considered supported, but are reported back. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { // this test should work equally for both matching algorithms @@ -43,4 +43,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.6_4_c.js b/test/suite/intl402/ch09/9.2/9.2.6_4_c.js index de68a9b66..b3007e187 100644 --- a/test/suite/intl402/ch09/9.2/9.2.6_4_c.js +++ b/test/suite/intl402/ch09/9.2/9.2.6_4_c.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that LookupSupportedLocales includes the default locale - * and doesn't include the "no linguistic content" locale. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that LookupSupportedLocales includes the default locale and + doesn't include the "no linguistic content" locale. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { // this test should work equally for both matching algorithms @@ -29,4 +29,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.8_1_c.js b/test/suite/intl402/ch09/9.2/9.2.8_1_c.js index 724db1edd..8ae2680ca 100644 --- a/test/suite/intl402/ch09/9.2/9.2.8_1_c.js +++ b/test/suite/intl402/ch09/9.2/9.2.8_1_c.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option localeMatcher is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option localeMatcher is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var defaultLocale = new Constructor().resolvedOptions().locale; @@ -33,4 +32,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch09/9.2/9.2.8_4.js b/test/suite/intl402/ch09/9.2/9.2.8_4.js index 79c362f62..60391138a 100644 --- a/test/suite/intl402/ch09/9.2/9.2.8_4.js +++ b/test/suite/intl402/ch09/9.2/9.2.8_4.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the array returned by SupportedLocales is extensible, - * but its properties are non-writable/non-configurable. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the array returned by SupportedLocales is extensible, + but its properties are non-writable/non-configurable. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ function testFrozenProperty(obj, property) { var desc = Object.getOwnPropertyDescriptor(obj, property); @@ -32,4 +32,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_1.js b/test/suite/intl402/ch10/10.1/10.1.1_1.js index 432e073fc..1f35563bb 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_1.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_1.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that an object can't be re-initialized as a Collator. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that an object can't be re-initialized as a Collator. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var obj, error; @@ -40,4 +39,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_10.js b/test/suite/intl402/ch10/10.1/10.1.1_10.js index 5c6b657b5..08fae192c 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_10.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_10.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the behavior of a Record is not affected by adversarial - * changes to Object.prototype. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +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", "kn", "kf"]); @@ -15,4 +15,3 @@ var locale = new Intl.Collator(undefined, {localeMatcher: "lookup"}).resolvedOpt if (!isCanonicalizedStructurallyValidLanguageTag(locale)) { $ERROR("Collator returns invalid locale " + locale + "."); } - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_11.js b/test/suite/intl402/ch10/10.1/10.1.1_11.js index 447fd8b28..da500b382 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_11.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_11.js @@ -1,12 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option localeMatcher is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option localeMatcher is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.Collator, "localeMatcher", "string", ["lookup", "best fit"], "best fit", {noReturn: true}); - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_13.js b/test/suite/intl402/ch10/10.1/10.1.1_13.js index 4129eebd2..7d9a2c1bc 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_13.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_13.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the options numeric and caseFirst are processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the options numeric and caseFirst are processed + correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.Collator, "numeric", "boolean", undefined, undefined, {isOptional: true}); testOption(Intl.Collator, "caseFirst", "string", ["upper", "lower", "false"], undefined, {isOptional: true}); - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_19_b.js b/test/suite/intl402/ch10/10.1/10.1.1_19_b.js index f1fef2704..65e7d2ba0 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_19_b.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_19_b.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests the special handling of the "co" key in Intl.Collator. - * @author Norbert Lindenberg - */ +/*--- +description: Tests the special handling of the "co" key in Intl.Collator. +author: Norbert Lindenberg +---*/ function checkCollation(extensionCoValue, usageValue, expectedCollations, expectedUsage) { var requestLocale = extensionCoValue !== undefined ? "de-DE-u-co-" + extensionCoValue : "de-DE"; @@ -41,4 +41,3 @@ checkCollation("search", undefined, ["default"], "sort"); checkCollation("search", "search", ["default"], "search"); checkCollation("search", "sort", ["default"], "sort"); - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_19_c.js b/test/suite/intl402/ch10/10.1/10.1.1_19_c.js index 4ad76d45b..7f3de815a 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_19_c.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_19_c.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the options numeric and caseFirst can be - * set through either the locale or the options. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the options numeric and caseFirst can be set through + either the locale or the options. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var options = [ {key: "kn", property: "numeric", type: "boolean", values: [true, false]}, @@ -60,4 +60,3 @@ options.forEach(function (option) { } }); }); - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_20.js b/test/suite/intl402/ch10/10.1/10.1.1_20.js index 97d70c0f9..a790d2019 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_20.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_20.js @@ -1,13 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option sensitivity is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option sensitivity is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ // the fallback is variant only for usage === sort, but that happens to be the fallback for usage testOption(Intl.Collator, "sensitivity", "string", ["base", "accent", "case", "variant"], "variant"); - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_23.js b/test/suite/intl402/ch10/10.1/10.1.1_23.js index 0b5261509..5ad42aee1 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_23.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_23.js @@ -1,13 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option ignorePunctuation is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option ignorePunctuation is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ // the fallback is variant only for usage === sort, but that happens to be the fallback for usage testOption(Intl.Collator, "ignorePunctuation", "boolean", undefined, false); - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_6.js b/test/suite/intl402/ch10/10.1/10.1.1_6.js index bc13436d7..cdda4cefc 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_6.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_6.js @@ -1,12 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option usage is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option usage is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.Collator, "usage", "string", ["sort", "search"], "sort"); - diff --git a/test/suite/intl402/ch10/10.1/10.1.1_a.js b/test/suite/intl402/ch10/10.1/10.1.1_a.js index 56d4b9789..79cd5ba1e 100644 --- a/test/suite/intl402/ch10/10.1/10.1.1_a.js +++ b/test/suite/intl402/ch10/10.1/10.1.1_a.js @@ -1,13 +1,13 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that constructing a Collator doesn't create or modify - * unwanted properties on the RegExp constructor. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that constructing a Collator doesn't create or modify + unwanted properties on the RegExp constructor. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testForUnwantedRegExpChanges(function () { new Intl.Collator("de-DE-u-co-phonebk"); diff --git a/test/suite/intl402/ch10/10.1/10.1.2.1_4.js b/test/suite/intl402/ch10/10.1/10.1.2.1_4.js index 22e69065e..ce3b986f7 100644 --- a/test/suite/intl402/ch10/10.1/10.1.2.1_4.js +++ b/test/suite/intl402/ch10/10.1/10.1.2.1_4.js @@ -1,11 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that for non-object values passed as this to Collator a - * wrapper object will be initialized and returned. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that for non-object values passed as this to Collator a + wrapper object will be initialized and returned. +author: Norbert Lindenberg +---*/ var thisValues = [true, 42, "国際化"]; @@ -18,4 +19,3 @@ thisValues.forEach(function (value) { } return true; }); - diff --git a/test/suite/intl402/ch10/10.1/10.1.2_a.js b/test/suite/intl402/ch10/10.1/10.1.2_a.js index de69a4809..1cc9073cc 100644 --- a/test/suite/intl402/ch10/10.1/10.1.2_a.js +++ b/test/suite/intl402/ch10/10.1/10.1.2_a.js @@ -2,12 +2,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.Collator can be subclassed. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that Intl.Collator can be subclassed. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ // get a collator and have it sort an array for comparison with the subclass var locales = ["tlh", "id", "en"]; @@ -27,4 +26,3 @@ MyCollator.prototype.constructor = MyCollator; var collator = new MyCollator(locales); a.sort(collator.compare); testArraysAreSame(referenceSorted, a); - diff --git a/test/suite/intl402/ch10/10.1/10.1.3.js b/test/suite/intl402/ch10/10.1/10.1.3.js index 7459d98d6..0ab3e51f3 100644 --- a/test/suite/intl402/ch10/10.1/10.1.3.js +++ b/test/suite/intl402/ch10/10.1/10.1.3.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that objects constructed by Intl.Collator have the specified internal properties. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that objects constructed by Intl.Collator have the specified + internal properties. +author: Norbert Lindenberg +---*/ var obj = new Intl.Collator(); @@ -16,4 +18,3 @@ if (actualPrototype !== Intl.Collator.prototype) { if (!Object.isExtensible(obj)) { $ERROR("Object constructed by Intl.Collator must be extensible."); } - diff --git a/test/suite/intl402/ch10/10.1/10.1_L15.js b/test/suite/intl402/ch10/10.1/10.1_L15.js index 4dbabfd64..2185796cc 100644 --- a/test/suite/intl402/ch10/10.1/10.1_L15.js +++ b/test/suite/intl402/ch10/10.1/10.1_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.Collator - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.Collator meets the requirements for built-in + objects defined by the introduction of chapter 15 of the + ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.Collator, true, true, ["supportedLocalesOf"], 0); - diff --git a/test/suite/intl402/ch10/10.2/10.2.1.js b/test/suite/intl402/ch10/10.2/10.2.1.js index 9eccb073c..a2e5dacd1 100644 --- a/test/suite/intl402/ch10/10.2/10.2.1.js +++ b/test/suite/intl402/ch10/10.2/10.2.1.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.Collator.prototype has the required attributes. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that Intl.Collator.prototype has the required attributes. +author: Norbert Lindenberg +---*/ var desc = Object.getOwnPropertyDescriptor(Intl.Collator, "prototype"); if (desc === undefined) { @@ -19,4 +19,3 @@ if (desc.enumerable) { if (desc.configurable) { $ERROR("Intl.Collator.prototype must not be configurable."); } - diff --git a/test/suite/intl402/ch10/10.2/10.2.2_L15.js b/test/suite/intl402/ch10/10.2/10.2.2_L15.js index 6ffcdde84..7076f2ce3 100644 --- a/test/suite/intl402/ch10/10.2/10.2.2_L15.js +++ b/test/suite/intl402/ch10/10.2/10.2.2_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.Collator.supportedLocalesOf - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.Collator.supportedLocalesOf meets the + requirements for built-in objects defined by the introduction of + chapter 15 of the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.Collator.supportedLocalesOf, true, false, [], 1); - diff --git a/test/suite/intl402/ch10/10.2/10.2.2_a.js b/test/suite/intl402/ch10/10.2/10.2.2_a.js index 5cf953ce8..772cb5c05 100644 --- a/test/suite/intl402/ch10/10.2/10.2.2_a.js +++ b/test/suite/intl402/ch10/10.2/10.2.2_a.js @@ -1,10 +1,11 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.Collator has a supportedLocalesOf - * property, and it works as planned. - */ +/*--- +description: > + Tests that Intl.Collator has a supportedLocalesOf property, and + it works as planned. +---*/ var defaultLocale = new Intl.Collator().resolvedOptions().locale; var notSupported = 'zxx'; // "no linguistic content" @@ -24,4 +25,3 @@ if (supportedLocales.length !== 1) { if (supportedLocales[0] !== defaultLocale) { $ERROR('The default locale is not returned in the supported list.'); } - diff --git a/test/suite/intl402/ch10/10.2/10.2.2_b.js b/test/suite/intl402/ch10/10.2/10.2.2_b.js index 1b99fd8c5..38c78faad 100644 --- a/test/suite/intl402/ch10/10.2/10.2.2_b.js +++ b/test/suite/intl402/ch10/10.2/10.2.2_b.js @@ -1,13 +1,13 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.Collator.supportedLocalesOf - * doesn't access arguments that it's not given. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Intl.Collator.supportedLocalesOf doesn't access + arguments that it's not given. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintDataProperty(Object.prototype, "1"); new Intl.Collator("und"); diff --git a/test/suite/intl402/ch10/10.2/10.2.3_b.js b/test/suite/intl402/ch10/10.2/10.2.3_b.js index aef1e746a..5c02d60e2 100644 --- a/test/suite/intl402/ch10/10.2/10.2.3_b.js +++ b/test/suite/intl402/ch10/10.2/10.2.3_b.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.Collator does not accept Unicode locale - * extension keys and values that are not allowed. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Intl.Collator does not accept Unicode locale extension + keys and values that are not allowed. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var testArray = [ "hello", "你好", "こんにちは", @@ -49,4 +49,3 @@ Object.getOwnPropertyNames(keyValues).forEach(function (key) { testArraysAreSame(defaultSortedArray, testArray.sort(collator.compare)); }); }); - diff --git a/test/suite/intl402/ch10/10.3/10.3.1.js b/test/suite/intl402/ch10/10.3/10.3.1.js index 699949e18..5103cbdcd 100644 --- a/test/suite/intl402/ch10/10.3/10.3.1.js +++ b/test/suite/intl402/ch10/10.3/10.3.1.js @@ -1,13 +1,13 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.Collator.prototype.constructor is the - * Intl.Collator. - */ +/*--- +description: > + Tests that Intl.Collator.prototype.constructor is the + Intl.Collator. +---*/ if (Intl.Collator.prototype.constructor !== Intl.Collator) { $ERROR("Intl.Collator.prototype.constructor is not the same as " + "Intl.Collator"); } - diff --git a/test/suite/intl402/ch10/10.3/10.3.2_1_a_L15.js b/test/suite/intl402/ch10/10.3/10.3.2_1_a_L15.js index 3d49601db..2ef9a442b 100644 --- a/test/suite/intl402/ch10/10.3/10.3.2_1_a_L15.js +++ b/test/suite/intl402/ch10/10.3/10.3.2_1_a_L15.js @@ -1,14 +1,14 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the function returned by Intl.Collator.prototype.compare - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that the function returned by + Intl.Collator.prototype.compare meets the requirements for + built-in objects defined by the introduction of chapter 15 of the + ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(new Intl.Collator().compare, true, false, [], 2); - diff --git a/test/suite/intl402/ch10/10.3/10.3.2_1_c.js b/test/suite/intl402/ch10/10.3/10.3.2_1_c.js index 73f2bcf09..43e9f2b3f 100644 --- a/test/suite/intl402/ch10/10.3/10.3.2_1_c.js +++ b/test/suite/intl402/ch10/10.3/10.3.2_1_c.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that compare function is bound to its Intl.Collator. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that compare function is bound to its Intl.Collator. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var strings = ["d", "O", "od", "oe", "of", "ö", "o\u0308", "X", "y", "Z", "Z.", "𠮷野家", "吉野家", "!A", "A", "b", "C"]; var locales = [undefined, ["de"], ["de-u-co-phonebk"], ["en"], ["ja"], ["sv"]]; @@ -33,4 +32,3 @@ locales.forEach(function (locales) { } }); }); - diff --git a/test/suite/intl402/ch10/10.3/10.3.2_CS_a.js b/test/suite/intl402/ch10/10.3/10.3.2_CS_a.js index a946245b4..427f62d3a 100644 --- a/test/suite/intl402/ch10/10.3/10.3.2_CS_a.js +++ b/test/suite/intl402/ch10/10.3/10.3.2_CS_a.js @@ -2,12 +2,14 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the function returned by Intl.Collator.prototype.compare - * returns 0 when comparing Strings that are considered canonically equivalent - * by the Unicode standard. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that the function returned by + Intl.Collator.prototype.compare returns 0 when comparing Strings + that are considered canonically equivalent by the Unicode + standard. +author: Norbert Lindenberg +---*/ var collator = new Intl.Collator(); var pairs = [ @@ -65,4 +67,3 @@ function toU(s) { } return result; } - diff --git a/test/suite/intl402/ch10/10.3/10.3.2_CS_b_NN.js b/test/suite/intl402/ch10/10.3/10.3.2_CS_b_NN.js index c417d2b8a..8f3d83e18 100644 --- a/test/suite/intl402/ch10/10.3/10.3.2_CS_b_NN.js +++ b/test/suite/intl402/ch10/10.3/10.3.2_CS_b_NN.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the compare function isn't entirely unreasonable. - * This test is not normative. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the compare function isn't entirely unreasonable. This + test is not normative. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ // this test should be valid at least for the following locales var locales = ["de", "en", "es", "fr", "it"]; @@ -19,4 +19,3 @@ locales.forEach(function (locale) { var expected = ["A", "b", "C", "d", "E", "f", "g", "H", "i", "J", "k", "L", "m", "N", "V", "w", "X", "y", "Z"]; testArraysAreSame(expected, a); }); - diff --git a/test/suite/intl402/ch10/10.3/10.3.2_CS_c_NN.js b/test/suite/intl402/ch10/10.3/10.3.2_CS_c_NN.js index 5d5060be5..67d3e49d8 100644 --- a/test/suite/intl402/ch10/10.3/10.3.2_CS_c_NN.js +++ b/test/suite/intl402/ch10/10.3/10.3.2_CS_c_NN.js @@ -2,13 +2,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the compare function supports phonebook sorting if it says it does. - * This test is not normative. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the compare function supports phonebook sorting if it + says it does. This test is not normative. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ // this test should be valid at least for the following locales var locales = ["de-DE-u-co-phonebk", "de-u-co-phonebk"]; @@ -19,4 +19,3 @@ if (locales.indexOf(collator.resolvedOptions().locale) !== -1) { var expected = ["A", "Ab", "Ä", "Af", "b", "od", "ö", "off"]; testArraysAreSame(expected, a); } - diff --git a/test/suite/intl402/ch10/10.3/10.3.2_CS_d_NN.js b/test/suite/intl402/ch10/10.3/10.3.2_CS_d_NN.js index be5f1aa33..ccef21e26 100644 --- a/test/suite/intl402/ch10/10.3/10.3.2_CS_d_NN.js +++ b/test/suite/intl402/ch10/10.3/10.3.2_CS_d_NN.js @@ -2,13 +2,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the compare function supports different sensitivity settings. - * This test is not normative. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the compare function supports different sensitivity + settings. This test is not normative. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ // this test should be valid at least for the following locales var locales = ["de", "en", "es", "it"]; @@ -31,4 +31,3 @@ locales.forEach(function (locale) { testArraysAreSame(expected[sensitivity], matches); }); }); - diff --git a/test/suite/intl402/ch10/10.3/10.3.2_L15.js b/test/suite/intl402/ch10/10.3/10.3.2_L15.js index 5845ea3ca..68d032f36 100644 --- a/test/suite/intl402/ch10/10.3/10.3.2_L15.js +++ b/test/suite/intl402/ch10/10.3/10.3.2_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the getter for Intl.Collator.prototype.compare - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that the getter for Intl.Collator.prototype.compare meets + the requirements for built-in objects defined by the introduction + of chapter 15 of the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.Collator.prototype, "compare").get , true, false, [], 0); - diff --git a/test/suite/intl402/ch10/10.3/10.3.3.js b/test/suite/intl402/ch10/10.3/10.3.3.js index bc6b4fabb..8669a2770 100644 --- a/test/suite/intl402/ch10/10.3/10.3.3.js +++ b/test/suite/intl402/ch10/10.3/10.3.3.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the object returned by Intl.Collator.prototype.resolvedOptions - * has the right properties. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the object returned by + Intl.Collator.prototype.resolvedOptions has the right properties. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var actual = new Intl.Collator().resolvedOptions(); @@ -44,4 +44,3 @@ mustHaveProperty(actual, "ignorePunctuation", [false]); mustHaveProperty(actual, "collation", collations); mayHaveProperty(actual, "numeric", [true, false]); mayHaveProperty(actual, "caseFirst", ["upper", "lower", "false"]); - diff --git a/test/suite/intl402/ch10/10.3/10.3.3_L15.js b/test/suite/intl402/ch10/10.3/10.3.3_L15.js index 718cc9fea..6e9f6672b 100644 --- a/test/suite/intl402/ch10/10.3/10.3.3_L15.js +++ b/test/suite/intl402/ch10/10.3/10.3.3_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.Collator.prototype.resolvedOptions - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.Collator.prototype.resolvedOptions meets the + requirements for built-in objects defined by the introduction of + chapter 15 of the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.Collator.prototype.resolvedOptions, true, false, [], 0); - diff --git a/test/suite/intl402/ch10/10.3/10.3_L15.js b/test/suite/intl402/ch10/10.3/10.3_L15.js index 60719736c..09dfa2fc8 100644 --- a/test/suite/intl402/ch10/10.3/10.3_L15.js +++ b/test/suite/intl402/ch10/10.3/10.3_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.Collator.prototype - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.Collator.prototype meets the requirements for + built-in objects defined by the introduction of chapter 15 of the + ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.Collator.prototype, false, false, ["constructor", "compare", "resolvedOptions"]); - diff --git a/test/suite/intl402/ch10/10.3/10.3_a.js b/test/suite/intl402/ch10/10.3/10.3_a.js index aa2e52845..e4016c262 100644 --- a/test/suite/intl402/ch10/10.3/10.3_a.js +++ b/test/suite/intl402/ch10/10.3/10.3_a.js @@ -1,10 +1,11 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.Collator.prototype is an object that - * has been initialized as an Intl.Collator. - */ +/*--- +description: > + Tests that Intl.Collator.prototype is an object that has been + initialized as an Intl.Collator. +---*/ // test by calling a function that would fail if "this" were not an object // initialized as an Intl.Collator @@ -12,4 +13,3 @@ if (Intl.Collator.prototype.compare("aаあ아", "aаあ아") !== 0) { $ERROR("Intl.Collator.prototype is not an object that has been " + "initialized as an Intl.Collator."); } - diff --git a/test/suite/intl402/ch10/10.3/10.3_b.js b/test/suite/intl402/ch10/10.3/10.3_b.js index 9c3c2db32..97dbfa390 100644 --- a/test/suite/intl402/ch10/10.3/10.3_b.js +++ b/test/suite/intl402/ch10/10.3/10.3_b.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.Collator.prototype functions throw a - * TypeError if called on a non-object value or an object that hasn't been - * initialized as a Collator. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Intl.Collator.prototype functions throw a TypeError if + called on a non-object value or an object that hasn't been + initialized as a Collator. +author: Norbert Lindenberg +---*/ var functions = { "compare getter": Object.getOwnPropertyDescriptor(Intl.Collator.prototype, "compare").get, @@ -30,4 +31,3 @@ Object.getOwnPropertyNames(functions).forEach(function (functionName) { } }); }); - diff --git a/test/suite/intl402/ch10/10.4/10.4_a.js b/test/suite/intl402/ch10/10.4/10.4_a.js index 7527f65eb..a611bafb3 100644 --- a/test/suite/intl402/ch10/10.4/10.4_a.js +++ b/test/suite/intl402/ch10/10.4/10.4_a.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.Collator instances have the specified properties. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that Intl.Collator instances have the specified properties. +author: Norbert Lindenberg +---*/ var obj = new Intl.Collator(); @@ -12,4 +12,3 @@ var toStringValue = Object.prototype.toString.call(obj); if (toStringValue !== "[object Object]") { $ERROR("Intl.Collator instance produces wrong [[Class]] - toString returns " + toStringValue + "."); } - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_1.js b/test/suite/intl402/ch11/11.1/11.1.1_1.js index 33af16975..7a520c8dc 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_1.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_1.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that an object can't be re-initialized as a NumberFormat. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that an object can't be re-initialized as a NumberFormat. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var obj, error; @@ -40,4 +39,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_15.js b/test/suite/intl402/ch11/11.1/11.1.1_15.js index 4d0467428..e634e3bb6 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_15.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_15.js @@ -1,13 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option style is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option style is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.NumberFormat, "style", "string", ["decimal", "percent", "currency"], "decimal", {extra: {"currency": {currency: "CNY"}}}); - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_17.js b/test/suite/intl402/ch11/11.1/11.1.1_17.js index 08c0e8e5c..ccf619892 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_17.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_17.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option currency is processed correctly. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that the option currency is processed correctly. +author: Norbert Lindenberg +---*/ var validValues = ["CNY", "USD", "EUR", "IDR", "jpy", {toString: function () {return "INR";}}]; var invalidValues = ["$", "SFr.", "US$", "ßP", {toString: function () {return;}}]; @@ -78,4 +78,3 @@ invalidValues.forEach(function (value) { return new Intl.NumberFormat([defaultLocale + "-u-cu-krw"], {currency: value}); }); }); - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_19.js b/test/suite/intl402/ch11/11.1/11.1.1_19.js index e41ca5bec..0263f663d 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_19.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_19.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the currency style can not be used without a specified currency. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that the currency style can not be used without a specified + currency. +author: Norbert Lindenberg +---*/ var defaultLocale = new Intl.NumberFormat().resolvedOptions().locale; @@ -28,4 +30,3 @@ expectError(function () { expectError(function () { return new Intl.NumberFormat([defaultLocale + "-u-cu-krw"], {style: "currency"}); }); - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_20_c.js b/test/suite/intl402/ch11/11.1/11.1.1_20_c.js index d4a230c10..4301f8a4b 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_20_c.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_20_c.js @@ -2,10 +2,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the number of fractional digits is determined correctly for currencies. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that the number of fractional digits is determined correctly + for currencies. +author: Norbert Lindenberg +---*/ // data from http://www.currency-iso.org/dl_iso_table_a1.xml, 2013-02-25 var currencyDigits = { @@ -193,4 +195,3 @@ Object.getOwnPropertyNames(currencyDigits).forEach(function (currency) { currency + "; expected " + digits + ", got " + max + "."); } }); - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_21.js b/test/suite/intl402/ch11/11.1/11.1.1_21.js index 1751b8b57..b89468474 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_21.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_21.js @@ -1,15 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option currencyDisplay is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option currencyDisplay is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.NumberFormat, "currencyDisplay", "string", ["code", "symbol", "name"], "symbol", {extra: {any: {style: "currency", currency: "XDR"}}}); testOption(Intl.NumberFormat, "currencyDisplay", "string", ["code", "symbol", "name"], undefined, {noReturn: true}); - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_32.js b/test/suite/intl402/ch11/11.1/11.1.1_32.js index 9196318ef..d6fe982cf 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_32.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_32.js @@ -1,11 +1,12 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the options minimumSignificantDigits and - * maximumSignificantDigits are read in the right sequence. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that the options minimumSignificantDigits and + maximumSignificantDigits are read in the right sequence. +author: Norbert Lindenberg +---*/ var read = 0; diff --git a/test/suite/intl402/ch11/11.1/11.1.1_34.js b/test/suite/intl402/ch11/11.1/11.1.1_34.js index 98ba9a062..8fbc6a9eb 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_34.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_34.js @@ -1,12 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option useGrouping is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option useGrouping is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.NumberFormat, "useGrouping", "boolean", undefined, true); - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_6.js b/test/suite/intl402/ch11/11.1/11.1.1_6.js index 5b9d342eb..5c3c9c973 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_6.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_6.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the behavior of a Record is not affected by adversarial - * changes to Object.prototype. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +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"]); @@ -15,4 +15,3 @@ var locale = new Intl.NumberFormat(undefined, {localeMatcher: "lookup"}).resolve if (!isCanonicalizedStructurallyValidLanguageTag(locale)) { $ERROR("NumberFormat returns invalid locale " + locale + "."); } - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_7.js b/test/suite/intl402/ch11/11.1/11.1.1_7.js index 4b13b245b..76c6cd48d 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_7.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_7.js @@ -1,12 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option localeMatcher is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option localeMatcher is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.NumberFormat, "localeMatcher", "string", ["lookup", "best fit"], "best fit", {noReturn: true}); - diff --git a/test/suite/intl402/ch11/11.1/11.1.1_a.js b/test/suite/intl402/ch11/11.1/11.1.1_a.js index 611816b61..941a9a279 100644 --- a/test/suite/intl402/ch11/11.1/11.1.1_a.js +++ b/test/suite/intl402/ch11/11.1/11.1.1_a.js @@ -1,13 +1,13 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that constructing a NumberFormat doesn't create or modify - * unwanted properties on the RegExp constructor. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that constructing a NumberFormat doesn't create or modify + unwanted properties on the RegExp constructor. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testForUnwantedRegExpChanges(function () { new Intl.NumberFormat("de-DE-u-nu-latn"); diff --git a/test/suite/intl402/ch11/11.1/11.1.2.1_4.js b/test/suite/intl402/ch11/11.1/11.1.2.1_4.js index 18b5b98fa..9b985c2d4 100644 --- a/test/suite/intl402/ch11/11.1/11.1.2.1_4.js +++ b/test/suite/intl402/ch11/11.1/11.1.2.1_4.js @@ -1,11 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that for non-object values passed as this to NumberFormat a - * wrapper object will be initialized and returned. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that for non-object values passed as this to NumberFormat a + wrapper object will be initialized and returned. +author: Norbert Lindenberg +---*/ var thisValues = [true, 42, "国際化"]; @@ -18,4 +19,3 @@ thisValues.forEach(function (value) { } return true; }); - diff --git a/test/suite/intl402/ch11/11.1/11.1.2.js b/test/suite/intl402/ch11/11.1/11.1.2.js index 0ca8cbbda..e230c8d40 100644 --- a/test/suite/intl402/ch11/11.1/11.1.2.js +++ b/test/suite/intl402/ch11/11.1/11.1.2.js @@ -2,12 +2,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat can be subclassed. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that Intl.NumberFormat can be subclassed. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ // get a number format and have it format an array of numbers for comparison with the subclass var locales = ["tlh", "id", "en"]; @@ -27,4 +26,3 @@ MyNumberFormat.prototype.constructor = MyNumberFormat; var format = new MyNumberFormat(locales); var actual = a.map(format.format); testArraysAreSame(referenceFormatted, actual); - diff --git a/test/suite/intl402/ch11/11.1/11.1.3.js b/test/suite/intl402/ch11/11.1/11.1.3.js index f0bfb5552..f940fbb88 100644 --- a/test/suite/intl402/ch11/11.1/11.1.3.js +++ b/test/suite/intl402/ch11/11.1/11.1.3.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that objects constructed by Intl.NumberFormat have the specified internal properties. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that objects constructed by Intl.NumberFormat have the + specified internal properties. +author: Norbert Lindenberg +---*/ var obj = new Intl.NumberFormat(); @@ -16,4 +18,3 @@ if (actualPrototype !== Intl.NumberFormat.prototype) { if (!Object.isExtensible(obj)) { $ERROR("Object constructed by Intl.NumberFormat must be extensible."); } - diff --git a/test/suite/intl402/ch11/11.1/11.1_L15.js b/test/suite/intl402/ch11/11.1/11.1_L15.js index e40ffc53e..80a4dcf9d 100644 --- a/test/suite/intl402/ch11/11.1/11.1_L15.js +++ b/test/suite/intl402/ch11/11.1/11.1_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.NumberFormat meets the requirements for built-in + objects defined by the introduction of chapter 15 of the + ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.NumberFormat, true, true, ["supportedLocalesOf"], 0); - diff --git a/test/suite/intl402/ch11/11.2/11.2.1.js b/test/suite/intl402/ch11/11.2/11.2.1.js index 83bebb283..8db3242e7 100644 --- a/test/suite/intl402/ch11/11.2/11.2.1.js +++ b/test/suite/intl402/ch11/11.2/11.2.1.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype has the required attributes. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that Intl.NumberFormat.prototype has the required attributes. +author: Norbert Lindenberg +---*/ var desc = Object.getOwnPropertyDescriptor(Intl.NumberFormat, "prototype"); if (desc === undefined) { @@ -19,4 +19,3 @@ if (desc.enumerable) { if (desc.configurable) { $ERROR("Intl.NumberFormat.prototype must not be configurable."); } - diff --git a/test/suite/intl402/ch11/11.2/11.2.2_L15.js b/test/suite/intl402/ch11/11.2/11.2.2_L15.js index 49dce3bae..fbabbce99 100644 --- a/test/suite/intl402/ch11/11.2/11.2.2_L15.js +++ b/test/suite/intl402/ch11/11.2/11.2.2_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.supportedLocalesOf - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.NumberFormat.supportedLocalesOf meets the + requirements for built-in objects defined by the introduction of + chapter 15 of the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.NumberFormat.supportedLocalesOf, true, false, [], 1); - diff --git a/test/suite/intl402/ch11/11.2/11.2.2_a.js b/test/suite/intl402/ch11/11.2/11.2.2_a.js index c6c9f9a46..309c148f7 100644 --- a/test/suite/intl402/ch11/11.2/11.2.2_a.js +++ b/test/suite/intl402/ch11/11.2/11.2.2_a.js @@ -1,11 +1,12 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat has a supportedLocalesOf - * property, and it works as planned. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.NumberFormat has a supportedLocalesOf property, + and it works as planned. +author:: Roozbeh Pournader +---*/ var defaultLocale = new Intl.NumberFormat().resolvedOptions().locale; var notSupported = 'zxx'; // "no linguistic content" @@ -25,4 +26,3 @@ if (supportedLocales.length !== 1) { if (supportedLocales[0] !== defaultLocale) { $ERROR('The default locale is not returned in the supported list.'); } - diff --git a/test/suite/intl402/ch11/11.2/11.2.2_b.js b/test/suite/intl402/ch11/11.2/11.2.2_b.js index 6b4d77e77..b6ea0b49a 100644 --- a/test/suite/intl402/ch11/11.2/11.2.2_b.js +++ b/test/suite/intl402/ch11/11.2/11.2.2_b.js @@ -1,13 +1,13 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.supportedLocalesOf - * doesn't access arguments that it's not given. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Intl.NumberFormat.supportedLocalesOf doesn't access + arguments that it's not given. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintDataProperty(Object.prototype, "1"); new Intl.NumberFormat("und"); diff --git a/test/suite/intl402/ch11/11.2/11.2.3_b.js b/test/suite/intl402/ch11/11.2/11.2.3_b.js index 70fe7cf11..b4200d91b 100644 --- a/test/suite/intl402/ch11/11.2/11.2.3_b.js +++ b/test/suite/intl402/ch11/11.2/11.2.3_b.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat does not accept Unicode locale - * extension keys and values that are not allowed. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Intl.NumberFormat does not accept Unicode locale + extension keys and values that are not allowed. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var locales = ["ja-JP", "zh-Hans-CN", "zh-Hant-TW"]; var input = 1234567.89; @@ -43,4 +43,3 @@ locales.forEach(function (locale) { }); }); }); - diff --git a/test/suite/intl402/ch11/11.3/11.3.1.js b/test/suite/intl402/ch11/11.3/11.3.1.js index 46c7fc519..4ca432c75 100644 --- a/test/suite/intl402/ch11/11.3/11.3.1.js +++ b/test/suite/intl402/ch11/11.3/11.3.1.js @@ -1,14 +1,14 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype.constructor is the - * Intl.NumberFormat. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.NumberFormat.prototype.constructor is the + Intl.NumberFormat. +author:: Roozbeh Pournader +---*/ if (Intl.NumberFormat.prototype.constructor !== Intl.NumberFormat) { $ERROR("Intl.NumberFormat.prototype.constructor is not the same as " + "Intl.NumberFormat"); } - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_1_a_L15.js b/test/suite/intl402/ch11/11.3/11.3.2_1_a_L15.js index 8e1c95835..829a02764 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_1_a_L15.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_1_a_L15.js @@ -1,14 +1,14 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the function returned by Intl.NumberFormat.prototype.format - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that the function returned by + Intl.NumberFormat.prototype.format meets the requirements for + built-in objects defined by the introduction of chapter 15 of the + ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(new Intl.NumberFormat().format, true, false, [], 1); - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_1_a_ii.js b/test/suite/intl402/ch11/11.3/11.3.2_1_a_ii.js index cb284f43e..feb525bb6 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_1_a_ii.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_1_a_ii.js @@ -1,11 +1,12 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype.format - * converts other types to numbers. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.NumberFormat.prototype.format converts other + types to numbers. +author:: Roozbeh Pournader +---*/ var formatter = new Intl.NumberFormat(); var testData = [undefined, null, true, '0.6666666', {valueOf: function () { return '0.1234567';}}]; @@ -24,4 +25,3 @@ for (i in testData) { 'Expected output: "'+correctResult+'"'); } } - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_1_c.js b/test/suite/intl402/ch11/11.3/11.3.2_1_c.js index 3fc877b31..9e473296c 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_1_c.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_1_c.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that format function is bound to its Intl.NumberFormat. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that format function is bound to its Intl.NumberFormat. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var numbers = [0, -0, 1, -1, 5.5, 123, -123, -123.45, 123.44501, 0.001234, -0.00000000123, 0.00000000000000000000000000000123, 1.2, 0.0000000012344501, @@ -38,4 +37,3 @@ locales.forEach(function (locales) { }); }); }); - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_FN_1.js b/test/suite/intl402/ch11/11.3/11.3.2_FN_1.js index 5f14e7772..92e81abae 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_FN_1.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_FN_1.js @@ -1,11 +1,12 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype.format - * doesn't treat all numbers as negative. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.NumberFormat.prototype.format doesn't treat all + numbers as negative. +author:: Roozbeh Pournader +---*/ var formatter = new Intl.NumberFormat(); @@ -16,4 +17,3 @@ if (formatter.format(1) === formatter.format(-1)) { if (formatter.format(-0) !== formatter.format(0)) { $ERROR('Intl.NumberFormat is formatting signed zeros differently.'); } - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_FN_2.js b/test/suite/intl402/ch11/11.3/11.3.2_FN_2.js index ec11a679d..fcc1358d8 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_FN_2.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_FN_2.js @@ -1,11 +1,12 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype.format - * handles NaN, Infinity, and -Infinity properly. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.NumberFormat.prototype.format handles NaN, + Infinity, and -Infinity properly. +author:: Roozbeh Pournader +---*/ // FIXME: We are only listing Numeric_Type=Decimal. May need to add more // when the spec clarifies. Current as of Unicode 6.1. @@ -56,4 +57,3 @@ if (hasUnicodeDigits.test(formattedNegativeInfinity)) { $ERROR('Intl.NumberFormat formats negative Infinity ' + 'using a digit.'); } - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_FN_3_b.js b/test/suite/intl402/ch11/11.3/11.3.2_FN_3_b.js index efe15575d..1b5742a37 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_FN_3_b.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_FN_3_b.js @@ -1,11 +1,12 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype.format - * formats percent values properly. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.NumberFormat.prototype.format formats percent + values properly. +author:: Roozbeh Pournader +---*/ var numberFormatter = new Intl.NumberFormat(); var percentFormatter = new Intl.NumberFormat(undefined, {style: 'percent'}); @@ -24,4 +25,3 @@ if (formattedTwentyPercent.indexOf(formattedTwenty) === -1) { if (percentFormatter.format(0.011) === percentFormatter.format(0.02)) { $ERROR('Intl.NumberFormat is formatting 1.1% and 2% the same way.'); } - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_FN_3_e.js b/test/suite/intl402/ch11/11.3/11.3.2_FN_3_e.js index 234ae6325..2f1316037 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_FN_3_e.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_FN_3_e.js @@ -1,11 +1,12 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype.format - * supports all alternative numbering systems. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.NumberFormat.prototype.format supports all + alternative numbering systems. +author:: Roozbeh Pournader +---*/ var numberingSystems = { arab: 0x0660, @@ -44,4 +45,3 @@ for (s in numberingSystems) { } // FIXME: Unfinished - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_L15.js b/test/suite/intl402/ch11/11.3/11.3.2_L15.js index 17b688b7a..5a56ef6a0 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_L15.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_L15.js @@ -1,14 +1,14 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the getter for Intl.NumberFormat.prototype.format - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that the getter for Intl.NumberFormat.prototype.format + meets the requirements for built-in objects defined by the + introduction of chapter 15 of the ECMAScript Language + Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get , true, false, [], 0); - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_TRF.js b/test/suite/intl402/ch11/11.3/11.3.2_TRF.js index c042a318a..239a5806c 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_TRF.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_TRF.js @@ -2,12 +2,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the digits are determined correctly when specifying pre/post decimal digits. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the digits are determined correctly when specifying + pre/post decimal digits. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var locales = [ new Intl.NumberFormat().resolvedOptions().locale, @@ -53,4 +54,3 @@ var testData = { testNumberFormat(locales, numberingSystems, {useGrouping: false, minimumIntegerDigits: 3, minimumFractionDigits: 1, maximumFractionDigits: 3}, testData); - diff --git a/test/suite/intl402/ch11/11.3/11.3.2_TRP.js b/test/suite/intl402/ch11/11.3/11.3.2_TRP.js index 9ab6550b6..85be15790 100644 --- a/test/suite/intl402/ch11/11.3/11.3.2_TRP.js +++ b/test/suite/intl402/ch11/11.3/11.3.2_TRP.js @@ -2,12 +2,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the digits are determined correctly when specifying significant digits. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the digits are determined correctly when specifying + significant digits. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var locales = [ new Intl.NumberFormat().resolvedOptions().locale, @@ -53,4 +54,3 @@ var testData = { testNumberFormat(locales, numberingSystems, {useGrouping: false, minimumSignificantDigits: 3, maximumSignificantDigits: 5}, testData); - diff --git a/test/suite/intl402/ch11/11.3/11.3.3.js b/test/suite/intl402/ch11/11.3/11.3.3.js index 5a220ccc9..aca7d4746 100644 --- a/test/suite/intl402/ch11/11.3/11.3.3.js +++ b/test/suite/intl402/ch11/11.3/11.3.3.js @@ -1,13 +1,14 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the object returned by Intl.NumberFormat.prototype.resolvedOptions - * has the right properties. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the object returned by + Intl.NumberFormat.prototype.resolvedOptions has the right + properties. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var actual = new Intl.NumberFormat().resolvedOptions(); @@ -28,4 +29,3 @@ mustHaveProperty(actual, "maximumFractionDigits", [3]); mustNotHaveProperty(actual, "minimumSignificantDigits"); mustNotHaveProperty(actual, "maximumSignificantDigits"); mustHaveProperty(actual, "useGrouping", [true]); - diff --git a/test/suite/intl402/ch11/11.3/11.3.3_L15.js b/test/suite/intl402/ch11/11.3/11.3.3_L15.js index b9f95866d..97f3b9fae 100644 --- a/test/suite/intl402/ch11/11.3/11.3.3_L15.js +++ b/test/suite/intl402/ch11/11.3/11.3.3_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype.resolvedOptions - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.NumberFormat.prototype.resolvedOptions meets the + requirements for built-in objects defined by the introduction of + chapter 15 of the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.NumberFormat.prototype.resolvedOptions, true, false, [], 0); - diff --git a/test/suite/intl402/ch11/11.3/11.3_L15.js b/test/suite/intl402/ch11/11.3/11.3_L15.js index ac1f0c05d..0b6b1a6a4 100644 --- a/test/suite/intl402/ch11/11.3/11.3_L15.js +++ b/test/suite/intl402/ch11/11.3/11.3_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.NumberFormat.prototype meets the requirements for + built-in objects defined by the introduction of chapter 15 of the + ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.NumberFormat.prototype, false, false, ["constructor", "format", "resolvedOptions"]); - diff --git a/test/suite/intl402/ch11/11.3/11.3_a.js b/test/suite/intl402/ch11/11.3/11.3_a.js index 282a10bf6..092140c08 100644 --- a/test/suite/intl402/ch11/11.3/11.3_a.js +++ b/test/suite/intl402/ch11/11.3/11.3_a.js @@ -1,11 +1,12 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype is an object that - * has been initialized as an Intl.NumberFormat. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.NumberFormat.prototype is an object that has been + initialized as an Intl.NumberFormat. +author:: Roozbeh Pournader +---*/ // test by calling a function that would fail if "this" were not an object // initialized as an Intl.NumberFormat @@ -13,4 +14,3 @@ if (typeof Intl.NumberFormat.prototype.format(0) !== "string") { $ERROR("Intl.NumberFormat's prototype is not an object that has been " + "initialized as an Intl.NumberFormat"); } - diff --git a/test/suite/intl402/ch11/11.3/11.3_b.js b/test/suite/intl402/ch11/11.3/11.3_b.js index 6d0162b1d..7b2453b3b 100644 --- a/test/suite/intl402/ch11/11.3/11.3_b.js +++ b/test/suite/intl402/ch11/11.3/11.3_b.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat.prototype functions throw a - * TypeError if called on a non-object value or an object that hasn't been - * initialized as a NumberFormat. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Intl.NumberFormat.prototype functions throw a + TypeError if called on a non-object value or an object that hasn't + been initialized as a NumberFormat. +author: Norbert Lindenberg +---*/ var functions = { "format getter": Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get, @@ -30,4 +31,3 @@ Object.getOwnPropertyNames(functions).forEach(function (functionName) { } }); }); - diff --git a/test/suite/intl402/ch11/11.4/11.4_a.js b/test/suite/intl402/ch11/11.4/11.4_a.js index a562879ec..9d92e8d54 100644 --- a/test/suite/intl402/ch11/11.4/11.4_a.js +++ b/test/suite/intl402/ch11/11.4/11.4_a.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.NumberFormat instances have the specified properties. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Intl.NumberFormat instances have the specified + properties. +author: Norbert Lindenberg +---*/ var obj = new Intl.NumberFormat(); @@ -12,4 +14,3 @@ var toStringValue = Object.prototype.toString.call(obj); if (toStringValue !== "[object Object]") { $ERROR("Intl.NumberFormat instance produces wrong [[Class]] - toString returns " + toStringValue + "."); } - diff --git a/test/suite/intl402/ch12/12.1/12.1.1_1.js b/test/suite/intl402/ch12/12.1/12.1.1_1.js index 8136fb421..0290ea9a1 100644 --- a/test/suite/intl402/ch12/12.1/12.1.1_1.js +++ b/test/suite/intl402/ch12/12.1/12.1.1_1.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that an object can't be re-initialized as a DateTimeFormat. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that an object can't be re-initialized as a DateTimeFormat. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testWithIntlConstructors(function (Constructor) { var obj, error; @@ -40,4 +39,3 @@ testWithIntlConstructors(function (Constructor) { return true; }); - diff --git a/test/suite/intl402/ch12/12.1/12.1.1_18.js b/test/suite/intl402/ch12/12.1/12.1.1_18.js index f75ea1e32..d3c2add26 100644 --- a/test/suite/intl402/ch12/12.1/12.1.1_18.js +++ b/test/suite/intl402/ch12/12.1/12.1.1_18.js @@ -1,15 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option hour12 is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option hour12 is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.DateTimeFormat, "hour12", "boolean", undefined, undefined, {extra: {any: {hour: "numeric", minute: "numeric"}}}); testOption(Intl.DateTimeFormat, "hour12", "boolean", undefined, undefined, {noReturn: true}); - diff --git a/test/suite/intl402/ch12/12.1/12.1.1_22.js b/test/suite/intl402/ch12/12.1/12.1.1_22.js index 5c317c6b9..ee2cc9b8e 100644 --- a/test/suite/intl402/ch12/12.1/12.1.1_22.js +++ b/test/suite/intl402/ch12/12.1/12.1.1_22.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the behavior of a Record is not affected by adversarial - * changes to Object.prototype. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the behavior of a Record is not affected by + adversarial changes to Object.prototype. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintProperties(["weekday", "era", "year", "month", "day", "hour", "minute", "second", "timeZone"]); @@ -15,4 +15,3 @@ var locale = new Intl.DateTimeFormat(undefined, {localeMatcher: "lookup"}).resol if (!isCanonicalizedStructurallyValidLanguageTag(locale)) { $ERROR("DateTimeFormat returns invalid locale " + locale + "."); } - diff --git a/test/suite/intl402/ch12/12.1/12.1.1_23.js b/test/suite/intl402/ch12/12.1/12.1.1_23.js index d26e1d28c..c6cc932e3 100644 --- a/test/suite/intl402/ch12/12.1/12.1.1_23.js +++ b/test/suite/intl402/ch12/12.1/12.1.1_23.js @@ -1,14 +1,14 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the options for the date and time components are processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the options for the date and time components are + processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ getDateTimeComponents().forEach(function (component) { testOption(Intl.DateTimeFormat, component, "string", getDateTimeComponentValues(component), undefined, {isILD: true}); }); - diff --git a/test/suite/intl402/ch12/12.1/12.1.1_25.js b/test/suite/intl402/ch12/12.1/12.1.1_25.js index ccaf7be03..490e5bd9a 100644 --- a/test/suite/intl402/ch12/12.1/12.1.1_25.js +++ b/test/suite/intl402/ch12/12.1/12.1.1_25.js @@ -1,12 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option formatMatcher is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option formatMatcher is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.DateTimeFormat, "formatMatcher", "string", ["basic", "best fit"], "best fit", {noReturn: true}); - diff --git a/test/suite/intl402/ch12/12.1/12.1.1_5.js b/test/suite/intl402/ch12/12.1/12.1.1_5.js index c6b166814..43bcf386a 100644 --- a/test/suite/intl402/ch12/12.1/12.1.1_5.js +++ b/test/suite/intl402/ch12/12.1/12.1.1_5.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the behavior of a Record is not affected by adversarial - * changes to Object.prototype. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +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"]); @@ -15,4 +15,3 @@ var locale = new Intl.DateTimeFormat(undefined, {localeMatcher: "lookup"}).resol if (!isCanonicalizedStructurallyValidLanguageTag(locale)) { $ERROR("DateTimeFormat returns invalid locale " + locale + "."); } - diff --git a/test/suite/intl402/ch12/12.1/12.1.1_6.js b/test/suite/intl402/ch12/12.1/12.1.1_6.js index 148ca02f6..2266d0342 100644 --- a/test/suite/intl402/ch12/12.1/12.1.1_6.js +++ b/test/suite/intl402/ch12/12.1/12.1.1_6.js @@ -1,12 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the option localeMatcher is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that the option localeMatcher is processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testOption(Intl.DateTimeFormat, "localeMatcher", "string", ["lookup", "best fit"], "best fit", {noReturn: true}); - diff --git a/test/suite/intl402/ch12/12.1/12.1.1_TDTO.js b/test/suite/intl402/ch12/12.1/12.1.1_TDTO.js index 5df6a1cf2..74bc6a0c5 100644 --- a/test/suite/intl402/ch12/12.1/12.1.1_TDTO.js +++ b/test/suite/intl402/ch12/12.1/12.1.1_TDTO.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the set of options for the date and time components is processed correctly. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the set of options for the date and time components is + processed correctly. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var locales = [[], ["zh-Hans-CN"], ["hi-IN"], ["en-US"], ["id-ID"]]; var dates = [new Date(), new Date(0), new Date(Date.parse("1989-11-09T17:57:00Z"))]; @@ -103,5 +104,3 @@ testWithToLocale("toLocaleTimeString", {weekday: "short", year: "numeric", month // time/time: steps 6a testWithToLocale("toLocaleTimeString", {hour: "numeric", minute: "numeric"}, {hour: "numeric", minute: "numeric"}); - - diff --git a/test/suite/intl402/ch12/12.1/12.1.1_a.js b/test/suite/intl402/ch12/12.1/12.1.1_a.js index 4f5f3dbf5..d2ee50656 100644 --- a/test/suite/intl402/ch12/12.1/12.1.1_a.js +++ b/test/suite/intl402/ch12/12.1/12.1.1_a.js @@ -1,13 +1,13 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that constructing a DateTimeFormat doesn't create or modify - * unwanted properties on the RegExp constructor. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that constructing a DateTimeFormat doesn't create or modify + unwanted properties on the RegExp constructor. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ testForUnwantedRegExpChanges(function () { new Intl.DateTimeFormat("de-DE-u-ca-gregory"); diff --git a/test/suite/intl402/ch12/12.1/12.1.2.1_4.js b/test/suite/intl402/ch12/12.1/12.1.2.1_4.js index cb22be8f9..db5de9486 100644 --- a/test/suite/intl402/ch12/12.1/12.1.2.1_4.js +++ b/test/suite/intl402/ch12/12.1/12.1.2.1_4.js @@ -1,11 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that for non-object values passed as this to DateTimeFormat a - * wrapper object will be initialized and returned. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that for non-object values passed as this to DateTimeFormat + a wrapper object will be initialized and returned. +author: Norbert Lindenberg +---*/ var thisValues = [true, 42, "国際化"]; @@ -18,4 +19,3 @@ thisValues.forEach(function (value) { } return true; }); - diff --git a/test/suite/intl402/ch12/12.1/12.1.2.js b/test/suite/intl402/ch12/12.1/12.1.2.js index 3ffed2ec8..5a3819f59 100644 --- a/test/suite/intl402/ch12/12.1/12.1.2.js +++ b/test/suite/intl402/ch12/12.1/12.1.2.js @@ -2,12 +2,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat can be subclassed. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that Intl.DateTimeFormat can be subclassed. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ // get a date-time format and have it format an array of dates for comparison with the subclass var locales = ["tlh", "id", "en"]; @@ -27,4 +26,3 @@ MyDateTimeFormat.prototype.constructor = MyDateTimeFormat; var format = new MyDateTimeFormat(locales); var actual = a.map(format.format); testArraysAreSame(referenceFormatted, actual); - diff --git a/test/suite/intl402/ch12/12.1/12.1.3.js b/test/suite/intl402/ch12/12.1/12.1.3.js index 5e70bbb8f..4c0ab6640 100644 --- a/test/suite/intl402/ch12/12.1/12.1.3.js +++ b/test/suite/intl402/ch12/12.1/12.1.3.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that objects constructed by Intl.DateTimeFormat have the specified internal properties. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that objects constructed by Intl.DateTimeFormat have the + specified internal properties. +author: Norbert Lindenberg +---*/ var obj = new Intl.DateTimeFormat(); @@ -16,4 +18,3 @@ if (actualPrototype !== Intl.DateTimeFormat.prototype) { if (!Object.isExtensible(obj)) { $ERROR("Object constructed by Intl.DateTimeFormat must be extensible."); } - diff --git a/test/suite/intl402/ch12/12.1/12.1_L15.js b/test/suite/intl402/ch12/12.1/12.1_L15.js index 46c4f5f50..07306a232 100644 --- a/test/suite/intl402/ch12/12.1/12.1_L15.js +++ b/test/suite/intl402/ch12/12.1/12.1_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.DateTimeFormat meets the requirements for + built-in objects defined by the introduction of chapter 15 of the + ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.DateTimeFormat, true, true, ["supportedLocalesOf"], 0); - diff --git a/test/suite/intl402/ch12/12.2/12.2.1.js b/test/suite/intl402/ch12/12.2/12.2.1.js index 3590c0a9d..0a352a554 100644 --- a/test/suite/intl402/ch12/12.2/12.2.1.js +++ b/test/suite/intl402/ch12/12.2/12.2.1.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat.prototype has the required attributes. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Intl.DateTimeFormat.prototype has the required + attributes. +author: Norbert Lindenberg +---*/ var desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat, "prototype"); if (desc === undefined) { @@ -19,4 +21,3 @@ if (desc.enumerable) { if (desc.configurable) { $ERROR("Intl.DateTimeFormat.prototype must not be configurable."); } - diff --git a/test/suite/intl402/ch12/12.2/12.2.2_L15.js b/test/suite/intl402/ch12/12.2/12.2.2_L15.js index 8b21df1fd..b7de4f47c 100644 --- a/test/suite/intl402/ch12/12.2/12.2.2_L15.js +++ b/test/suite/intl402/ch12/12.2/12.2.2_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat.supportedLocalesOf - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.DateTimeFormat.supportedLocalesOf meets the + requirements for built-in objects defined by the introduction of + chapter 15 of the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.DateTimeFormat.supportedLocalesOf, true, false, [], 1); - diff --git a/test/suite/intl402/ch12/12.2/12.2.2_a.js b/test/suite/intl402/ch12/12.2/12.2.2_a.js index 42eedc0a1..2c30dfea9 100644 --- a/test/suite/intl402/ch12/12.2/12.2.2_a.js +++ b/test/suite/intl402/ch12/12.2/12.2.2_a.js @@ -1,11 +1,12 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat has a supportedLocalesOf - * property, and it works as planned. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.DateTimeFormat has a supportedLocalesOf property, + and it works as planned. +author:: Roozbeh Pournader +---*/ var defaultLocale = new Intl.DateTimeFormat().resolvedOptions().locale; var notSupported = 'zxx'; // "no linguistic content" @@ -25,4 +26,3 @@ if (supportedLocales.length !== 1) { if (supportedLocales[0] !== defaultLocale) { $ERROR('The default locale is not returned in the supported list.'); } - diff --git a/test/suite/intl402/ch12/12.2/12.2.2_b.js b/test/suite/intl402/ch12/12.2/12.2.2_b.js index 06bc8027e..2d5db9380 100644 --- a/test/suite/intl402/ch12/12.2/12.2.2_b.js +++ b/test/suite/intl402/ch12/12.2/12.2.2_b.js @@ -1,13 +1,13 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat.supportedLocalesOf - * doesn't access arguments that it's not given. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Intl.DateTimeFormat.supportedLocalesOf doesn't access + arguments that it's not given. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintDataProperty(Object.prototype, "1"); new Intl.DateTimeFormat("und"); diff --git a/test/suite/intl402/ch12/12.2/12.2.3_b.js b/test/suite/intl402/ch12/12.2/12.2.3_b.js index 65fd9dc5f..cbb756f73 100644 --- a/test/suite/intl402/ch12/12.2/12.2.3_b.js +++ b/test/suite/intl402/ch12/12.2/12.2.3_b.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat does not accept Unicode locale - * extension keys and values that are not allowed. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Intl.DateTimeFormat does not accept Unicode locale + extension keys and values that are not allowed. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var locales = ["ja-JP", "zh-Hans-CN", "zh-Hant-TW"]; var input = new Date(Date.parse("1989-11-09T17:57:00Z")); @@ -44,4 +44,3 @@ locales.forEach(function (locale) { }); }); }); - diff --git a/test/suite/intl402/ch12/12.2/12.2.3_c.js b/test/suite/intl402/ch12/12.2/12.2.3_c.js index 0aced6ca9..8a4ac3eef 100644 --- a/test/suite/intl402/ch12/12.2/12.2.3_c.js +++ b/test/suite/intl402/ch12/12.2/12.2.3_c.js @@ -1,13 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat provides the required date-time - * format component subsets. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Intl.DateTimeFormat provides the required date-time + format component subsets. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var locales = ["de-DE", "en-US", "hi-IN", "id-ID", "ja-JP", "th-TH", "zh-Hans-CN", "zh-Hant-TW", "zxx"]; var subsets = [ @@ -49,4 +49,3 @@ locales.forEach(function (locale) { }); }); }); - diff --git a/test/suite/intl402/ch12/12.3/12.3.1.js b/test/suite/intl402/ch12/12.3/12.3.1.js index 1755dd64b..add5b98ca 100644 --- a/test/suite/intl402/ch12/12.3/12.3.1.js +++ b/test/suite/intl402/ch12/12.3/12.3.1.js @@ -1,14 +1,14 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat.prototype.constructor is the - * Intl.DateTimeFormat. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.DateTimeFormat.prototype.constructor is the + Intl.DateTimeFormat. +author:: Roozbeh Pournader +---*/ if (Intl.DateTimeFormat.prototype.constructor !== Intl.DateTimeFormat) { $ERROR("Intl.DateTimeFormat.prototype.constructor is not the same as " + "Intl.DateTimeFormat"); } - diff --git a/test/suite/intl402/ch12/12.3/12.3.2_1_a_L15.js b/test/suite/intl402/ch12/12.3/12.3.2_1_a_L15.js index 2fb768d09..bd595ddf9 100644 --- a/test/suite/intl402/ch12/12.3/12.3.2_1_a_L15.js +++ b/test/suite/intl402/ch12/12.3/12.3.2_1_a_L15.js @@ -1,14 +1,14 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the function returned by Intl.DateTimeFormat.prototype.format - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that the function returned by + Intl.DateTimeFormat.prototype.format meets the requirements for + built-in objects defined by the introduction of chapter 15 of the + ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(new Intl.DateTimeFormat().format, true, false, [], 0); - diff --git a/test/suite/intl402/ch12/12.3/12.3.2_1_c.js b/test/suite/intl402/ch12/12.3/12.3.2_1_c.js index d4b9f891f..ed8e9893f 100644 --- a/test/suite/intl402/ch12/12.3/12.3.2_1_c.js +++ b/test/suite/intl402/ch12/12.3/12.3.2_1_c.js @@ -1,12 +1,11 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that format function is bound to its Intl.DateTimeFormat. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: Tests that format function is bound to its Intl.DateTimeFormat. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var dates = [new Date(), new Date(0), new Date(Date.parse("1989-11-09T17:57:00Z"))]; var locales = [undefined, ["de"], ["th-u-ca-gregory-nu-thai"], ["en"], ["ja-u-ca-japanese"], ["ar-u-ca-islamicc-nu-arab"]]; @@ -31,4 +30,3 @@ locales.forEach(function (locales) { }); }); }); - diff --git a/test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js b/test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js index d643d7928..613fa68d5 100644 --- a/test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js +++ b/test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that format handles non-finite values correctly. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that format handles non-finite values correctly. +author: Norbert Lindenberg +---*/ var invalidValues = [NaN, Infinity, -Infinity]; @@ -23,4 +23,3 @@ invalidValues.forEach(function (value) { $ERROR("Invalid value " + value + " was rejected with wrong error " + error.name + "."); } }); - diff --git a/test/suite/intl402/ch12/12.3/12.3.2_FDT_7_a_iv.js b/test/suite/intl402/ch12/12.3/12.3.2_FDT_7_a_iv.js index f13878403..8f100ccdb 100644 --- a/test/suite/intl402/ch12/12.3/12.3.2_FDT_7_a_iv.js +++ b/test/suite/intl402/ch12/12.3/12.3.2_FDT_7_a_iv.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that format uses a proleptic Gregorian calendar with no year 0. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that format uses a proleptic Gregorian calendar with no year + 0. +author: Norbert Lindenberg +---*/ var dates = [ 0, // January 1, 1970 @@ -29,4 +31,3 @@ dates.forEach(function (date) { expectedYearString + ", got " + dateString + "."); } }); - diff --git a/test/suite/intl402/ch12/12.3/12.3.2_L15.js b/test/suite/intl402/ch12/12.3/12.3.2_L15.js index 73d309e26..67c877715 100644 --- a/test/suite/intl402/ch12/12.3/12.3.2_L15.js +++ b/test/suite/intl402/ch12/12.3/12.3.2_L15.js @@ -1,14 +1,14 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the getter for Intl.DateTimeFormat.prototype.format - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that the getter for Intl.DateTimeFormat.prototype.format + meets the requirements for built-in objects defined by the + introduction of chapter 15 of the ECMAScript Language + Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format").get , true, false, [], 0); - diff --git a/test/suite/intl402/ch12/12.3/12.3.2_TLT_2.js b/test/suite/intl402/ch12/12.3/12.3.2_TLT_2.js index bf0a8ed36..bb72014a0 100644 --- a/test/suite/intl402/ch12/12.3/12.3.2_TLT_2.js +++ b/test/suite/intl402/ch12/12.3/12.3.2_TLT_2.js @@ -1,16 +1,15 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that the behavior of a Record is not affected by adversarial - * changes to Object.prototype. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the behavior of a Record is not affected by + adversarial changes to Object.prototype. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintProperties(["weekday", "era", "year", "month", "day", "hour", "minute", "second", "inDST"]); var format = new Intl.DateTimeFormat(); var time = format.format(); - diff --git a/test/suite/intl402/ch12/12.3/12.3.3.js b/test/suite/intl402/ch12/12.3/12.3.3.js index b5735c350..0ad6cb21b 100644 --- a/test/suite/intl402/ch12/12.3/12.3.3.js +++ b/test/suite/intl402/ch12/12.3/12.3.3.js @@ -1,13 +1,14 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that the object returned by Intl.DateTimeFormat.prototype.resolvedOptions - * has the right properties. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that the object returned by + Intl.DateTimeFormat.prototype.resolvedOptions has the right + properties. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var actual = new Intl.DateTimeFormat().resolvedOptions(); @@ -49,4 +50,3 @@ mustNotHaveProperty(actual, "minute"); mustNotHaveProperty(actual, "second"); mustNotHaveProperty(actual, "timeZoneName"); mustNotHaveProperty(actual, "hour12"); - diff --git a/test/suite/intl402/ch12/12.3/12.3.3_L15.js b/test/suite/intl402/ch12/12.3/12.3.3_L15.js index 1b4079ebe..3c5d380fd 100644 --- a/test/suite/intl402/ch12/12.3/12.3.3_L15.js +++ b/test/suite/intl402/ch12/12.3/12.3.3_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat.prototype.resolvedOptions - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.DateTimeFormat.prototype.resolvedOptions meets + the requirements for built-in objects defined by the introduction + of chapter 15 of the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.DateTimeFormat.prototype.resolvedOptions, true, false, [], 0); - diff --git a/test/suite/intl402/ch12/12.3/12.3_L15.js b/test/suite/intl402/ch12/12.3/12.3_L15.js index 55f1c16ca..ddefa389a 100644 --- a/test/suite/intl402/ch12/12.3/12.3_L15.js +++ b/test/suite/intl402/ch12/12.3/12.3_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat.prototype - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Intl.DateTimeFormat.prototype meets the requirements + for built-in objects defined by the introduction of chapter 15 of + the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Intl.DateTimeFormat.prototype, false, false, ["constructor", "format", "resolvedOptions"]); - diff --git a/test/suite/intl402/ch12/12.3/12.3_a.js b/test/suite/intl402/ch12/12.3/12.3_a.js index e1d795b91..398e5a94d 100644 --- a/test/suite/intl402/ch12/12.3/12.3_a.js +++ b/test/suite/intl402/ch12/12.3/12.3_a.js @@ -1,11 +1,12 @@ // Copyright 2012 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat.prototype is an object that - * has been initialized as an Intl.DateTimeFormat. - * @author: Roozbeh Pournader - */ +/*--- +description: > + Tests that Intl.DateTimeFormat.prototype is an object that has + been initialized as an Intl.DateTimeFormat. +author:: Roozbeh Pournader +---*/ // test by calling a function that would fail if "this" were not an object // initialized as an Intl.DateTimeFormat @@ -13,4 +14,3 @@ if (typeof Intl.DateTimeFormat.prototype.format(0) !== "string") { $ERROR("Intl.DateTimeFormat's prototype is not an object that has been " + "initialized as an Intl.DateTimeFormat"); } - diff --git a/test/suite/intl402/ch12/12.3/12.3_b.js b/test/suite/intl402/ch12/12.3/12.3_b.js index d905bf571..85cbf4787 100644 --- a/test/suite/intl402/ch12/12.3/12.3_b.js +++ b/test/suite/intl402/ch12/12.3/12.3_b.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat.prototype functions throw a - * TypeError if called on a non-object value or an object that hasn't been - * initialized as a DateTimeFormat. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Intl.DateTimeFormat.prototype functions throw a + TypeError if called on a non-object value or an object that hasn't + been initialized as a DateTimeFormat. +author: Norbert Lindenberg +---*/ var functions = { "format getter": Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format").get, @@ -30,4 +31,3 @@ Object.getOwnPropertyNames(functions).forEach(function (functionName) { } }); }); - diff --git a/test/suite/intl402/ch12/12.4/12.4_a.js b/test/suite/intl402/ch12/12.4/12.4_a.js index 8e8d5954c..71dfb1ff5 100644 --- a/test/suite/intl402/ch12/12.4/12.4_a.js +++ b/test/suite/intl402/ch12/12.4/12.4_a.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Intl.DateTimeFormat instances have the specified properties. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Intl.DateTimeFormat instances have the specified + properties. +author: Norbert Lindenberg +---*/ var obj = new Intl.DateTimeFormat(); @@ -12,4 +14,3 @@ var toStringValue = Object.prototype.toString.call(obj); if (toStringValue !== "[object Object]") { $ERROR("Intl.DateTimeFormat instance produces wrong [[Class]] - toString returns " + toStringValue + "."); } - diff --git a/test/suite/intl402/ch13/13.1/13.1.1_1.js b/test/suite/intl402/ch13/13.1/13.1.1_1.js index 37be9711b..b8763c1fb 100644 --- a/test/suite/intl402/ch13/13.1/13.1.1_1.js +++ b/test/suite/intl402/ch13/13.1/13.1.1_1.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that localeCompare rejects values that can't be coerced to an object. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that localeCompare rejects values that can't be coerced to + an object. +author: Norbert Lindenberg +---*/ var invalidValues = [undefined, null]; @@ -21,4 +23,3 @@ invalidValues.forEach(function (value) { $ERROR("String.prototype.localeCompare rejected this = " + value + " with wrong error " + error.name + "."); } }); - diff --git a/test/suite/intl402/ch13/13.1/13.1.1_2.js b/test/suite/intl402/ch13/13.1/13.1.1_2.js index bad7c0fdd..3485a7ab1 100644 --- a/test/suite/intl402/ch13/13.1/13.1.1_2.js +++ b/test/suite/intl402/ch13/13.1/13.1.1_2.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that localeCompare coerces this to a string. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that localeCompare coerces this to a string. +author: Norbert Lindenberg +---*/ var thisValues = [true, 5, "hello", {toString: function () { return "good bye"; }}]; var thatValues = ["true", "5", "hello", "good bye"]; @@ -23,4 +23,3 @@ for (i = 0; i < thisValues.length; i++) { } } } - diff --git a/test/suite/intl402/ch13/13.1/13.1.1_3_1.js b/test/suite/intl402/ch13/13.1/13.1.1_3_1.js index 113a2d9aa..33a341bfe 100644 --- a/test/suite/intl402/ch13/13.1/13.1.1_3_1.js +++ b/test/suite/intl402/ch13/13.1/13.1.1_3_1.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that localeCompare coerces that to a string. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that localeCompare coerces that to a string. +author: Norbert Lindenberg +---*/ var thisValues = ["true", "5", "hello", "good bye"]; var thatValues = [true, 5, "hello", {toString: function () { return "good bye"; }}]; @@ -23,4 +23,3 @@ for (i = 0; i < thisValues.length; i++) { } } } - diff --git a/test/suite/intl402/ch13/13.1/13.1.1_3_2.js b/test/suite/intl402/ch13/13.1/13.1.1_3_2.js index 441166c9f..d11266a83 100644 --- a/test/suite/intl402/ch13/13.1/13.1.1_3_2.js +++ b/test/suite/intl402/ch13/13.1/13.1.1_3_2.js @@ -1,11 +1,12 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that String.prototype.localeCompare treats a missing - * "that" argument, undefined, and "undefined" as equivalent. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that String.prototype.localeCompare treats a missing "that" + argument, undefined, and "undefined" as equivalent. +author: Norbert Lindenberg +---*/ var thisValues = ["a", "t", "u", "undefined", "UNDEFINED", "nicht definiert", "xyz", "未定义"]; @@ -19,4 +20,3 @@ for (i = 0; i < thisValues.length; i++) { $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\"."); } } - diff --git a/test/suite/intl402/ch13/13.1/13.1.1_6_1.js b/test/suite/intl402/ch13/13.1/13.1.1_6_1.js index 30607d317..46bcaf8f9 100644 --- a/test/suite/intl402/ch13/13.1/13.1.1_6_1.js +++ b/test/suite/intl402/ch13/13.1/13.1.1_6_1.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that String.prototype.localeCompare throws the same exceptions as Intl.Collator. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that String.prototype.localeCompare throws the same + exceptions as Intl.Collator. +author: Norbert Lindenberg +---*/ var locales = [null, [NaN], ["i"], ["de_DE"]]; var options = [ @@ -62,4 +64,3 @@ options.forEach(function (options) { " for options " + JSON.stringify(options) + "; expected " + referenceError.name + "."); } }); - diff --git a/test/suite/intl402/ch13/13.1/13.1.1_6_2.js b/test/suite/intl402/ch13/13.1/13.1.1_6_2.js index 481a7803b..3d48267c3 100644 --- a/test/suite/intl402/ch13/13.1/13.1.1_6_2.js +++ b/test/suite/intl402/ch13/13.1/13.1.1_6_2.js @@ -1,13 +1,13 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that String.prototype.localeCompare uses the standard - * built-in Intl.Collator constructor. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that String.prototype.localeCompare uses the standard + built-in Intl.Collator constructor. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintDataProperty(Intl, "Collator"); "a".localeCompare("b"); diff --git a/test/suite/intl402/ch13/13.1/13.1.1_7.js b/test/suite/intl402/ch13/13.1/13.1.1_7.js index f0c588f64..429aed591 100644 --- a/test/suite/intl402/ch13/13.1/13.1.1_7.js +++ b/test/suite/intl402/ch13/13.1/13.1.1_7.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that localeCompare produces the same results as Intl.Collator. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that localeCompare produces the same results as + Intl.Collator. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var strings = ["d", "O", "od", "oe", "of", "ö", "o\u0308", "X", "y", "Z", "Z.", "𠮷野家", "吉野家", "!A", "A", "b", "C"]; var locales = [undefined, ["de"], ["de-u-co-phonebk"], ["en"], ["ja"], ["sv"]]; @@ -30,4 +31,3 @@ locales.forEach(function (locales) { } }); }); - diff --git a/test/suite/intl402/ch13/13.1/13.1.1_L15.js b/test/suite/intl402/ch13/13.1/13.1.1_L15.js index d921de000..bd1e39611 100644 --- a/test/suite/intl402/ch13/13.1/13.1.1_L15.js +++ b/test/suite/intl402/ch13/13.1/13.1.1_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that String.prototype.localeCompare - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that String.prototype.localeCompare meets the requirements + for built-in objects defined by the introduction of chapter 15 of + the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(String.prototype.localeCompare, true, false, [], 1); - diff --git a/test/suite/intl402/ch13/13.2/13.2.1_1.js b/test/suite/intl402/ch13/13.2/13.2.1_1.js index da1ee8fe5..8ffe0adae 100644 --- a/test/suite/intl402/ch13/13.2/13.2.1_1.js +++ b/test/suite/intl402/ch13/13.2/13.2.1_1.js @@ -1,10 +1,10 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that toLocaleString handles "this Number value" correctly. - * @author Norbert Lindenberg - */ +/*--- +description: Tests that toLocaleString handles "this Number value" correctly. +author: Norbert Lindenberg +---*/ var invalidValues = [undefined, null, "5", false, {valueOf: function () { return 5; }}]; var validValues = [5, NaN, -1234567.89, -Infinity]; @@ -34,4 +34,3 @@ validValues.forEach(function (value) { value + " and corresponding Number object: " + valueResult + " vs. " + objectResult + "."); } }); - diff --git a/test/suite/intl402/ch13/13.2/13.2.1_4_1.js b/test/suite/intl402/ch13/13.2/13.2.1_4_1.js index e6e0b1163..414548da7 100644 --- a/test/suite/intl402/ch13/13.2/13.2.1_4_1.js +++ b/test/suite/intl402/ch13/13.2/13.2.1_4_1.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Number.prototype.toLocaleString throws the same exceptions as Intl.NumberFormat. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Number.prototype.toLocaleString throws the same + exceptions as Intl.NumberFormat. +author: Norbert Lindenberg +---*/ var locales = [null, [NaN], ["i"], ["de_DE"]]; var options = [ @@ -64,4 +66,3 @@ options.forEach(function (options) { " for options " + JSON.stringify(options) + "; expected " + referenceError.name + "."); } }); - diff --git a/test/suite/intl402/ch13/13.2/13.2.1_4_2.js b/test/suite/intl402/ch13/13.2/13.2.1_4_2.js index a79cfffde..3df98305e 100644 --- a/test/suite/intl402/ch13/13.2/13.2.1_4_2.js +++ b/test/suite/intl402/ch13/13.2/13.2.1_4_2.js @@ -1,13 +1,13 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Number.prototype.toLocaleString uses the standard - * built-in Intl.NumberFormat constructor. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Number.prototype.toLocaleString uses the standard + built-in Intl.NumberFormat constructor. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintDataProperty(Intl, "NumberFormat"); (0.0).toLocaleString(); diff --git a/test/suite/intl402/ch13/13.2/13.2.1_5.js b/test/suite/intl402/ch13/13.2/13.2.1_5.js index eb953b64d..76e23b8e2 100644 --- a/test/suite/intl402/ch13/13.2/13.2.1_5.js +++ b/test/suite/intl402/ch13/13.2/13.2.1_5.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Number.prototype.toLocaleString produces the same results as Intl.NumberFormat. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Number.prototype.toLocaleString produces the same + results as Intl.NumberFormat. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var numbers = [0, -0, 1, -1, 5.5, 123, -123, -123.45, 123.44501, 0.001234, -0.00000000123, 0.00000000000000000000000000000123, 1.2, 0.0000000012344501, @@ -38,4 +39,3 @@ locales.forEach(function (locales) { } }); }); - diff --git a/test/suite/intl402/ch13/13.2/13.2.1_L15.js b/test/suite/intl402/ch13/13.2/13.2.1_L15.js index 8b53f7496..436c1922f 100644 --- a/test/suite/intl402/ch13/13.2/13.2.1_L15.js +++ b/test/suite/intl402/ch13/13.2/13.2.1_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Number.prototype.toLocaleString - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Number.prototype.toLocaleString meets the requirements + for built-in objects defined by the introduction of chapter 15 of + the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Number.prototype.toLocaleString, true, false, [], 0); - diff --git a/test/suite/intl402/ch13/13.3/13.3.0_1.js b/test/suite/intl402/ch13/13.3/13.3.0_1.js index 0f2902162..5896d610a 100644 --- a/test/suite/intl402/ch13/13.3/13.3.0_1.js +++ b/test/suite/intl402/ch13/13.3/13.3.0_1.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Date.prototype.toLocaleString & Co. handle "this time value" correctly. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Date.prototype.toLocaleString & Co. handle "this time + value" correctly. +author: Norbert Lindenberg +---*/ var functions = { toLocaleString: Date.prototype.toLocaleString, @@ -29,4 +31,3 @@ Object.getOwnPropertyNames(functions).forEach(function (p) { } }); }); - diff --git a/test/suite/intl402/ch13/13.3/13.3.0_2.js b/test/suite/intl402/ch13/13.3/13.3.0_2.js index 7d5f32fa6..034d17cb3 100644 --- a/test/suite/intl402/ch13/13.3/13.3.0_2.js +++ b/test/suite/intl402/ch13/13.3/13.3.0_2.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Date.prototype.toLocaleString & Co. handle non-finite values correctly. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Date.prototype.toLocaleString & Co. handle non-finite + values correctly. +author: Norbert Lindenberg +---*/ var functions = { toLocaleString: Date.prototype.toLocaleString, @@ -23,4 +25,3 @@ Object.getOwnPropertyNames(functions).forEach(function (p) { } }); }); - diff --git a/test/suite/intl402/ch13/13.3/13.3.0_6_1.js b/test/suite/intl402/ch13/13.3/13.3.0_6_1.js index c97b240b4..a3f241581 100644 --- a/test/suite/intl402/ch13/13.3/13.3.0_6_1.js +++ b/test/suite/intl402/ch13/13.3/13.3.0_6_1.js @@ -1,10 +1,12 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Date.prototype.toLocaleString & Co. throws the same exceptions as Intl.DateTimeFormat. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that Date.prototype.toLocaleString & Co. throws the same + exceptions as Intl.DateTimeFormat. +author: Norbert Lindenberg +---*/ var functions = { toLocaleString: Date.prototype.toLocaleString, @@ -71,4 +73,3 @@ Object.getOwnPropertyNames(functions).forEach(function (p) { } }); }); - diff --git a/test/suite/intl402/ch13/13.3/13.3.0_6_2.js b/test/suite/intl402/ch13/13.3/13.3.0_6_2.js index dcce05906..3dc637881 100644 --- a/test/suite/intl402/ch13/13.3/13.3.0_6_2.js +++ b/test/suite/intl402/ch13/13.3/13.3.0_6_2.js @@ -1,13 +1,13 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Date.prototype.toLocaleString & Co. use the standard - * built-in Intl.DateTimeFormat constructor. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Date.prototype.toLocaleString & Co. use the standard + built-in Intl.DateTimeFormat constructor. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ taintDataProperty(Intl, "DateTimeFormat"); new Date().toLocaleString(); diff --git a/test/suite/intl402/ch13/13.3/13.3.0_7.js b/test/suite/intl402/ch13/13.3/13.3.0_7.js index fe7c9271d..3a9691dbf 100644 --- a/test/suite/intl402/ch13/13.3/13.3.0_7.js +++ b/test/suite/intl402/ch13/13.3/13.3.0_7.js @@ -1,12 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @description Tests that Date.prototype.toLocaleString & Co. produces the same results as Intl.DateTimeFormat. - * @author Norbert Lindenberg - */ - -$INCLUDE("testIntl.js"); +/*--- +description: > + Tests that Date.prototype.toLocaleString & Co. produces the same + results as Intl.DateTimeFormat. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ var functions = { toLocaleString: [Date.prototype.toLocaleString, @@ -55,4 +56,3 @@ Object.getOwnPropertyNames(functions).forEach(function (p) { }); }); }); - diff --git a/test/suite/intl402/ch13/13.3/13.3.1_L15.js b/test/suite/intl402/ch13/13.3/13.3.1_L15.js index a8c697c07..6f57f2691 100644 --- a/test/suite/intl402/ch13/13.3/13.3.1_L15.js +++ b/test/suite/intl402/ch13/13.3/13.3.1_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Date.prototype.toLocaleString - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Date.prototype.toLocaleString meets the requirements + for built-in objects defined by the introduction of chapter 15 of + the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Date.prototype.toLocaleString, true, false, [], 0); - diff --git a/test/suite/intl402/ch13/13.3/13.3.2_L15.js b/test/suite/intl402/ch13/13.3/13.3.2_L15.js index 5eeed944e..bfae24b82 100644 --- a/test/suite/intl402/ch13/13.3/13.3.2_L15.js +++ b/test/suite/intl402/ch13/13.3/13.3.2_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Date.prototype.toLocaleDateString - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Date.prototype.toLocaleDateString meets the + requirements for built-in objects defined by the introduction of + chapter 15 of the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Date.prototype.toLocaleDateString, true, false, [], 0); - diff --git a/test/suite/intl402/ch13/13.3/13.3.3_L15.js b/test/suite/intl402/ch13/13.3/13.3.3_L15.js index dac7c3513..b252d4cc7 100644 --- a/test/suite/intl402/ch13/13.3/13.3.3_L15.js +++ b/test/suite/intl402/ch13/13.3/13.3.3_L15.js @@ -1,14 +1,13 @@ // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that Date.prototype.toLocaleTimeString - * meets the requirements for built-in objects defined by the introduction of - * chapter 15 of the ECMAScript Language Specification. - * @author Norbert Lindenberg - */ - -$INCLUDE("testBuiltInObject.js"); +/*--- +description: > + Tests that Date.prototype.toLocaleTimeString meets the + requirements for built-in objects defined by the introduction of + chapter 15 of the ECMAScript Language Specification. +author: Norbert Lindenberg +includes: [testBuiltInObject.js] +---*/ testBuiltInObject(Date.prototype.toLocaleTimeString, true, false, [], 0); - |