From 2fa2c91899c6aa5acc6188bf1d225279ab96e50f Mon Sep 17 00:00:00 2001 From: deathbearbrown <deathbearbrown@gmail.com> Date: Thu, 27 Jul 2017 09:17:54 -0700 Subject: [PATCH] add esid to boolean frontmatter --- test/built-ins/Boolean/S15.6.1.1_A1_T1.js | 1 + test/built-ins/Boolean/S15.6.1.1_A1_T2.js | 1 + test/built-ins/Boolean/S15.6.1.1_A1_T3.js | 1 + test/built-ins/Boolean/S15.6.1.1_A1_T4.js | 1 + test/built-ins/Boolean/S15.6.1.1_A1_T5.js | 1 + test/built-ins/Boolean/S15.6.1.1_A2.js | 1 + test/built-ins/Boolean/S15.6.2.1_A1.js | 1 + test/built-ins/Boolean/S15.6.2.1_A2.js | 1 + test/built-ins/Boolean/S15.6.2.1_A3.js | 1 + test/built-ins/Boolean/S15.6.2.1_A4.js | 1 + test/built-ins/Boolean/S15.6.3_A1.js | 1 + test/built-ins/Boolean/S15.6.3_A2.js | 1 + test/built-ins/Boolean/S15.6.3_A3.js | 1 + test/built-ins/Boolean/S9.2_A1_T1.js | 1 + test/built-ins/Boolean/S9.2_A2_T1.js | 3 +- test/built-ins/Boolean/S9.2_A3_T1.js | 5 +-- test/built-ins/Boolean/S9.2_A4_T1.js | 3 +- test/built-ins/Boolean/S9.2_A4_T3.js | 17 +++++----- test/built-ins/Boolean/S9.2_A5_T1.js | 1 + test/built-ins/Boolean/S9.2_A5_T3.js | 5 +-- test/built-ins/Boolean/S9.2_A6_T1.js | 39 ++++++++++++----------- test/built-ins/Boolean/symbol-coercion.js | 1 + 22 files changed, 55 insertions(+), 33 deletions(-) diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T1.js b/test/built-ins/Boolean/S15.6.1.1_A1_T1.js index b0776de1d5..c147adfbaa 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T1.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T1.js @@ -5,6 +5,7 @@ info: > Returns a boolean value (not a Boolean object) computed by ToBoolean(value) +esid: sec-terms-and-definitions-boolean-value es5id: 15.6.1.1_A1_T1 description: > Used values 1, new String("1"), new Object(1) and called without diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T2.js b/test/built-ins/Boolean/S15.6.1.1_A1_T2.js index 653eab894c..6d9c3abe38 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T2.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T2.js @@ -5,6 +5,7 @@ info: > Returns a boolean value (not a Boolean object) computed by ToBoolean(value) +esid: sec-terms-and-definitions-boolean-value es5id: 15.6.1.1_A1_T2 description: Used various number values as argument ---*/ diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T3.js b/test/built-ins/Boolean/S15.6.1.1_A1_T3.js index 3abba02ad6..678910d292 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T3.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T3.js @@ -5,6 +5,7 @@ info: > Returns a boolean value (not a Boolean object) computed by ToBoolean(value) +esid: sec-terms-and-definitions-boolean-value es5id: 15.6.1.1_A1_T3 description: Used various string values as argument ---*/ diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T4.js b/test/built-ins/Boolean/S15.6.1.1_A1_T4.js index 644b62ee50..97c03ebb94 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T4.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T4.js @@ -5,6 +5,7 @@ info: > Returns a boolean value (not a Boolean object) computed by ToBoolean(value) +esid: sec-terms-and-definitions-boolean-value es5id: 15.6.1.1_A1_T4 description: Used various undefined values and null as argument ---*/ diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js index e0fd8d8c77..628336ec55 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js @@ -5,6 +5,7 @@ info: > Returns a boolean value (not a Boolean object) computed by ToBoolean(value) +esid: sec-terms-and-definitions-boolean-value es5id: 15.6.1.1_A1_T5 description: Used various assigning values to any variable as argument ---*/ diff --git a/test/built-ins/Boolean/S15.6.1.1_A2.js b/test/built-ins/Boolean/S15.6.1.1_A2.js index d613054d6e..9e5aa40618 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A2.js +++ b/test/built-ins/Boolean/S15.6.1.1_A2.js @@ -3,6 +3,7 @@ /*--- info: Boolean() returns false +esid: sec-terms-and-definitions-boolean-value es5id: 15.6.1.1_A2 description: Call Boolean() and check result ---*/ diff --git a/test/built-ins/Boolean/S15.6.2.1_A1.js b/test/built-ins/Boolean/S15.6.2.1_A1.js index f150c4863f..74faa032b5 100644 --- a/test/built-ins/Boolean/S15.6.2.1_A1.js +++ b/test/built-ins/Boolean/S15.6.2.1_A1.js @@ -5,6 +5,7 @@ info: > When Boolean is called as part of a new expression it is a constructor: it initialises the newly created object +esid: sec-boolean-constructor es5id: 15.6.2.1_A1 description: Checking type of the newly created object and it value ---*/ diff --git a/test/built-ins/Boolean/S15.6.2.1_A2.js b/test/built-ins/Boolean/S15.6.2.1_A2.js index 31fae5296c..938fb166c8 100644 --- a/test/built-ins/Boolean/S15.6.2.1_A2.js +++ b/test/built-ins/Boolean/S15.6.2.1_A2.js @@ -6,6 +6,7 @@ info: > The [[Prototype]] property of the newly constructed object is set to the original Boolean prototype object, the one that is the initial value of Boolean.prototype +esid: sec-boolean-constructor es5id: 15.6.2.1_A2 description: Checking prototype property of the newly created object ---*/ diff --git a/test/built-ins/Boolean/S15.6.2.1_A3.js b/test/built-ins/Boolean/S15.6.2.1_A3.js index fb1d497bcd..f751160c7c 100644 --- a/test/built-ins/Boolean/S15.6.2.1_A3.js +++ b/test/built-ins/Boolean/S15.6.2.1_A3.js @@ -5,6 +5,7 @@ info: > The [[Value]] property of the newly constructed object is set to ToBoolean(value) +esid: sec-boolean-constructor es5id: 15.6.2.1_A3 description: Checking value of the newly created object ---*/ diff --git a/test/built-ins/Boolean/S15.6.2.1_A4.js b/test/built-ins/Boolean/S15.6.2.1_A4.js index 5a0e8a2668..0041454ff9 100644 --- a/test/built-ins/Boolean/S15.6.2.1_A4.js +++ b/test/built-ins/Boolean/S15.6.2.1_A4.js @@ -5,6 +5,7 @@ info: > The [[Class]] property of the newly constructed object is set to "Boolean" +esid: sec-boolean-constructor es5id: 15.6.2.1_A4 description: For testing toString function is used ---*/ diff --git a/test/built-ins/Boolean/S15.6.3_A1.js b/test/built-ins/Boolean/S15.6.3_A1.js index d0d5637615..25168c58d9 100644 --- a/test/built-ins/Boolean/S15.6.3_A1.js +++ b/test/built-ins/Boolean/S15.6.3_A1.js @@ -3,6 +3,7 @@ /*--- info: The Boolean constructor has the property "prototype" +esid: sec-boolean.prototype es5id: 15.6.3_A1 description: Checking existence of the property "prototype" ---*/ diff --git a/test/built-ins/Boolean/S15.6.3_A2.js b/test/built-ins/Boolean/S15.6.3_A2.js index 484d506eb6..efb79104f7 100644 --- a/test/built-ins/Boolean/S15.6.3_A2.js +++ b/test/built-ins/Boolean/S15.6.3_A2.js @@ -5,6 +5,7 @@ info: > The value of the internal [[Prototype]] property of the Boolean constructor is the Function prototype object +esid: sec-boolean.prototype es5id: 15.6.3_A2 description: Checking prototype of the Boolean constructor ---*/ diff --git a/test/built-ins/Boolean/S15.6.3_A3.js b/test/built-ins/Boolean/S15.6.3_A3.js index bdbc7077b8..097fff4fbb 100644 --- a/test/built-ins/Boolean/S15.6.3_A3.js +++ b/test/built-ins/Boolean/S15.6.3_A3.js @@ -3,6 +3,7 @@ /*--- info: Boolean constructor has length property whose value is 1 +esid: sec-boolean.prototype es5id: 15.6.3_A3 description: Checking Boolean.length property ---*/ diff --git a/test/built-ins/Boolean/S9.2_A1_T1.js b/test/built-ins/Boolean/S9.2_A1_T1.js index c675931590..82277c2980 100644 --- a/test/built-ins/Boolean/S9.2_A1_T1.js +++ b/test/built-ins/Boolean/S9.2_A1_T1.js @@ -3,6 +3,7 @@ /*--- info: Result of boolean conversion from undefined value is false +esid: sec-toboolean es5id: 9.2_A1_T1 description: > Undefined, void and others are converted to Boolean by explicit diff --git a/test/built-ins/Boolean/S9.2_A2_T1.js b/test/built-ins/Boolean/S9.2_A2_T1.js index e80d53226b..8c17db9b31 100644 --- a/test/built-ins/Boolean/S9.2_A2_T1.js +++ b/test/built-ins/Boolean/S9.2_A2_T1.js @@ -3,11 +3,12 @@ /*--- info: Result of boolean conversion from null value is false +esid: sec-toboolean es5id: 9.2_A2_T1 description: null convert to Boolean by explicit transformation ---*/ // CHECK#1 if (Boolean(null) !== false) { - $ERROR('#1: Boolean(null) === false. Actual: ' + (Boolean(null))); + $ERROR('#1: Boolean(null) === false. Actual: ' + (Boolean(null))); } diff --git a/test/built-ins/Boolean/S9.2_A3_T1.js b/test/built-ins/Boolean/S9.2_A3_T1.js index f10717b656..49607bb1b3 100644 --- a/test/built-ins/Boolean/S9.2_A3_T1.js +++ b/test/built-ins/Boolean/S9.2_A3_T1.js @@ -3,13 +3,14 @@ /*--- info: Result of boolean conversion from boolean value is no conversion +esid: sec-toboolean es5id: 9.2_A3_T1 description: true and false convert to Boolean by explicit transformation ---*/ -// CHECK#1 +// CHECK#1 if (Boolean(true) !== true) { - $ERROR('#1: Boolean(true) === true. Actual: ' + (Boolean(true))); + $ERROR('#1: Boolean(true) === true. Actual: ' + (Boolean(true))); } // CHECK#2 diff --git a/test/built-ins/Boolean/S9.2_A4_T1.js b/test/built-ins/Boolean/S9.2_A4_T1.js index 1dd205c94b..534524698f 100644 --- a/test/built-ins/Boolean/S9.2_A4_T1.js +++ b/test/built-ins/Boolean/S9.2_A4_T1.js @@ -5,13 +5,14 @@ info: > Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true +esid: sec-toboolean es5id: 9.2_A4_T1 description: +0, -0 and NaN convert to Boolean by explicit transformation ---*/ // CHECK#1 if (Boolean(+0) !== false) { - $ERROR('#1: Boolean(+0) === false. Actual: ' + (Boolean(+0))); + $ERROR('#1: Boolean(+0) === false. Actual: ' + (Boolean(+0))); } // CHECK#2 diff --git a/test/built-ins/Boolean/S9.2_A4_T3.js b/test/built-ins/Boolean/S9.2_A4_T3.js index 760ba408d5..ad386fd9fd 100644 --- a/test/built-ins/Boolean/S9.2_A4_T3.js +++ b/test/built-ins/Boolean/S9.2_A4_T3.js @@ -5,6 +5,7 @@ info: > Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true +esid: sec-toboolean es5id: 9.2_A4_T3 description: > Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, @@ -14,40 +15,40 @@ description: > // CHECK#1 if (Boolean(Number.POSITIVE_INFINITY) !== true) { - $ERROR('#1: Boolean(+Infinity) === true. Actual: ' + (Boolean(+Infinity))); + $ERROR('#1: Boolean(+Infinity) === true. Actual: ' + (Boolean(+Infinity))); } // CHECK#2; if (Boolean(Number.NEGATIVE_INFINITY) !== true) { - $ERROR('#2: Boolean(-Infinity) === true. Actual: ' + (Boolean(-Infinity))); + $ERROR('#2: Boolean(-Infinity) === true. Actual: ' + (Boolean(-Infinity))); } // CHECK#3 if (Boolean(Number.MAX_VALUE) !== true) { - $ERROR('#3: Boolean(Number.MAX_VALUE) === true. Actual: ' + (Boolean(Number.MAX_VALUE))); + $ERROR('#3: Boolean(Number.MAX_VALUE) === true. Actual: ' + (Boolean(Number.MAX_VALUE))); } // CHECK#4 if (Boolean(Number.MIN_VALUE) !== true) { - $ERROR('#4: Boolean(Number.MIN_VALUE) === true. Actual: ' + (Boolean(Number.MIN_VALUE))); + $ERROR('#4: Boolean(Number.MIN_VALUE) === true. Actual: ' + (Boolean(Number.MIN_VALUE))); } // CHECK#5 if (Boolean(13) !== true) { - $ERROR('#5: Boolean(13) === true. Actual: ' + (Boolean(13))); + $ERROR('#5: Boolean(13) === true. Actual: ' + (Boolean(13))); } // CHECK#6 if (Boolean(-13) !== true) { - $ERROR('#6: Boolean(-13) === true. Actual: ' + (Boolean(-13))); + $ERROR('#6: Boolean(-13) === true. Actual: ' + (Boolean(-13))); } // CHECK#7 if (Boolean(1.3) !== true) { - $ERROR('#7: Boolean(1.3) === true. Actual: ' + (Boolean(1.3))); + $ERROR('#7: Boolean(1.3) === true. Actual: ' + (Boolean(1.3))); } // CHECK#8 if (Boolean(-1.3) !== true) { - $ERROR('#8: Boolean(-1.3) === true. Actual: ' + (Boolean(-1.3))); + $ERROR('#8: Boolean(-1.3) === true. Actual: ' + (Boolean(-1.3))); } diff --git a/test/built-ins/Boolean/S9.2_A5_T1.js b/test/built-ins/Boolean/S9.2_A5_T1.js index a3b17788a9..a79bbd7037 100644 --- a/test/built-ins/Boolean/S9.2_A5_T1.js +++ b/test/built-ins/Boolean/S9.2_A5_T1.js @@ -5,6 +5,7 @@ info: > Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false +esid: sec-toboolean es5id: 9.2_A5_T1 description: "\"\" is converted to Boolean by explicit transformation" ---*/ diff --git a/test/built-ins/Boolean/S9.2_A5_T3.js b/test/built-ins/Boolean/S9.2_A5_T3.js index d8cf685a28..4ba64a1091 100644 --- a/test/built-ins/Boolean/S9.2_A5_T3.js +++ b/test/built-ins/Boolean/S9.2_A5_T3.js @@ -5,16 +5,17 @@ info: > Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false +esid: sec-toboolean es5id: 9.2_A5_T3 description: Any nonempty string convert to Boolean by explicit transformation ---*/ // CHECK#1 if (Boolean(" ") !== true) { - $ERROR('#1: Boolean(" ") === true. Actual: ' + (Boolean(" "))); + $ERROR('#1: Boolean(" ") === true. Actual: ' + (Boolean(" "))); } // CHECK#2 if (Boolean("Nonempty String") !== true) { - $ERROR('#2: Boolean("Nonempty String") === true. Actual: ' + (Boolean("Nonempty String"))); + $ERROR('#2: Boolean("Nonempty String") === true. Actual: ' + (Boolean("Nonempty String"))); } diff --git a/test/built-ins/Boolean/S9.2_A6_T1.js b/test/built-ins/Boolean/S9.2_A6_T1.js index 1b530ce894..94637951c1 100644 --- a/test/built-ins/Boolean/S9.2_A6_T1.js +++ b/test/built-ins/Boolean/S9.2_A6_T1.js @@ -3,101 +3,102 @@ /*--- info: Result of boolean conversion from object is true +esid: sec-toboolean es5id: 9.2_A6_T1 description: Different objects convert to Boolean by explicit transformation ---*/ // CHECK#1 if (Boolean(new Object()) !== true) { - $ERROR('#1: Boolean(new Object()) === true. Actual: ' + (Boolean(new Object()))); + $ERROR('#1: Boolean(new Object()) === true. Actual: ' + (Boolean(new Object()))); } // CHECK#2 if (Boolean(new String("")) !== true) { - $ERROR('#2: Boolean(new String("")) === true. Actual: ' + (Boolean(new String("")))); + $ERROR('#2: Boolean(new String("")) === true. Actual: ' + (Boolean(new String("")))); } // CHECK#3 if (Boolean(new String()) !== true) { - $ERROR('#3: Boolean(new String()) === true. Actual: ' + (Boolean(new String()))); + $ERROR('#3: Boolean(new String()) === true. Actual: ' + (Boolean(new String()))); } // CHECK#4 if (Boolean(new Boolean(true)) !== true) { - $ERROR('#4: Boolean(new Boolean(true)) === true. Actual: ' + (Boolean(new Boolean(true)))); + $ERROR('#4: Boolean(new Boolean(true)) === true. Actual: ' + (Boolean(new Boolean(true)))); } // CHECK#5 if (Boolean(new Boolean(false)) !== true) { - $ERROR('#5: Boolean(new Boolean(false)) === true. Actual: ' + (Boolean(new Boolean(false)))); + $ERROR('#5: Boolean(new Boolean(false)) === true. Actual: ' + (Boolean(new Boolean(false)))); } // CHECK#6 if (Boolean(new Boolean()) !== true) { - $ERROR('#6: Boolean(new Boolean()) === true. Actual: ' + (Boolean(new Boolean()))); + $ERROR('#6: Boolean(new Boolean()) === true. Actual: ' + (Boolean(new Boolean()))); } // CHECK#7 if (Boolean(new Array()) !== true) { - $ERROR('#7: Boolean(new Array()) === true. Actual: ' + (Boolean(new Array()))); + $ERROR('#7: Boolean(new Array()) === true. Actual: ' + (Boolean(new Array()))); } // CHECK#8 if (Boolean(new Number()) !== true) { - $ERROR('#8: Boolean(new Number()) === true. Actual: ' + (Boolean(new Number()))); + $ERROR('#8: Boolean(new Number()) === true. Actual: ' + (Boolean(new Number()))); } // CHECK#9 if (Boolean(new Number(-0)) !== true) { - $ERROR('#9: Boolean(new Number(-0)) === true. Actual: ' + (Boolean(new Number(-0)))); + $ERROR('#9: Boolean(new Number(-0)) === true. Actual: ' + (Boolean(new Number(-0)))); } // CHECK#10 if (Boolean(new Number(0)) !== true) { - $ERROR('#10: Boolean(new Number(0)) === true. Actual: ' + (Boolean(new Number(0)))); + $ERROR('#10: Boolean(new Number(0)) === true. Actual: ' + (Boolean(new Number(0)))); } // CHECK#11 if (Boolean(new Number()) !== true) { - $ERROR('#11: Boolean(new Number()) === true. Actual: ' + (Boolean(new Number()))); + $ERROR('#11: Boolean(new Number()) === true. Actual: ' + (Boolean(new Number()))); } // CHECK#12 if (Boolean(new Number(Number.NaN)) !== true) { - $ERROR('#12: Boolean(new Number(Number.NaN)) === true. Actual: ' + (Boolean(new Number(Number.NaN)))); + $ERROR('#12: Boolean(new Number(Number.NaN)) === true. Actual: ' + (Boolean(new Number(Number.NaN)))); } // CHECK#13 if (Boolean(new Number(-1)) !== true) { - $ERROR('#13: Boolean(new Number(-1)) === true. Actual: ' + (Boolean(new Number(-1)))); + $ERROR('#13: Boolean(new Number(-1)) === true. Actual: ' + (Boolean(new Number(-1)))); } // CHECK#14 if (Boolean(new Number(1)) !== true) { - $ERROR('#14: Boolean(new Number(1)) === true. Actual: ' + (Boolean(new Number(1)))); + $ERROR('#14: Boolean(new Number(1)) === true. Actual: ' + (Boolean(new Number(1)))); } // CHECK#15 if (Boolean(new Number(Number.POSITIVE_INFINITY)) !== true) { - $ERROR('#15: Boolean(new Number(Number.POSITIVE_INFINITY)) === true. Actual: ' + (Boolean(new Number(Number.POSITIVE_INFINITY)))); + $ERROR('#15: Boolean(new Number(Number.POSITIVE_INFINITY)) === true. Actual: ' + (Boolean(new Number(Number.POSITIVE_INFINITY)))); } // CHECK#16 if (Boolean(new Number(Number.NEGATIVE_INFINITY)) !== true) { - $ERROR('#16: Boolean(new Number(Number.NEGATIVE_INFINITY)) === true. Actual: ' + (Boolean(new Number(Number.NEGATIVE_INFINITY)))); + $ERROR('#16: Boolean(new Number(Number.NEGATIVE_INFINITY)) === true. Actual: ' + (Boolean(new Number(Number.NEGATIVE_INFINITY)))); } // CHECK#17 if (Boolean(new Function()) !== true) { - $ERROR('#17: Boolean(new Function()) === true. Actual: ' + (Boolean(new Function()))); + $ERROR('#17: Boolean(new Function()) === true. Actual: ' + (Boolean(new Function()))); } // CHECK#18 if (Boolean(new Date()) !== true) { - $ERROR('#18: Boolean(new Date()) === true. Actual: ' + (Boolean(new Date()))); + $ERROR('#18: Boolean(new Date()) === true. Actual: ' + (Boolean(new Date()))); } // CHECK#19 if (Boolean(new Date(0)) !== true) { - $ERROR('#19: Boolean(new Date(0)) === true. Actual: ' + (Boolean(new Date(0)))); + $ERROR('#19: Boolean(new Date(0)) === true. Actual: ' + (Boolean(new Date(0)))); } diff --git a/test/built-ins/Boolean/symbol-coercion.js b/test/built-ins/Boolean/symbol-coercion.js index 256dc4c7dc..a3bc31b6b9 100644 --- a/test/built-ins/Boolean/symbol-coercion.js +++ b/test/built-ins/Boolean/symbol-coercion.js @@ -1,6 +1,7 @@ // Copyright (C) 2013 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- +esid: sec-toboolean es6id: 7.1.2 description: > Boolean coercion operations on Symbols -- GitLab