diff --git a/test/built-ins/decodeURI/prop-desc.js b/test/built-ins/decodeURI/prop-desc.js new file mode 100644 index 0000000000..8f599cb66e --- /dev/null +++ b/test/built-ins/decodeURI/prop-desc.js @@ -0,0 +1,17 @@ +// Copyright (C) 2019 Bocoup. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-decodeuri-encodeduri +description: > + Property descriptor for decodeURI +info: | + 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(this, "decodeURI"); +verifyWritable(this, "decodeURI"); +verifyConfigurable(this, "decodeURI"); diff --git a/test/built-ins/decodeURIComponent/prop-desc.js b/test/built-ins/decodeURIComponent/prop-desc.js new file mode 100644 index 0000000000..820c51678f --- /dev/null +++ b/test/built-ins/decodeURIComponent/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2019 Bocoup. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-decodeuricomponent-encodeduricomponent +description: Property descriptor for decodeURIComponent +info: | + 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(this, "decodeURIComponent"); +verifyWritable(this, "decodeURIComponent"); +verifyConfigurable(this, "decodeURIComponent"); diff --git a/test/built-ins/encodeURI/prop-desc.js b/test/built-ins/encodeURI/prop-desc.js new file mode 100644 index 0000000000..72ca41f8f9 --- /dev/null +++ b/test/built-ins/encodeURI/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2019 Bocoup. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-encodeuri-uri +description: Property descriptor for encodeURI +info: | + 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(this, "encodeURI"); +verifyWritable(this, "encodeURI"); +verifyConfigurable(this, "encodeURI"); diff --git a/test/built-ins/encodeURIComponent/prop-desc.js b/test/built-ins/encodeURIComponent/prop-desc.js new file mode 100644 index 0000000000..59b3eb586d --- /dev/null +++ b/test/built-ins/encodeURIComponent/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2019 Bocoup. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-encodeuricomponent-uricomponent +description: Property descriptor for encodeURIComponent +info: | + 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(this, "encodeURIComponent"); +verifyWritable(this, "encodeURIComponent"); +verifyConfigurable(this, "encodeURIComponent"); diff --git a/test/built-ins/eval/prop-desc-enumerable.js b/test/built-ins/eval/prop-desc-enumerable.js deleted file mode 100644 index 08a2a13963..0000000000 --- a/test/built-ins/eval/prop-desc-enumerable.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: The eval property has the attribute DontEnum -esid: sec-eval-x -description: Checking use propertyIsEnumerable, for-in ----*/ - -//CHECK#1 -if (this.propertyIsEnumerable('eval') !== false) { - $ERROR('#1: this.propertyIsEnumerable(\'eval\') === false. Actual: ' + (this.propertyIsEnumerable('eval'))); -} - -//CHECK#2 -var result = true; -for (var p in this) { - if (p === "eval") { - result = false; - } -} - -if (result !== true) { - $ERROR('#2: result = true; for (p in this) { if (p === "eval") result = false; } result === true;'); -} diff --git a/test/built-ins/eval/prop-desc.js b/test/built-ins/eval/prop-desc.js new file mode 100644 index 0000000000..33220788fa --- /dev/null +++ b/test/built-ins/eval/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2019 Bocoup. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-eval-x +description: Property descriptor for eval +info: | + 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(this, "eval"); +verifyWritable(this, "eval"); +verifyConfigurable(this, "eval"); diff --git a/test/built-ins/global/S10.2.3_A2.2_T2.js b/test/built-ins/global/S10.2.3_A2.2_T2.js deleted file mode 100644 index 1a7ca58628..0000000000 --- a/test/built-ins/global/S10.2.3_A2.2_T2.js +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: Global object properties have attributes { DontEnum } -es5id: 10.2.3_A2.2_T2 -description: Function execution context - Function Properties -flags: [noStrict] ----*/ - -function test() { - //CHECK#1 - for (var x in this) { - if (x === 'eval') { - $ERROR("#1: 'eval' have attribute DontEnum"); - } else if (x === 'parseInt') { - $ERROR("#1: 'parseInt' have attribute DontEnum"); - } else if (x === 'parseFloat') { - $ERROR("#1: 'parseFloat' have attribute DontEnum"); - } else if (x === 'isNaN') { - $ERROR("#1: 'isNaN' have attribute DontEnum"); - } else if (x === 'isFinite') { - $ERROR("#1: 'isFinite' have attribute DontEnum"); - } else if (x === 'decodeURI') { - $ERROR("#1: 'decodeURI' have attribute DontEnum"); - } else if (x === 'decodeURIComponent') { - $ERROR("#1: 'decodeURIComponent' have attribute DontEnum"); - } else if (x === 'encodeURI') { - $ERROR("#1: 'encodeURI' have attribute DontEnum"); - } else if (x === 'encodeURIComponent') { - $ERROR("#1: 'encodeURIComponent' have attribute DontEnum"); - } - } -} - -test(); diff --git a/test/built-ins/parseFloat/prop-desc.js b/test/built-ins/parseFloat/prop-desc.js new file mode 100644 index 0000000000..5016eb1834 --- /dev/null +++ b/test/built-ins/parseFloat/prop-desc.js @@ -0,0 +1,17 @@ +// Copyright (C) 2019 Bocoup. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-parsefloat-string +description: > + Property descriptor for parseFloat +info: | + 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(this, "parseFloat"); +verifyWritable(this, "parseFloat"); +verifyConfigurable(this, "parseFloat"); diff --git a/test/built-ins/parseInt/prop-desc.js b/test/built-ins/parseInt/prop-desc.js new file mode 100644 index 0000000000..9b148ad0bf --- /dev/null +++ b/test/built-ins/parseInt/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2019 Bocoup. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-parseint-string-radix +description: Property descriptor for parseInt +info: | + 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(this, "parseInt"); +verifyWritable(this, "parseInt"); +verifyConfigurable(this, "parseInt");