Remove all remaining occurrences of runTestCase

This commit is contained in:
Rick Waldron 2015-09-04 16:47:13 -04:00
parent fb09f50296
commit 03d2f68c9c
7 changed files with 33 additions and 79 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");