mirror of https://github.com/tc39/test262.git
Remove all remaining occurrences of runTestCase
This commit is contained in:
parent
fb09f50296
commit
03d2f68c9c
|
@ -7,18 +7,12 @@ description: >
|
|||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Global.escape)
|
||||
includes:
|
||||
- runTestCase.js
|
||||
- fnGlobalObject.js
|
||||
- propertyHelper.js
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var global = fnGlobalObject();
|
||||
var desc = Object.getOwnPropertyDescriptor(global, "escape");
|
||||
if (desc.value === global.escape &&
|
||||
desc.writable === true &&
|
||||
desc.enumerable === false &&
|
||||
desc.configurable === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
|
||||
verifyWritable(global, "escape");
|
||||
verifyNotEnumerable(global, "escape");
|
||||
verifyConfigurable(global, "escape");
|
||||
|
|
|
@ -7,18 +7,12 @@ description: >
|
|||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Global.unescape)
|
||||
includes:
|
||||
- runTestCase.js
|
||||
- fnGlobalObject.js
|
||||
- propertyHelper.js
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var global = fnGlobalObject();
|
||||
var desc = Object.getOwnPropertyDescriptor(global, "unescape");
|
||||
if (desc.value === global.unescape &&
|
||||
desc.writable === true &&
|
||||
desc.enumerable === false &&
|
||||
desc.configurable === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
|
||||
verifyWritable(global, "unescape");
|
||||
verifyNotEnumerable(global, "unescape");
|
||||
verifyConfigurable(global, "unescape");
|
||||
|
|
|
@ -6,16 +6,9 @@ es5id: B.2.3
|
|||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (String.prototype.substr)
|
||||
includes: [runTestCase.js]
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(String.prototype, "substr");
|
||||
if (desc.value === String.prototype.substr &&
|
||||
desc.writable === true &&
|
||||
desc.enumerable === false &&
|
||||
desc.configurable === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
verifyWritable(String.prototype, "substr");
|
||||
verifyNotEnumerable(String.prototype, "substr");
|
||||
verifyConfigurable(String.prototype, "substr");
|
||||
|
|
|
@ -6,16 +6,9 @@ es5id: B.2.4
|
|||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Date.prototype.getYear)
|
||||
includes: [runTestCase.js]
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getYear");
|
||||
if (desc.value === Date.prototype.getYear &&
|
||||
desc.writable === true &&
|
||||
desc.enumerable === false &&
|
||||
desc.configurable === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
verifyWritable(Date.prototype, "getYear");
|
||||
verifyNotEnumerable(Date.prototype, "getYear");
|
||||
verifyConfigurable(Date.prototype, "getYear");
|
||||
|
|
|
@ -6,16 +6,9 @@ es5id: B.2.5
|
|||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Date.prototype.setYear)
|
||||
includes: [runTestCase.js]
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setYear");
|
||||
if (desc.value === Date.prototype.setYear &&
|
||||
desc.writable === true &&
|
||||
desc.enumerable === false &&
|
||||
desc.configurable === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
verifyWritable(Date.prototype, "setYear");
|
||||
verifyNotEnumerable(Date.prototype, "setYear");
|
||||
verifyConfigurable(Date.prototype, "setYear");
|
||||
|
|
|
@ -6,16 +6,10 @@ es5id: B.2.6
|
|||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Date.prototype.toGMTString)
|
||||
includes: [runTestCase.js]
|
||||
includes: [propertyHelper.js]
|
||||
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toGMTString");
|
||||
if (desc.value === Date.prototype.toGMTString &&
|
||||
desc.writable === true &&
|
||||
desc.enumerable === false &&
|
||||
desc.configurable === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
verifyWritable(Date.prototype, "toGMTString");
|
||||
verifyNotEnumerable(Date.prototype, "toGMTString");
|
||||
verifyConfigurable(Date.prototype, "toGMTString");
|
||||
|
|
|
@ -6,16 +6,9 @@ es6id: B.2.5.1
|
|||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (RegExp.prototype.compile)
|
||||
includes: [runTestCase.js]
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "compile");
|
||||
if (desc.value === RegExp.prototype.compile &&
|
||||
desc.writable === true &&
|
||||
desc.enumerable === false &&
|
||||
desc.configurable === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
verifyWritable(RegExp.prototype, "compile");
|
||||
verifyNotEnumerable(RegExp.prototype, "compile");
|
||||
verifyConfigurable(RegExp.prototype, "compile");
|
||||
|
|
Loading…
Reference in New Issue