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 Object.getOwnPropertyDescriptor returns data desc for functions on
built-ins (Global.escape) built-ins (Global.escape)
includes: includes:
- runTestCase.js
- fnGlobalObject.js - fnGlobalObject.js
- propertyHelper.js
---*/ ---*/
function testcase() { var global = fnGlobalObject();
var global = fnGlobalObject();
var desc = Object.getOwnPropertyDescriptor(global, "escape"); verifyWritable(global, "escape");
if (desc.value === global.escape && verifyNotEnumerable(global, "escape");
desc.writable === true && verifyConfigurable(global, "escape");
desc.enumerable === false &&
desc.configurable === true) {
return true;
}
}
runTestCase(testcase);

View File

@ -7,18 +7,12 @@ description: >
Object.getOwnPropertyDescriptor returns data desc for functions on Object.getOwnPropertyDescriptor returns data desc for functions on
built-ins (Global.unescape) built-ins (Global.unescape)
includes: includes:
- runTestCase.js
- fnGlobalObject.js - fnGlobalObject.js
- propertyHelper.js
---*/ ---*/
function testcase() { var global = fnGlobalObject();
var global = fnGlobalObject();
var desc = Object.getOwnPropertyDescriptor(global, "unescape"); verifyWritable(global, "unescape");
if (desc.value === global.unescape && verifyNotEnumerable(global, "unescape");
desc.writable === true && verifyConfigurable(global, "unescape");
desc.enumerable === false &&
desc.configurable === true) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,16 +6,9 @@ es5id: B.2.3
description: > description: >
Object.getOwnPropertyDescriptor returns data desc for functions on Object.getOwnPropertyDescriptor returns data desc for functions on
built-ins (String.prototype.substr) built-ins (String.prototype.substr)
includes: [runTestCase.js] includes: [propertyHelper.js]
---*/ ---*/
function testcase() { verifyWritable(String.prototype, "substr");
var desc = Object.getOwnPropertyDescriptor(String.prototype, "substr"); verifyNotEnumerable(String.prototype, "substr");
if (desc.value === String.prototype.substr && verifyConfigurable(String.prototype, "substr");
desc.writable === true &&
desc.enumerable === false &&
desc.configurable === true) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,16 +6,9 @@ es5id: B.2.4
description: > description: >
Object.getOwnPropertyDescriptor returns data desc for functions on Object.getOwnPropertyDescriptor returns data desc for functions on
built-ins (Date.prototype.getYear) built-ins (Date.prototype.getYear)
includes: [runTestCase.js] includes: [propertyHelper.js]
---*/ ---*/
function testcase() { verifyWritable(Date.prototype, "getYear");
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getYear"); verifyNotEnumerable(Date.prototype, "getYear");
if (desc.value === Date.prototype.getYear && verifyConfigurable(Date.prototype, "getYear");
desc.writable === true &&
desc.enumerable === false &&
desc.configurable === true) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,16 +6,9 @@ es5id: B.2.5
description: > description: >
Object.getOwnPropertyDescriptor returns data desc for functions on Object.getOwnPropertyDescriptor returns data desc for functions on
built-ins (Date.prototype.setYear) built-ins (Date.prototype.setYear)
includes: [runTestCase.js] includes: [propertyHelper.js]
---*/ ---*/
function testcase() { verifyWritable(Date.prototype, "setYear");
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setYear"); verifyNotEnumerable(Date.prototype, "setYear");
if (desc.value === Date.prototype.setYear && verifyConfigurable(Date.prototype, "setYear");
desc.writable === true &&
desc.enumerable === false &&
desc.configurable === true) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,16 +6,10 @@ es5id: B.2.6
description: > description: >
Object.getOwnPropertyDescriptor returns data desc for functions on Object.getOwnPropertyDescriptor returns data desc for functions on
built-ins (Date.prototype.toGMTString) built-ins (Date.prototype.toGMTString)
includes: [runTestCase.js] includes: [propertyHelper.js]
---*/ ---*/
function testcase() { verifyWritable(Date.prototype, "toGMTString");
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toGMTString"); verifyNotEnumerable(Date.prototype, "toGMTString");
if (desc.value === Date.prototype.toGMTString && verifyConfigurable(Date.prototype, "toGMTString");
desc.writable === true &&
desc.enumerable === false &&
desc.configurable === true) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,16 +6,9 @@ es6id: B.2.5.1
description: > description: >
Object.getOwnPropertyDescriptor returns data desc for functions on Object.getOwnPropertyDescriptor returns data desc for functions on
built-ins (RegExp.prototype.compile) built-ins (RegExp.prototype.compile)
includes: [runTestCase.js] includes: [propertyHelper.js]
---*/ ---*/
function testcase() { verifyWritable(RegExp.prototype, "compile");
var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "compile"); verifyNotEnumerable(RegExp.prototype, "compile");
if (desc.value === RegExp.prototype.compile && verifyConfigurable(RegExp.prototype, "compile");
desc.writable === true &&
desc.enumerable === false &&
desc.configurable === true) {
return true;
}
}
runTestCase(testcase);