update esid on Boolean/prototype tests

This commit is contained in:
deathbearbrown 2017-07-05 12:32:39 -07:00 committed by Rick Waldron
parent 1b911a8f8a
commit 8b3dddc570
25 changed files with 45 additions and 20 deletions

View File

@ -5,6 +5,7 @@
info: > info: >
The initial value of Boolean.prototype is the Boolean The initial value of Boolean.prototype is the Boolean
prototype object prototype object
esid: sec-boolean.prototype
es5id: 15.6.3.1_A1 es5id: 15.6.3.1_A1
description: Checking Boolean.prototype property description: Checking Boolean.prototype property
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Boolean.prototype has the attribute ReadOnly info: Boolean.prototype has the attribute ReadOnly
esid: sec-boolean.prototype
es5id: 15.6.3.1_A2 es5id: 15.6.3.1_A2
description: Checking if varying the Boolean.prototype property fails description: Checking if varying the Boolean.prototype property fails
includes: [propertyHelper.js] includes: [propertyHelper.js]

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Boolean.prototype has the attribute DontDelete info: Boolean.prototype has the attribute DontDelete
esid: sec-boolean.prototype
es5id: 15.6.3.1_A3 es5id: 15.6.3.1_A3
description: Checking if deleting the Boolean.prototype property fails description: Checking if deleting the Boolean.prototype property fails
includes: [propertyHelper.js] includes: [propertyHelper.js]

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Boolean.prototype has the attribute DontEnum info: Boolean.prototype has the attribute DontEnum
esid: sec-boolean.prototype
es5id: 15.6.3.1_A4 es5id: 15.6.3.1_A4
description: Checking if enumerating the Boolean.prototype property fails description: Checking if enumerating the Boolean.prototype property fails
---*/ ---*/

View File

@ -6,6 +6,7 @@ info: >
The Boolean prototype object is itself a Boolean object The Boolean prototype object is itself a Boolean object
(its [[Class]] is "Boolean") whose value is false (its [[Class]] is "Boolean") whose value is false
es5id: 15.6.4_A1 es5id: 15.6.4_A1
esid: sec-properties-of-the-boolean-prototype-object
description: Checking type and value of Boolean.prototype description: Checking type and value of Boolean.prototype
---*/ ---*/

View File

@ -6,6 +6,7 @@ info: >
The value of the internal [[Prototype]] property of the Boolean The value of the internal [[Prototype]] property of the Boolean
prototype object is the Object prototype object prototype object is the Object prototype object
es5id: 15.6.4_A2 es5id: 15.6.4_A2
esid: sec-properties-of-the-boolean-prototype-object
description: Checking Object.prototype.isPrototypeOf(Boolean.prototype) description: Checking Object.prototype.isPrototypeOf(Boolean.prototype)
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
The initial value of Boolean.prototype.constructor is the The initial value of Boolean.prototype.constructor is the
built-in Boolean constructor built-in Boolean constructor
esid: sec-boolean-constructor
es5id: 15.6.4.1_A1 es5id: 15.6.4.1_A1
description: Compare Boolean.prototype.constructor with Boolean description: Compare Boolean.prototype.constructor with Boolean
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.tostring
info: > info: >
toString: If this boolean value is true, then the string "true" toString: If this boolean value is true, then the string "true"
is returned, otherwise, this boolean value must be false, and the string is returned, otherwise, this boolean value must be false, and the string

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.tostring
info: > info: >
toString: If this boolean value is true, then the string "true" toString: If this boolean value is true, then the string "true"
is returned, otherwise, this boolean value must be false, and the string is returned, otherwise, this boolean value must be false, and the string

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.tostring
info: > info: >
The toString function is not generic, it cannot be transferred The toString function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
@ -14,7 +15,7 @@ description: transferring to the String objects
try{ try{
var s1 = new String(); var s1 = new String();
s1.toString = Boolean.prototype.toString; s1.toString = Boolean.prototype.toString;
var v1 = s1.toString(); var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = new String(); var s2 = new String();
s2.myToString = Boolean.prototype.toString; s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString(); var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.tostring
info: > info: >
The toString function is not generic, it cannot be transferred The toString function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
@ -14,7 +15,7 @@ description: transferring to the Number objects
try{ try{
var s1 = new Number(); var s1 = new Number();
s1.toString = Boolean.prototype.toString; s1.toString = Boolean.prototype.toString;
var v1 = s1.toString(); var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = new Number(); var s2 = new Number();
s2.myToString = Boolean.prototype.toString; s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString(); var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.tostring
info: > info: >
The toString function is not generic, it cannot be transferred The toString function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
@ -14,7 +15,7 @@ description: transferring to the Date objects
try{ try{
var s1 = new Date(); var s1 = new Date();
s1.toString = Boolean.prototype.toString; s1.toString = Boolean.prototype.toString;
var v1 = s1.toString(); var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = new Date(); var s2 = new Date();
s2.myToString = Boolean.prototype.toString; s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString(); var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.tostring
info: > info: >
The toString function is not generic, it cannot be transferred The toString function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
@ -14,7 +15,7 @@ description: transferring to the Object objects
try{ try{
var s1 = new Object(); var s1 = new Object();
s1.toString = Boolean.prototype.toString; s1.toString = Boolean.prototype.toString;
var v1 = s1.toString(); var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = new Object(); var s2 = new Object();
s2.myToString = Boolean.prototype.toString; s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString(); var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.tostring
info: > info: >
The toString function is not generic, it cannot be transferred The toString function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
@ -14,7 +15,7 @@ description: transferring to the other objects
try{ try{
var s1 = {x: 1}; var s1 = {x: 1};
s1.toString = Boolean.prototype.toString; s1.toString = Boolean.prototype.toString;
var v1 = s1.toString(); var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = {x: 1}; var s2 = {x: 1};
s2.myToString = Boolean.prototype.toString; s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString(); var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.tostring
es6id: 19.3.3.2 es6id: 19.3.3.2
description: > description: >
Boolean.prototype.toString.length is 0. Boolean.prototype.toString.length is 0.

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.tostring
es6id: 19.3.3.2 es6id: 19.3.3.2
description: > description: >
Boolean.prototype.toString.name is "toString". Boolean.prototype.toString.name is "toString".

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Boolean.prototype.valueOf() returns this boolean value info: Boolean.prototype.valueOf() returns this boolean value
esid: sec-boolean.prototype.valueof
es5id: 15.6.4.3_A1_T1 es5id: 15.6.4.3_A1_T1
description: no arguments description: no arguments
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Boolean.prototype.valueOf() returns this boolean value info: Boolean.prototype.valueOf() returns this boolean value
esid: sec-boolean.prototype.valueof
es5id: 15.6.4.3_A1_T2 es5id: 15.6.4.3_A1_T2
description: calling with argument description: calling with argument
---*/ ---*/

View File

@ -6,6 +6,7 @@ info: >
The valueOf function is not generic, it cannot be transferred The valueOf function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
a TypeError exception if its this value is not a Boolean object a TypeError exception if its this value is not a Boolean object
esid: sec-boolean.prototype.valueof
es5id: 15.6.4.3_A2_T1 es5id: 15.6.4.3_A2_T1
description: transferring to the String objects description: transferring to the String objects
---*/ ---*/
@ -14,7 +15,7 @@ description: transferring to the String objects
try{ try{
var s1 = new String(); var s1 = new String();
s1.valueOf = Boolean.prototype.valueOf; s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf(); var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = new String(); var s2 = new String();
s2.myValueOf = Boolean.prototype.valueOf; s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf(); var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -6,6 +6,7 @@ info: >
The valueOf function is not generic, it cannot be transferred The valueOf function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
a TypeError exception if its this value is not a Boolean object a TypeError exception if its this value is not a Boolean object
esid: sec-boolean.prototype.valueof
es5id: 15.6.4.3_A2_T2 es5id: 15.6.4.3_A2_T2
description: transferring to the Number objects description: transferring to the Number objects
---*/ ---*/
@ -14,7 +15,7 @@ description: transferring to the Number objects
try{ try{
var s1 = new Number(); var s1 = new Number();
s1.valueOf = Boolean.prototype.valueOf; s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf(); var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = new Number(); var s2 = new Number();
s2.myValueOf = Boolean.prototype.valueOf; s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf(); var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -6,6 +6,7 @@ info: >
The valueOf function is not generic, it cannot be transferred The valueOf function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
a TypeError exception if its this value is not a Boolean object a TypeError exception if its this value is not a Boolean object
esid: sec-boolean.prototype.valueof
es5id: 15.6.4.3_A2_T3 es5id: 15.6.4.3_A2_T3
description: transferring to the Date objects description: transferring to the Date objects
---*/ ---*/
@ -14,7 +15,7 @@ description: transferring to the Date objects
try{ try{
var s1 = new Date(); var s1 = new Date();
s1.valueOf = Boolean.prototype.valueOf; s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf(); var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = new Date(); var s2 = new Date();
s2.myValueOf = Boolean.prototype.valueOf; s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf(); var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -6,6 +6,7 @@ info: >
The valueOf function is not generic, it cannot be transferred The valueOf function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
a TypeError exception if its this value is not a Boolean object a TypeError exception if its this value is not a Boolean object
esid: sec-boolean.prototype.valueof
es5id: 15.6.4.3_A2_T4 es5id: 15.6.4.3_A2_T4
description: transferring to the Object objects description: transferring to the Object objects
---*/ ---*/
@ -14,7 +15,7 @@ description: transferring to the Object objects
try{ try{
var s1 = new Object(); var s1 = new Object();
s1.valueOf = Boolean.prototype.valueOf; s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf(); var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = new Object(); var s2 = new Object();
s2.myValueOf = Boolean.prototype.valueOf; s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf(); var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -6,6 +6,7 @@ info: >
The valueOf function is not generic, it cannot be transferred The valueOf function is not generic, it cannot be transferred
to other kinds of objects for use as a method and there is should be to other kinds of objects for use as a method and there is should be
a TypeError exception if its this value is not a Boolean object a TypeError exception if its this value is not a Boolean object
esid: sec-boolean.prototype.valueof
es5id: 15.6.4.3_A2_T5 es5id: 15.6.4.3_A2_T5
description: transferring to the other objects description: transferring to the other objects
---*/ ---*/
@ -14,7 +15,7 @@ description: transferring to the other objects
try{ try{
var s1 = {x: 1}; var s1 = {x: 1};
s1.valueOf = Boolean.prototype.valueOf; s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf(); var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){
@ -27,7 +28,7 @@ catch(e){
try{ try{
var s2 = {x: 1}; var s2 = {x: 1};
s2.myValueOf = Boolean.prototype.valueOf; s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf(); var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
} }
catch(e){ catch(e){

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.valueof
es6id: 19.3.3.3 es6id: 19.3.3.3
description: > description: >
Boolean.prototype.valueOf.length is 0. Boolean.prototype.valueOf.length is 0.

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-boolean.prototype.valueof
es6id: 19.3.3.3 es6id: 19.3.3.3
description: > description: >
Boolean.prototype.valueOf.name is "valueOf". Boolean.prototype.valueOf.name is "valueOf".