Skip to content
Snippets Groups Projects
Commit 4337b396 authored by André Bargull's avatar André Bargull Committed by Rick Waldron
Browse files

Add separate test files for property attributes of Intl properties

parent 513a3056
No related branches found
No related tags found
No related merge requests found
Showing
with 257 additions and 13 deletions
......@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format").get , true, false, []);
testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format").get , true, false);
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.datetimeformat.prototype.format
description: >
"format" property of Intl.DateTimeFormat.prototype.
info: |
get Intl.DateTimeFormat.prototype.format
7 Requirements for Standard Built-in ECMAScript Objects
Unless specified otherwise in this document, the objects, functions, and constructors
described in this standard are subject to the generic requirements and restrictions
specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
Specification, 9th edition, clause 17, or successor.
17 ECMAScript Standard Built-in Objects:
Every accessor property described in clauses 18 through 26 and in Annex B.2 has the
attributes { [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
If only a get accessor function is described, the set accessor function is the default
value, undefined. If only a set accessor is described the get accessor is the default
value, undefined.
includes: [propertyHelper.js]
---*/
var desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format");
assert.sameValue(desc.set, undefined);
assert.sameValue(typeof desc.get, "function");
verifyNotEnumerable(Intl.DateTimeFormat.prototype, "format");
verifyConfigurable(Intl.DateTimeFormat.prototype, "format");
......@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Intl.DateTimeFormat.prototype.resolvedOptions, true, false, []);
testBuiltInObject(Intl.DateTimeFormat.prototype.resolvedOptions, true, false);
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.datetimeformat.prototype.resolvedoptions
description: >
"resolvedOptions" property of Intl.DateTimeFormat.prototype.
info: |
Intl.DateTimeFormat.prototype.resolvedOptions ()
7 Requirements for Standard Built-in ECMAScript Objects
Unless specified otherwise in this document, the objects, functions, and constructors
described in this standard are subject to the generic requirements and restrictions
specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
Specification, 9th edition, clause 17, or successor.
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2 has the
attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
unless otherwise specified.
includes: [propertyHelper.js]
---*/
verifyNotEnumerable(Intl.DateTimeFormat.prototype, "resolvedOptions");
verifyWritable(Intl.DateTimeFormat.prototype, "resolvedOptions");
verifyConfigurable(Intl.DateTimeFormat.prototype, "resolvedOptions");
......@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Intl.DateTimeFormat.supportedLocalesOf, true, false, []);
testBuiltInObject(Intl.DateTimeFormat.supportedLocalesOf, true, false);
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.datetimeformat.supportedlocalesof
description: >
"supportedLocalesOf" property of Intl.DateTimeFormat.
info: |
Intl.DateTimeFormat.supportedLocalesOf ( locales [ , options ] )
7 Requirements for Standard Built-in ECMAScript Objects
Unless specified otherwise in this document, the objects, functions, and constructors
described in this standard are subject to the generic requirements and restrictions
specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
Specification, 9th edition, clause 17, or successor.
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2 has the
attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
unless otherwise specified.
includes: [propertyHelper.js]
---*/
verifyNotEnumerable(Intl.DateTimeFormat, "supportedLocalesOf");
verifyWritable(Intl.DateTimeFormat, "supportedLocalesOf");
verifyConfigurable(Intl.DateTimeFormat, "supportedLocalesOf");
......@@ -11,5 +11,5 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(this.Intl, false, false, []);
testBuiltInObject(Intl, false, false, ["Collator", "NumberFormat", "DateTimeFormat"]);
testBuiltInObject(this.Intl, false, false);
testBuiltInObject(Intl, false, false);
......@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Number.prototype.toLocaleString, true, false, []);
testBuiltInObject(Number.prototype.toLocaleString, true, false);
......@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Intl.NumberFormat, true, true, ["supportedLocalesOf"]);
testBuiltInObject(Intl.NumberFormat, true, true);
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.numberformat-intro
description: >
"NumberFormat" property of Intl.
info: |
Intl.NumberFormat (...)
7 Requirements for Standard Built-in ECMAScript Objects
Unless specified otherwise in this document, the objects, functions, and constructors
described in this standard are subject to the generic requirements and restrictions
specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
Specification, 9th edition, clause 17, or successor.
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2 has the
attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
unless otherwise specified.
includes: [propertyHelper.js]
---*/
verifyNotEnumerable(Intl, "NumberFormat");
verifyWritable(Intl, "NumberFormat");
verifyConfigurable(Intl, "NumberFormat");
......@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Intl.NumberFormat.prototype, false, false, ["constructor", "format", "resolvedOptions"]);
testBuiltInObject(Intl.NumberFormat.prototype, false, false);
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.numberformat.prototype.constructor
description: >
"constructor" property of Intl.NumberFormat.prototype.
info: |
Intl.NumberFormat.prototype.constructor
7 Requirements for Standard Built-in ECMAScript Objects
Unless specified otherwise in this document, the objects, functions, and constructors
described in this standard are subject to the generic requirements and restrictions
specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
Specification, 9th edition, clause 17, or successor.
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2 has the
attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
unless otherwise specified.
includes: [propertyHelper.js]
---*/
verifyNotEnumerable(Intl.NumberFormat.prototype, "constructor");
verifyWritable(Intl.NumberFormat.prototype, "constructor");
verifyConfigurable(Intl.NumberFormat.prototype, "constructor");
......@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(new Intl.NumberFormat().format, true, false, []);
testBuiltInObject(new Intl.NumberFormat().format, true, false);
......@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get , true, false, []);
testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get , true, false);
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.numberformat.prototype.format
description: >
"format" property of Intl.NumberFormat.prototype.
info: |
get Intl.NumberFormat.prototype.format
7 Requirements for Standard Built-in ECMAScript Objects
Unless specified otherwise in this document, the objects, functions, and constructors
described in this standard are subject to the generic requirements and restrictions
specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
Specification, 9th edition, clause 17, or successor.
17 ECMAScript Standard Built-in Objects:
Every accessor property described in clauses 18 through 26 and in Annex B.2 has the
attributes { [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
If only a get accessor function is described, the set accessor function is the default
value, undefined. If only a set accessor is described the get accessor is the default
value, undefined.
includes: [propertyHelper.js]
---*/
var desc = Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format");
assert.sameValue(desc.set, undefined);
assert.sameValue(typeof desc.get, "function");
verifyNotEnumerable(Intl.NumberFormat.prototype, "format");
verifyConfigurable(Intl.NumberFormat.prototype, "format");
......@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Intl.NumberFormat.prototype.resolvedOptions, true, false, []);
testBuiltInObject(Intl.NumberFormat.prototype.resolvedOptions, true, false);
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.numberformat.prototype.resolvedoptions
description: >
"resolvedOptions" property of Intl.NumberFormat.prototype.
info: |
Intl.NumberFormat.prototype.resolvedOptions ()
7 Requirements for Standard Built-in ECMAScript Objects
Unless specified otherwise in this document, the objects, functions, and constructors
described in this standard are subject to the generic requirements and restrictions
specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
Specification, 9th edition, clause 17, or successor.
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2 has the
attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
unless otherwise specified.
includes: [propertyHelper.js]
---*/
verifyNotEnumerable(Intl.NumberFormat.prototype, "resolvedOptions");
verifyWritable(Intl.NumberFormat.prototype, "resolvedOptions");
verifyConfigurable(Intl.NumberFormat.prototype, "resolvedOptions");
......@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Intl.NumberFormat.supportedLocalesOf, true, false, []);
testBuiltInObject(Intl.NumberFormat.supportedLocalesOf, true, false);
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.numberformat.supportedlocalesof
description: >
"supportedLocalesOf" property of Intl.NumberFormat.
info: |
Intl.NumberFormat.supportedLocalesOf ( locales [ , options ] )
7 Requirements for Standard Built-in ECMAScript Objects
Unless specified otherwise in this document, the objects, functions, and constructors
described in this standard are subject to the generic requirements and restrictions
specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
Specification, 9th edition, clause 17, or successor.
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2 has the
attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
unless otherwise specified.
includes: [propertyHelper.js]
---*/
verifyNotEnumerable(Intl.NumberFormat, "supportedLocalesOf");
verifyWritable(Intl.NumberFormat, "supportedLocalesOf");
verifyConfigurable(Intl.NumberFormat, "supportedLocalesOf");
......@@ -11,4 +11,4 @@ author: Zibi Braniecki
includes: [testBuiltInObject.js]
---*/
testBuiltInObject(Intl.PluralRules, true, true, ["supportedLocalesOf"]);
testBuiltInObject(Intl.PluralRules, true, true);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment