mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add and update descriptor tests for Math properties
This commit is contained in:
parent
2c1aed0db6
commit
f45341ca4e
@ -1,15 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property E of the Math Object has the attribute DontEnum
|
||||
es5id: 15.8.1.1_A2
|
||||
description: Checking if Math.E property has the attribute DontEnum
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
for(var x in Math) {
|
||||
if(x === "E") {
|
||||
$ERROR('#1: Value Property E of the Math Object hasn\'t attribute DontEnum: \'for(x in Math) {x==="E"}\'');
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property E of the Math Object has the attribute DontDelete
|
||||
es5id: 15.8.1.1_A3
|
||||
description: Checking if Math.E property has the attribute DontDelete
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotConfigurable(Math, "E");
|
||||
|
||||
// CHECK#1
|
||||
try {
|
||||
if (delete Math.E === true) {
|
||||
$ERROR('#1: Value Property E of the Math Object hasn\'t attribute DontDelete: \'Math.E === true\'');
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Test262Error) throw e;
|
||||
assert(e instanceof TypeError);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property E of the Math Object has the attribute ReadOnly
|
||||
es5id: 15.8.1.1_A4
|
||||
description: Checking if Math.E property has the attribute ReadOnly
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
var x = Math.E;
|
||||
verifyNotWritable(Math, "E", null, 1);
|
||||
if (Math.E !== x) {
|
||||
$ERROR('#1: Math.E hasn\'t ReadOnly: \'x = Math.E;Math.E = 1;Math.E === x\'');
|
||||
}
|
16
test/built-ins/Math/E/prop-desc.js
Normal file
16
test/built-ins/Math/E/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.e
|
||||
description: >
|
||||
"E" property of Math
|
||||
info: |
|
||||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: false }.
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, 'E');
|
||||
verifyNotWritable(Math, 'E');
|
||||
verifyNotConfigurable(Math, 'E');
|
@ -1,15 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LN10 of the Math Object has the attribute DontEnum
|
||||
es5id: 15.8.1.2_A2
|
||||
description: Checking if Math.LN10 property has the attribute DontEnum
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
for(var x in Math) {
|
||||
if(x === "LN10") {
|
||||
$ERROR('#1: Value Property LN10 of the Math Object hasn\'t attribute DontEnum: \'for(x in Math) {x==="LN10"}\'');
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LN10 of the Math Object has the attribute DontDelete
|
||||
es5id: 15.8.1.2_A3
|
||||
description: Checking if Math.LN10 property has the attribute DontDelete
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotConfigurable(Math, "LN10");
|
||||
|
||||
// CHECK#1
|
||||
try {
|
||||
if (delete Math.LN10 === true) {
|
||||
$ERROR('#1: Value Property LN10 of the Math Object hasn\'t attribute DontDelete: \'Math.LN10 === true\'');
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Test262Error) throw e;
|
||||
assert(e instanceof TypeError);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LN10 of the Math Object has the attribute ReadOnly
|
||||
es5id: 15.8.1.2_A4
|
||||
description: Checking if Math.LN10 property has the attribute ReadOnly
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
var x = Math.LN10;
|
||||
verifyNotWritable(Math, "LN10", null, 1);
|
||||
if (Math.LN10 !== x) {
|
||||
$ERROR('#1: Math.LN10 hasn\'t ReadOnly: \'x = Math.LN10;Math.LN10 = 1;Math.LN10 === x\'');
|
||||
}
|
16
test/built-ins/Math/LN10/prop-desc.js
Normal file
16
test/built-ins/Math/LN10/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.ln10
|
||||
description: >
|
||||
"LN10" property of Math
|
||||
info: |
|
||||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: false }.
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, 'LN10');
|
||||
verifyNotWritable(Math, 'LN10');
|
||||
verifyNotConfigurable(Math, 'LN10');
|
@ -1,15 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LN2 of the Math Object has the attribute DontEnum
|
||||
es5id: 15.8.1.3_A2
|
||||
description: Checking if Math.LN2 property has the attribute DontEnum
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
for(var x in Math) {
|
||||
if(x === "LN2") {
|
||||
$ERROR('#1: Value Property LN2 of the Math Object hasn\'t attribute DontEnum: \'for(x in Math) {x==="LN2"}\'');
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LN2 of the Math Object has the attribute DontDelete
|
||||
es5id: 15.8.1.3_A3
|
||||
description: Checking if Math.LN2 property has the attribute DontDelete
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotConfigurable(Math, "LN2");
|
||||
|
||||
// CHECK#1
|
||||
try {
|
||||
if (delete Math.LN2 === true) {
|
||||
$ERROR('#1: Value Property LN2 of the Math Object hasn\'t attribute DontDelete: \'Math.LN2 === true\'');
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Test262Error) throw e;
|
||||
assert(e instanceof TypeError);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LN2 of the Math Object has the attribute ReadOnly
|
||||
es5id: 15.8.1.3_A4
|
||||
description: Checking if Math.LN2 property has the attribute DontDelete
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
var x = Math.LN2;
|
||||
verifyNotWritable(Math, "LN2", null, 1);
|
||||
if (Math.LN2 !== x) {
|
||||
$ERROR('#1: Math.LN2 hasn\'t ReadOnly: \'x = Math.LN2;Math.LN2 = 1;Math.LN2 === x\'');
|
||||
}
|
16
test/built-ins/Math/LN2/prop-desc.js
Normal file
16
test/built-ins/Math/LN2/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.ln2
|
||||
description: >
|
||||
"LN2" property of Math
|
||||
info: |
|
||||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: false }.
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, 'LN2');
|
||||
verifyNotWritable(Math, 'LN2');
|
||||
verifyNotConfigurable(Math, 'LN2');
|
@ -1,15 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LOG10E of the Math Object has the attribute DontEnum
|
||||
es5id: 15.8.1.5_A2
|
||||
description: Checking if Math.LOG10E property has the attribute DontEnum
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
for(var x in Math) {
|
||||
if(x === "LOG10E") {
|
||||
$ERROR('#1: Value Property LOG10E of the Math Object hasn\'t attribute DontEnum: \'for(x in Math) {x==="LOG10E"}\'');
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LOG10E of the Math Object has the attribute DontDelete
|
||||
es5id: 15.8.1.5_A3
|
||||
description: Checking if Math.LOG10E property has the attribute DontDelete
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotConfigurable(Math, "LOG10E");
|
||||
|
||||
// CHECK#1
|
||||
try {
|
||||
if (delete Math.LOG10E === true) {
|
||||
$ERROR('#1: Value Property LOG10E of the Math Object hasn\'t attribute DontDelete: \'Math.LOG10E === true\'');
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Test262Error) throw e;
|
||||
assert(e instanceof TypeError);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LOG10E of the Math Object has the attribute ReadOnly
|
||||
es5id: 15.8.1.5_A4
|
||||
description: Checking if Math.LOG10E property has the attribute ReadOnly
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
var x = Math.LOG10E;
|
||||
verifyNotWritable(Math, "LOG10E", null, 1);
|
||||
if (Math.LOG10E !== x) {
|
||||
$ERROR('#1: Math.LOG10E hasn\'t ReadOnly: \'x = Math.LOG10E;Math.LOG10E = 1;Math.LOG10E === x\'');
|
||||
}
|
16
test/built-ins/Math/LOG10E/prop-desc.js
Normal file
16
test/built-ins/Math/LOG10E/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.log10e
|
||||
description: >
|
||||
"LOG10E" property of Math
|
||||
info: |
|
||||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: false }.
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, 'LOG10E');
|
||||
verifyNotWritable(Math, 'LOG10E');
|
||||
verifyNotConfigurable(Math, 'LOG10E');
|
@ -1,15 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LOG2E of the Math Object has the attribute DontEnum
|
||||
es5id: 15.8.1.4_A2
|
||||
description: Checking if Math.LOG2E property has the attribute DontEnum
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
for(var x in Math) {
|
||||
if(x === "LOG2E") {
|
||||
$ERROR('#1: Value Property LOG2E of the Math Object hasn\'t attribute DontEnum: \'for(x in Math) {x==="LOG2E"}\'');
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LOG2E of the Math Object has the attribute DontDelete
|
||||
es5id: 15.8.1.4_A3
|
||||
description: Checking if Math.LOG2E property has the attribute DontDelete
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotConfigurable(Math, "LOG2E");
|
||||
|
||||
// CHECK#1
|
||||
try {
|
||||
if (delete Math.LOG2E === true) {
|
||||
$ERROR('#1: Value Property LOG2E of the Math Object hasn\'t attribute DontDelete: \'Math.LOG2E === true\'');
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Test262Error) throw e;
|
||||
assert(e instanceof TypeError);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property LOG2E of the Math Object has the attribute ReadOnly
|
||||
es5id: 15.8.1.4_A4
|
||||
description: Checking if Math.LOG2E property has the attribute ReadOnly
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
var x = Math.LOG2E;
|
||||
verifyNotWritable(Math, "LOG2E", null, 1);
|
||||
if (Math.LOG2E !== x) {
|
||||
$ERROR('#1: Math.LOG2E hasn\'t ReadOnly: \'x = Math.LOG2E;Math.LOG2E = 1;Math.LOG2E === x\'');
|
||||
}
|
16
test/built-ins/Math/LOG2E/prop-desc.js
Normal file
16
test/built-ins/Math/LOG2E/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.log2e
|
||||
description: >
|
||||
"LOG2E" property of Math
|
||||
info: |
|
||||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: false }.
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, 'LOG2E');
|
||||
verifyNotWritable(Math, 'LOG2E');
|
||||
verifyNotConfigurable(Math, 'LOG2E');
|
@ -1,15 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property PI of the Math Object has the attribute DontEnum
|
||||
es5id: 15.8.1.6_A2
|
||||
description: Checking if Math.PI property has the attribute DontEnum
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
for(var x in Math) {
|
||||
if(x === "PI") {
|
||||
$ERROR('#1: Value Property PI of the Math Object hasn\'t attribute DontEnum: \'for(x in Math) {x==="PI"}\'');
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property PI of the Math Object has the attribute DontDelete
|
||||
es5id: 15.8.1.6_A3
|
||||
description: Checking if Math.PI property has the attribute DontDelete
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotConfigurable(Math, "PI");
|
||||
|
||||
// CHECK#1
|
||||
try {
|
||||
if (delete Math.PI === true) {
|
||||
$ERROR('#1: Value Property PI of the Math Object hasn\'t attribute DontDelete: \'Math.PI === true\'');
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Test262Error) throw e;
|
||||
assert(e instanceof TypeError);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property PI of the Math Object has the attribute ReadOnly
|
||||
es5id: 15.8.1.6_A4
|
||||
description: Checking if Math.PI property has the attribute ReadOnly
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
var x = Math.PI;
|
||||
verifyNotWritable(Math, "PI", null, 1);
|
||||
if (Math.PI !== x) {
|
||||
$ERROR('#1: Math.PI hasn\'t ReadOnly: \'x = Math.PI;Math.PI = 1;Math.PI === x\'');
|
||||
}
|
16
test/built-ins/Math/PI/prop-desc.js
Normal file
16
test/built-ins/Math/PI/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.pi
|
||||
description: >
|
||||
"PI" property of Math
|
||||
info: |
|
||||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: false }.
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, 'PI');
|
||||
verifyNotWritable(Math, 'PI');
|
||||
verifyNotConfigurable(Math, 'PI');
|
@ -1,15 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property SQRT1_2 of the Math Object has the attribute DontEnum
|
||||
es5id: 15.8.1.7_A2
|
||||
description: Checking if Math.SQRT1_2 property has the attribute DontEnum
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
for(var x in Math) {
|
||||
if(x === "SQRT1_2") {
|
||||
$ERROR('#1: Value Property SQRT1_2 of the Math Object hasn\'t attribute DontEnum: \'for(x in Math) {x==="SQRT1_2"}\'');
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property SQRT1_2 of the Math Object has the attribute DontDelete
|
||||
es5id: 15.8.1.7_A3
|
||||
description: Checking if Math.SQRT1_2 property has the attribute DontDelete
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotConfigurable(Math, "SQRT1_2");
|
||||
|
||||
// CHECK#1
|
||||
try {
|
||||
if (delete Math.SQRT1_2 === true) {
|
||||
$ERROR("#1: Value Property SQRT1_2 of the Math Object hasn't attribute DontDelete: 'Math.SQRT1_2 === true'");
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Test262Error) throw e;
|
||||
assert(e instanceof TypeError);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property SQRT1_2 of the Math Object has the attribute ReadOnly
|
||||
es5id: 15.8.1.7_A4
|
||||
description: Checking if Math.SQRT1_2 property has the attribute ReadOnly
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
var x = Math.SQRT1_2;
|
||||
verifyNotWritable(Math, "SQRT1_2", null, 1);
|
||||
if (Math.SQRT1_2 !== x) {
|
||||
$ERROR('#1: Math.SQRT1_2 hasn\'t ReadOnly: \'x = Math.SQRT1_2;Math.SQRT1_2 = 1;Math.SQRT1_2 === x\'');
|
||||
}
|
16
test/built-ins/Math/SQRT1_2/prop-desc.js
Normal file
16
test/built-ins/Math/SQRT1_2/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.sqrt1_2
|
||||
description: >
|
||||
"SQRT1_2" property of Math
|
||||
info: |
|
||||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: false }.
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, 'SQRT1_2');
|
||||
verifyNotWritable(Math, 'SQRT1_2');
|
||||
verifyNotConfigurable(Math, 'SQRT1_2');
|
@ -1,15 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property SQRT2 of the Math Object has the attribute DontEnum
|
||||
es5id: 15.8.1.8_A2
|
||||
description: Checking if Math.SQRT2 property has the attribute DontEnum
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
for(var x in Math) {
|
||||
if(x === "SQRT2") {
|
||||
$ERROR('#1: Value Property SQRT2 of the Math Object hasn\'t attribute DontEnum: \'for(x in Math) {x==="SQRT2"}\'');
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property SQRT2 of the Math Object has the attribute DontDelete
|
||||
es5id: 15.8.1.8_A3
|
||||
description: Checking if Math.SQRT2 property has the attribute DontDelete
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotConfigurable(Math, "SQRT2");
|
||||
|
||||
// CHECK#1
|
||||
try {
|
||||
if (delete Math.SQRT2 === true) {
|
||||
$ERROR('#1: Value Property SQRT2 of the Math Object hasn\'t attribute DontDelete: \'Math.SQRT2 === true\'');
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Test262Error) throw e;
|
||||
assert(e instanceof TypeError);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Value Property SQRT2 of the Math Object has the attribute ReadOnly
|
||||
es5id: 15.8.1.8_A4
|
||||
description: Checking if Math.SQRT2 property has the attribute ReadOnly
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
var x = Math.SQRT2;
|
||||
verifyNotWritable(Math, "SQRT2", null, 1);
|
||||
if (Math.SQRT2 !== x) {
|
||||
$ERROR('#1: Math.SQRT2 hasn\'t ReadOnly: \'x = Math.SQRT2;Math.SQRT2 = 1;Math.SQRT2 === x\'');
|
||||
}
|
16
test/built-ins/Math/SQRT2/prop-desc.js
Normal file
16
test/built-ins/Math/SQRT2/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.sqrt2
|
||||
description: >
|
||||
"SQRT2" property of Math
|
||||
info: |
|
||||
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||
false, [[Configurable]]: false }.
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, 'SQRT2');
|
||||
verifyNotWritable(Math, 'SQRT2');
|
||||
verifyNotConfigurable(Math, 'SQRT2');
|
16
test/built-ins/Math/abs/prop-desc.js
Normal file
16
test/built-ins/Math/abs/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-math.abs
|
||||
description: >
|
||||
"abs" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "abs");
|
||||
verifyWritable(Math, "abs");
|
||||
verifyConfigurable(Math, "abs");
|
16
test/built-ins/Math/acos/prop-desc.js
Normal file
16
test/built-ins/Math/acos/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-math.acos
|
||||
description: >
|
||||
"acos" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "acos");
|
||||
verifyWritable(Math, "acos");
|
||||
verifyConfigurable(Math, "acos");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.acosh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.3
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "acosh");
|
||||
verifyNotEnumerable(Math, "acosh");
|
||||
verifyConfigurable(Math, "acosh");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.acosh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.3
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "acosh");
|
||||
verifyWritable(Math, "acosh");
|
||||
verifyConfigurable(Math, "acosh");
|
16
test/built-ins/Math/asin/prop-desc.js
Normal file
16
test/built-ins/Math/asin/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-math.acos
|
||||
description: >
|
||||
"asin" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "asin");
|
||||
verifyWritable(Math, "asin");
|
||||
verifyConfigurable(Math, "asin");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.asinh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.5
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "asinh");
|
||||
verifyNotEnumerable(Math, "asinh");
|
||||
verifyConfigurable(Math, "asinh");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.asinh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.5
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "asinh");
|
||||
verifyWritable(Math, "asinh");
|
||||
verifyConfigurable(Math, "asinh");
|
16
test/built-ins/Math/atan/prop-desc.js
Normal file
16
test/built-ins/Math/atan/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-math.atan
|
||||
description: >
|
||||
"atan" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "atan");
|
||||
verifyWritable(Math, "atan");
|
||||
verifyConfigurable(Math, "atan");
|
16
test/built-ins/Math/atan2/prop-desc.js
Normal file
16
test/built-ins/Math/atan2/prop-desc.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-math.atan2
|
||||
description: >
|
||||
"atan2" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "atan2");
|
||||
verifyWritable(Math, "atan2");
|
||||
verifyConfigurable(Math, "atan2");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.atanh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.7
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "atanh");
|
||||
verifyNotEnumerable(Math, "atanh");
|
||||
verifyConfigurable(Math, "atanh");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.atanh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.7
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "atanh");
|
||||
verifyWritable(Math, "atanh");
|
||||
verifyConfigurable(Math, "atanh");
|
@ -7,6 +7,6 @@ includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.9
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "cbrt");
|
||||
verifyNotEnumerable(Math, "cbrt");
|
||||
verifyWritable(Math, "cbrt");
|
||||
verifyConfigurable(Math, "cbrt");
|
17
test/built-ins/Math/ceil/prop-desc.js
Normal file
17
test/built-ins/Math/ceil/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.ceil
|
||||
description: >
|
||||
"ceil" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "ceil");
|
||||
verifyWritable(Math, "ceil");
|
||||
verifyConfigurable(Math, "ceil");
|
17
test/built-ins/Math/clz32/prop-desc.js
Normal file
17
test/built-ins/Math/clz32/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.clz32
|
||||
description: >
|
||||
"clz32" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "clz32");
|
||||
verifyWritable(Math, "clz32");
|
||||
verifyConfigurable(Math, "clz32");
|
17
test/built-ins/Math/cos/prop-desc.js
Normal file
17
test/built-ins/Math/cos/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.cos
|
||||
description: >
|
||||
"cos" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "cos");
|
||||
verifyWritable(Math, "cos");
|
||||
verifyConfigurable(Math, "cos");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.cosh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.13
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "cosh");
|
||||
verifyNotEnumerable(Math, "cosh");
|
||||
verifyConfigurable(Math, "cosh");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.cosh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.13
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "cosh");
|
||||
verifyWritable(Math, "cosh");
|
||||
verifyConfigurable(Math, "cosh");
|
17
test/built-ins/Math/exp/prop-desc.js
Normal file
17
test/built-ins/Math/exp/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.exp
|
||||
description: >
|
||||
"exp" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "exp");
|
||||
verifyWritable(Math, "exp");
|
||||
verifyConfigurable(Math, "exp");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.expm1
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.15
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "expm1");
|
||||
verifyNotEnumerable(Math, "expm1");
|
||||
verifyConfigurable(Math, "expm1");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.expm1
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.15
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "expm1");
|
||||
verifyWritable(Math, "expm1");
|
||||
verifyConfigurable(Math, "expm1");
|
17
test/built-ins/Math/floor/prop-desc.js
Normal file
17
test/built-ins/Math/floor/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.floor
|
||||
description: >
|
||||
"floor" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "floor");
|
||||
verifyWritable(Math, "floor");
|
||||
verifyConfigurable(Math, "floor");
|
17
test/built-ins/Math/fround/prop-desc.js
Normal file
17
test/built-ins/Math/fround/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.fround
|
||||
description: >
|
||||
"fround" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "fround");
|
||||
verifyWritable(Math, "fround");
|
||||
verifyConfigurable(Math, "fround");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.hypot
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.18
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "hypot");
|
||||
verifyNotEnumerable(Math, "hypot");
|
||||
verifyConfigurable(Math, "hypot");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.hypot
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.18
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "hypot");
|
||||
verifyWritable(Math, "hypot");
|
||||
verifyConfigurable(Math, "hypot");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.imul
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.19
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "imul");
|
||||
verifyNotEnumerable(Math, "imul");
|
||||
verifyConfigurable(Math, "imul");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.imul
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.19
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "imul");
|
||||
verifyWritable(Math, "imul");
|
||||
verifyConfigurable(Math, "imul");
|
17
test/built-ins/Math/log/prop-desc.js
Normal file
17
test/built-ins/Math/log/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.log
|
||||
description: >
|
||||
"log" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "log");
|
||||
verifyWritable(Math, "log");
|
||||
verifyConfigurable(Math, "log");
|
@ -1,12 +1,13 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing length property of Math.log10
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.20
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "log10");
|
||||
verifyNotEnumerable(Math, "log10");
|
||||
verifyConfigurable(Math, "log10");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
"log10" property of Math
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.20
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "log10");
|
||||
verifyWritable(Math, "log10");
|
||||
verifyConfigurable(Math, "log10");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.log1p
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.21
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "log1p");
|
||||
verifyNotEnumerable(Math, "log1p");
|
||||
verifyConfigurable(Math, "log1p");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.log1p
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.21
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "log1p");
|
||||
verifyWritable(Math, "log1p");
|
||||
verifyConfigurable(Math, "log1p");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.log2
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.23
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "log2");
|
||||
verifyNotEnumerable(Math, "log2");
|
||||
verifyConfigurable(Math, "log2");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.log2
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.23
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "log2");
|
||||
verifyWritable(Math, "log2");
|
||||
verifyConfigurable(Math, "log2");
|
17
test/built-ins/Math/max/prop-desc.js
Normal file
17
test/built-ins/Math/max/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.max
|
||||
description: >
|
||||
"max" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "max");
|
||||
verifyWritable(Math, "max");
|
||||
verifyConfigurable(Math, "max");
|
17
test/built-ins/Math/min/prop-desc.js
Normal file
17
test/built-ins/Math/min/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.min
|
||||
description: >
|
||||
"min" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "min");
|
||||
verifyWritable(Math, "min");
|
||||
verifyConfigurable(Math, "min");
|
@ -5,7 +5,7 @@
|
||||
esid: sec-math.pow
|
||||
description: >
|
||||
Math.pow ( base, exponent )
|
||||
|
||||
info: |
|
||||
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]
|
17
test/built-ins/Math/random/prop-desc.js
Normal file
17
test/built-ins/Math/random/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.random
|
||||
description: >
|
||||
"random" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "random");
|
||||
verifyWritable(Math, "random");
|
||||
verifyConfigurable(Math, "random");
|
17
test/built-ins/Math/round/prop-desc.js
Normal file
17
test/built-ins/Math/round/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.round
|
||||
description: >
|
||||
"round" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "round");
|
||||
verifyWritable(Math, "round");
|
||||
verifyConfigurable(Math, "round");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.sign
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.29
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "sign");
|
||||
verifyNotEnumerable(Math, "sign");
|
||||
verifyConfigurable(Math, "sign");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.sign
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.29
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "sign");
|
||||
verifyWritable(Math, "sign");
|
||||
verifyConfigurable(Math, "sign");
|
17
test/built-ins/Math/sin/prop-desc.js
Normal file
17
test/built-ins/Math/sin/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.sin
|
||||
description: >
|
||||
"sin" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "sin");
|
||||
verifyWritable(Math, "sin");
|
||||
verifyConfigurable(Math, "sin");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.sinh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.31
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "sinh");
|
||||
verifyNotEnumerable(Math, "sinh");
|
||||
verifyConfigurable(Math, "sinh");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.sinh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.31
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "sinh");
|
||||
verifyWritable(Math, "sinh");
|
||||
verifyConfigurable(Math, "sinh");
|
17
test/built-ins/Math/sqrt/prop-desc.js
Normal file
17
test/built-ins/Math/sqrt/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.sqrt
|
||||
description: >
|
||||
"sqrt" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "sqrt");
|
||||
verifyWritable(Math, "sqrt");
|
||||
verifyConfigurable(Math, "sqrt");
|
17
test/built-ins/Math/tan/prop-desc.js
Normal file
17
test/built-ins/Math/tan/prop-desc.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-math.tan
|
||||
description: >
|
||||
"tan" property of Math
|
||||
info: |
|
||||
Section 17: 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(Math, "tan");
|
||||
verifyWritable(Math, "tan");
|
||||
verifyConfigurable(Math, "tan");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.tanh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.34
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "tanh");
|
||||
verifyNotEnumerable(Math, "tanh");
|
||||
verifyConfigurable(Math, "tanh");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.tanh
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.34
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "tanh");
|
||||
verifyWritable(Math, "tanh");
|
||||
verifyConfigurable(Math, "tanh");
|
@ -1,12 +1,12 @@
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.trunc
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.35
|
||||
---*/
|
||||
|
||||
verifyWritable(Math, "trunc");
|
||||
verifyNotEnumerable(Math, "trunc");
|
||||
verifyConfigurable(Math, "trunc");
|
||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
||||
// This code is governed by the license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Testing descriptor property of Math.trunc
|
||||
includes: [propertyHelper.js]
|
||||
es6id: 20.2.2.35
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Math, "trunc");
|
||||
verifyWritable(Math, "trunc");
|
||||
verifyConfigurable(Math, "trunc");
|
Loading…
x
Reference in New Issue
Block a user