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

Add separate test files to test the length property of Intl functions

parent c2c274fe
No related branches found
No related tags found
No related merge requests found
...@@ -11,4 +11,4 @@ author: Zibi Braniecki ...@@ -11,4 +11,4 @@ author: Zibi Braniecki
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(Intl.PluralRules.prototype.resolvedOptions, true, false, [], 0); testBuiltInObject(Intl.PluralRules.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.pluralrules.prototype.resolvedoptions
description: >
Intl.PluralRules.prototype.resolvedOptions.length is 0.
info: |
Intl.PluralRules.prototype.resolvedOptions ()
17 ECMAScript Standard Built-in Objects:
Every built-in function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Intl.PluralRules.prototype.resolvedOptions.length, 0);
verifyNotEnumerable(Intl.PluralRules.prototype.resolvedOptions, "length");
verifyNotWritable(Intl.PluralRules.prototype.resolvedOptions, "length");
verifyConfigurable(Intl.PluralRules.prototype.resolvedOptions, "length");
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.pluralrules.prototype.select
description: >
Intl.PluralRules.prototype.select is 1.
info: |
Intl.PluralRules.prototype.select( value )
17 ECMAScript Standard Built-in Objects:
Every built-in function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Intl.PluralRules.prototype.select.length, 1);
verifyNotEnumerable(Intl.PluralRules.prototype.select, "length");
verifyNotWritable(Intl.PluralRules.prototype.select, "length");
verifyConfigurable(Intl.PluralRules.prototype.select, "length");
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.pluralrules.supportedlocalesof
description: >
Intl.PluralRules.supportedLocalesOf.length is 1.
info: |
Intl.PluralRules.supportedLocalesOf ( locales [ , options ] )
17 ECMAScript Standard Built-in Objects:
Every built-in function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(Intl.PluralRules.supportedLocalesOf.length, 1);
verifyNotEnumerable(Intl.PluralRules.supportedLocalesOf, "length");
verifyNotWritable(Intl.PluralRules.supportedLocalesOf, "length");
verifyConfigurable(Intl.PluralRules.supportedLocalesOf, "length");
...@@ -11,4 +11,4 @@ author: Zibi Braniecki ...@@ -11,4 +11,4 @@ author: Zibi Braniecki
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(Intl.PluralRules.supportedLocalesOf, true, false, [], 1); testBuiltInObject(Intl.PluralRules.supportedLocalesOf, true, false, []);
...@@ -11,4 +11,4 @@ author: Norbert Lindenberg ...@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(String.prototype.localeCompare, true, false, [], 1); testBuiltInObject(String.prototype.localeCompare, true, false, []);
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sup-String.prototype.localeCompare
description: >
String.prototype.localeCompare.length is 1.
info: |
String.prototype.localeCompare ( that [ , locales [ , options ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
assert.sameValue(String.prototype.localeCompare.length, 1);
verifyNotEnumerable(String.prototype.localeCompare, "length");
verifyNotWritable(String.prototype.localeCompare, "length");
verifyConfigurable(String.prototype.localeCompare, "length");
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