mirror of https://github.com/tc39/test262.git
Use verifyProperty on test/annexB/ files
This commit is contained in:
parent
7630235d5d
commit
358a295db0
|
@ -9,6 +9,8 @@ description: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyWritable(Date.prototype, "getYear");
|
||||
verifyNotEnumerable(Date.prototype, "getYear");
|
||||
verifyConfigurable(Date.prototype, "getYear");
|
||||
verifyProperty(Date.prototype, "getYear", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Date.prototype.getYear.length, 0);
|
||||
|
||||
verifyNotEnumerable(Date.prototype.getYear, "length");
|
||||
verifyNotWritable(Date.prototype.getYear, "length");
|
||||
verifyConfigurable(Date.prototype.getYear, "length");
|
||||
verifyProperty(Date.prototype.getYear, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Date.prototype.getYear.name, "getYear");
|
||||
|
||||
verifyNotEnumerable(Date.prototype.getYear, "name");
|
||||
verifyNotWritable(Date.prototype.getYear, "name");
|
||||
verifyConfigurable(Date.prototype.getYear, "name");
|
||||
verifyProperty(Date.prototype.getYear, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "getYear"
|
||||
});
|
||||
|
|
|
@ -9,6 +9,8 @@ description: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyWritable(Date.prototype, "setYear");
|
||||
verifyNotEnumerable(Date.prototype, "setYear");
|
||||
verifyConfigurable(Date.prototype, "setYear");
|
||||
verifyProperty(Date.prototype, "setYear", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Date.prototype.setYear.length, 1);
|
||||
|
||||
verifyNotEnumerable(Date.prototype.setYear, "length");
|
||||
verifyNotWritable(Date.prototype.setYear, "length");
|
||||
verifyConfigurable(Date.prototype.setYear, "length");
|
||||
verifyProperty(Date.prototype.setYear, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 1
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Date.prototype.setYear.name, "setYear");
|
||||
|
||||
verifyNotEnumerable(Date.prototype.setYear, "name");
|
||||
verifyNotWritable(Date.prototype.setYear, "name");
|
||||
verifyConfigurable(Date.prototype.setYear, "name");
|
||||
verifyProperty(Date.prototype.setYear, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "setYear"
|
||||
});
|
||||
|
|
|
@ -10,6 +10,8 @@ includes: [propertyHelper.js]
|
|||
|
||||
---*/
|
||||
|
||||
verifyWritable(Date.prototype, "toGMTString");
|
||||
verifyNotEnumerable(Date.prototype, "toGMTString");
|
||||
verifyConfigurable(Date.prototype, "toGMTString");
|
||||
verifyProperty(Date.prototype, "toGMTString", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true,
|
||||
});
|
||||
|
|
|
@ -29,8 +29,11 @@ Object.defineProperty(subject, 'stringAcsr', {
|
|||
result = subject.__defineGetter__('stringAcsr', newGet);
|
||||
|
||||
desc = Object.getOwnPropertyDescriptor(subject, 'stringAcsr');
|
||||
verifyEnumerable(subject, 'stringAcsr');
|
||||
verifyConfigurable(subject, 'stringAcsr');
|
||||
|
||||
verifyProperty(subject, "stringAcsr", {
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
assert.sameValue(desc.get, newGet, 'descriptor `get` method');
|
||||
assert.sameValue(desc.set, originalSet, 'descriptor `set` method');
|
||||
|
|
|
@ -20,8 +20,11 @@ var desc, result;
|
|||
result = subject.__defineGetter__('stringAcsr', get);
|
||||
|
||||
desc = Object.getOwnPropertyDescriptor(subject, 'stringAcsr');
|
||||
verifyEnumerable(subject, 'stringAcsr');
|
||||
verifyConfigurable(subject, 'stringAcsr');
|
||||
|
||||
verifyProperty(subject, "stringAcsr", {
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
assert.sameValue(desc.get, get, 'descriptor `get` method');
|
||||
assert.sameValue(desc.set, undefined, 'descriptor `set` method');
|
||||
|
|
|
@ -18,8 +18,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.prototype.__defineGetter__.length, 2);
|
||||
|
||||
verifyNotEnumerable(Object.prototype.__defineGetter__, 'length');
|
||||
verifyNotWritable(Object.prototype.__defineGetter__, 'length');
|
||||
verifyConfigurable(Object.prototype.__defineGetter__, 'length');
|
||||
verifyProperty(Object.prototype.__defineGetter__, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 2
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.prototype.__defineGetter__.name, '__defineGetter__');
|
||||
|
||||
verifyNotEnumerable(Object.prototype.__defineGetter__, 'name');
|
||||
verifyNotWritable(Object.prototype.__defineGetter__, 'name');
|
||||
verifyConfigurable(Object.prototype.__defineGetter__, 'name');
|
||||
verifyProperty(Object.prototype.__defineGetter__, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "__defineGetter__"
|
||||
});
|
||||
|
|
|
@ -10,6 +10,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Object.prototype, '__defineGetter__');
|
||||
verifyWritable(Object.prototype, '__defineGetter__');
|
||||
verifyConfigurable(Object.prototype, '__defineGetter__');
|
||||
verifyProperty(Object.prototype, "__defineGetter__", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true,
|
||||
});
|
||||
|
|
|
@ -29,8 +29,11 @@ Object.defineProperty(subject, 'stringAcsr', {
|
|||
result = subject.__defineSetter__('stringAcsr', newSet);
|
||||
|
||||
desc = Object.getOwnPropertyDescriptor(subject, 'stringAcsr');
|
||||
verifyEnumerable(subject, 'stringAcsr');
|
||||
verifyConfigurable(subject, 'stringAcsr');
|
||||
|
||||
verifyProperty(subject, "stringAcsr", {
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
assert.sameValue(desc.get, originalGet, 'descriptor `get` method');
|
||||
assert.sameValue(desc.set, newSet, 'descriptor `set` method');
|
||||
|
|
|
@ -20,8 +20,11 @@ var desc, result;
|
|||
result = subject.__defineSetter__('stringAcsr', set);
|
||||
|
||||
desc = Object.getOwnPropertyDescriptor(subject, 'stringAcsr');
|
||||
verifyEnumerable(subject, 'stringAcsr');
|
||||
verifyConfigurable(subject, 'stringAcsr');
|
||||
|
||||
verifyProperty(subject, "stringAcsr", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(desc.get, undefined, 'descriptor `get` method');
|
||||
assert.sameValue(desc.set, set, 'descriptor `set` method');
|
||||
|
|
|
@ -18,8 +18,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.prototype.__defineSetter__.length, 2);
|
||||
|
||||
verifyNotEnumerable(Object.prototype.__defineSetter__, 'length');
|
||||
verifyNotWritable(Object.prototype.__defineSetter__, 'length');
|
||||
verifyConfigurable(Object.prototype.__defineSetter__, 'length');
|
||||
verifyProperty(Object.prototype.__defineSetter__, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 2
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.prototype.__defineSetter__.name, '__defineSetter__');
|
||||
|
||||
verifyNotEnumerable(Object.prototype.__defineSetter__, 'name');
|
||||
verifyNotWritable(Object.prototype.__defineSetter__, 'name');
|
||||
verifyConfigurable(Object.prototype.__defineSetter__, 'name');
|
||||
verifyProperty(Object.prototype.__defineSetter__, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "__defineSetter__"
|
||||
});
|
||||
|
|
|
@ -10,6 +10,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Object.prototype, '__defineSetter__');
|
||||
verifyWritable(Object.prototype, '__defineSetter__');
|
||||
verifyConfigurable(Object.prototype, '__defineSetter__');
|
||||
verifyProperty(Object.prototype, "__defineSetter__", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true,
|
||||
});
|
||||
|
|
|
@ -18,8 +18,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.prototype.__lookupGetter__.length, 1);
|
||||
|
||||
verifyNotEnumerable(Object.prototype.__lookupGetter__, 'length');
|
||||
verifyNotWritable(Object.prototype.__lookupGetter__, 'length');
|
||||
verifyConfigurable(Object.prototype.__lookupGetter__, 'length');
|
||||
verifyProperty(Object.prototype.__lookupGetter__, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 1
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.prototype.__lookupGetter__.name, '__lookupGetter__');
|
||||
|
||||
verifyNotEnumerable(Object.prototype.__lookupGetter__, 'name');
|
||||
verifyNotWritable(Object.prototype.__lookupGetter__, 'name');
|
||||
verifyConfigurable(Object.prototype.__lookupGetter__, 'name');
|
||||
verifyProperty(Object.prototype.__lookupGetter__, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "__lookupGetter__"
|
||||
});
|
||||
|
|
|
@ -10,6 +10,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Object.prototype, '__lookupGetter__');
|
||||
verifyWritable(Object.prototype, '__lookupGetter__');
|
||||
verifyConfigurable(Object.prototype, '__lookupGetter__');
|
||||
verifyProperty(Object.prototype, "__lookupGetter__", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true,
|
||||
});
|
||||
|
|
|
@ -18,8 +18,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.prototype.__lookupSetter__.length, 1);
|
||||
|
||||
verifyNotEnumerable(Object.prototype.__lookupSetter__, 'length');
|
||||
verifyNotWritable(Object.prototype.__lookupSetter__, 'length');
|
||||
verifyConfigurable(Object.prototype.__lookupSetter__, 'length');
|
||||
verifyProperty(Object.prototype.__lookupSetter__, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 1
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.prototype.__lookupSetter__.name, '__lookupSetter__');
|
||||
|
||||
verifyNotEnumerable(Object.prototype.__lookupSetter__, 'name');
|
||||
verifyNotWritable(Object.prototype.__lookupSetter__, 'name');
|
||||
verifyConfigurable(Object.prototype.__lookupSetter__, 'name');
|
||||
verifyProperty(Object.prototype.__lookupSetter__, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "__lookupSetter__"
|
||||
});
|
||||
|
|
|
@ -10,6 +10,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(Object.prototype, '__lookupSetter__');
|
||||
verifyWritable(Object.prototype, '__lookupSetter__');
|
||||
verifyConfigurable(Object.prototype, '__lookupSetter__');
|
||||
verifyProperty(Object.prototype, "__lookupSetter__", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true,
|
||||
});
|
||||
|
|
|
@ -13,14 +13,11 @@ description: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
var descriptor = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__');
|
||||
var descriptor = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__");
|
||||
|
||||
|
||||
assert.sameValue(
|
||||
descriptor.get.name, 'get __proto__',
|
||||
'The value of `descriptor.get.name` is `"get __proto__"`'
|
||||
);
|
||||
|
||||
verifyNotEnumerable(descriptor.get, 'name');
|
||||
verifyNotWritable(descriptor.get, 'name');
|
||||
verifyConfigurable(descriptor.get, 'name');
|
||||
verifyProperty(descriptor.get, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "get __proto__"
|
||||
});
|
||||
|
|
|
@ -13,9 +13,11 @@ includes: [propertyHelper.js]
|
|||
|
||||
var desc = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__');
|
||||
|
||||
verifyNotEnumerable(Object.prototype, '__proto__');
|
||||
verifyConfigurable(Object.prototype, '__proto__');
|
||||
|
||||
assert.sameValue(desc.value, undefined, '`value` property');
|
||||
assert.sameValue(typeof desc.get, 'function', '`get` property');
|
||||
assert.sameValue(typeof desc.set, 'function', '`set` property');
|
||||
|
||||
verifyProperty(Object.prototype, "__proto__", {
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -15,12 +15,9 @@ includes: [propertyHelper.js]
|
|||
|
||||
var descriptor = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__');
|
||||
|
||||
|
||||
assert.sameValue(
|
||||
descriptor.set.name, 'set __proto__',
|
||||
'The value of `descriptor.set.name` is `"set __proto__"`'
|
||||
);
|
||||
|
||||
verifyNotEnumerable(descriptor.set, 'name');
|
||||
verifyNotWritable(descriptor.set, 'name');
|
||||
verifyConfigurable(descriptor.set, 'name');
|
||||
verifyProperty(descriptor.set, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "set __proto__"
|
||||
});
|
||||
|
|
|
@ -9,6 +9,8 @@ description: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyWritable(RegExp.prototype, "compile");
|
||||
verifyNotEnumerable(RegExp.prototype, "compile");
|
||||
verifyConfigurable(RegExp.prototype, "compile");
|
||||
verifyProperty(RegExp.prototype, "compile", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(RegExp.prototype.compile.length, 2);
|
||||
|
||||
verifyNotEnumerable(RegExp.prototype.compile, "length");
|
||||
verifyNotWritable(RegExp.prototype.compile, "length");
|
||||
verifyConfigurable(RegExp.prototype.compile, "length");
|
||||
verifyProperty(RegExp.prototype.compile, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 2
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(RegExp.prototype.compile.name, "compile");
|
||||
|
||||
verifyNotEnumerable(RegExp.prototype.compile, "name");
|
||||
verifyNotWritable(RegExp.prototype.compile, "name");
|
||||
verifyConfigurable(RegExp.prototype.compile, "name");
|
||||
verifyProperty(RegExp.prototype.compile, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "compile"
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.anchor.length, 1);
|
||||
|
||||
verifyNotEnumerable(String.prototype.anchor, "length");
|
||||
verifyNotWritable(String.prototype.anchor, "length");
|
||||
verifyConfigurable(String.prototype.anchor, "length");
|
||||
verifyProperty(String.prototype.anchor, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 1
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.anchor.name, "anchor");
|
||||
|
||||
verifyNotEnumerable(String.prototype.anchor, "name");
|
||||
verifyNotWritable(String.prototype.anchor, "name");
|
||||
verifyConfigurable(String.prototype.anchor, "name");
|
||||
verifyProperty(String.prototype.anchor, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "anchor"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'anchor');
|
||||
verifyWritable(String.prototype, 'anchor');
|
||||
verifyConfigurable(String.prototype, 'anchor');
|
||||
verifyProperty(String.prototype, "anchor", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.big.length, 0);
|
||||
|
||||
verifyNotEnumerable(String.prototype.big, "length");
|
||||
verifyNotWritable(String.prototype.big, "length");
|
||||
verifyConfigurable(String.prototype.big, "length");
|
||||
verifyProperty(String.prototype.big, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.big.name, "big");
|
||||
|
||||
verifyNotEnumerable(String.prototype.big, "name");
|
||||
verifyNotWritable(String.prototype.big, "name");
|
||||
verifyConfigurable(String.prototype.big, "name");
|
||||
verifyProperty(String.prototype.big, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "big"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'big');
|
||||
verifyWritable(String.prototype, 'big');
|
||||
verifyConfigurable(String.prototype, 'big');
|
||||
verifyProperty(String.prototype, "big", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.blink.length, 0);
|
||||
|
||||
verifyNotEnumerable(String.prototype.blink, "length");
|
||||
verifyNotWritable(String.prototype.blink, "length");
|
||||
verifyConfigurable(String.prototype.blink, "length");
|
||||
verifyProperty(String.prototype.blink, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.blink.name, "blink");
|
||||
|
||||
verifyNotEnumerable(String.prototype.blink, "name");
|
||||
verifyNotWritable(String.prototype.blink, "name");
|
||||
verifyConfigurable(String.prototype.blink, "name");
|
||||
verifyProperty(String.prototype.blink, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "blink"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'blink');
|
||||
verifyWritable(String.prototype, 'blink');
|
||||
verifyConfigurable(String.prototype, 'blink');
|
||||
verifyProperty(String.prototype, "blink", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.bold.length, 0);
|
||||
|
||||
verifyNotEnumerable(String.prototype.bold, "length");
|
||||
verifyNotWritable(String.prototype.bold, "length");
|
||||
verifyConfigurable(String.prototype.bold, "length");
|
||||
verifyProperty(String.prototype.bold, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.bold.name, "bold");
|
||||
|
||||
verifyNotEnumerable(String.prototype.bold, "name");
|
||||
verifyNotWritable(String.prototype.bold, "name");
|
||||
verifyConfigurable(String.prototype.bold, "name");
|
||||
verifyProperty(String.prototype.bold, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "bold"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'bold');
|
||||
verifyWritable(String.prototype, 'bold');
|
||||
verifyConfigurable(String.prototype, 'bold');
|
||||
verifyProperty(String.prototype, "bold", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.fixed.length, 0);
|
||||
|
||||
verifyNotEnumerable(String.prototype.fixed, "length");
|
||||
verifyNotWritable(String.prototype.fixed, "length");
|
||||
verifyConfigurable(String.prototype.fixed, "length");
|
||||
verifyProperty(String.prototype.fixed, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.fixed.name, "fixed");
|
||||
|
||||
verifyNotEnumerable(String.prototype.fixed, "name");
|
||||
verifyNotWritable(String.prototype.fixed, "name");
|
||||
verifyConfigurable(String.prototype.fixed, "name");
|
||||
verifyProperty(String.prototype.fixed, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "fixed"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'fixed');
|
||||
verifyWritable(String.prototype, 'fixed');
|
||||
verifyConfigurable(String.prototype, 'fixed');
|
||||
verifyProperty(String.prototype, "fixed", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.fontcolor.length, 1);
|
||||
|
||||
verifyNotEnumerable(String.prototype.fontcolor, "length");
|
||||
verifyNotWritable(String.prototype.fontcolor, "length");
|
||||
verifyConfigurable(String.prototype.fontcolor, "length");
|
||||
verifyProperty(String.prototype.fontcolor, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 1
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.fontcolor.name, "fontcolor");
|
||||
|
||||
verifyNotEnumerable(String.prototype.fontcolor, "name");
|
||||
verifyNotWritable(String.prototype.fontcolor, "name");
|
||||
verifyConfigurable(String.prototype.fontcolor, "name");
|
||||
verifyProperty(String.prototype.fontcolor, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "fontcolor"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'fontcolor');
|
||||
verifyWritable(String.prototype, 'fontcolor');
|
||||
verifyConfigurable(String.prototype, 'fontcolor');
|
||||
verifyProperty(String.prototype, "fontcolor", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.fontsize.length, 1);
|
||||
|
||||
verifyNotEnumerable(String.prototype.fontsize, "length");
|
||||
verifyNotWritable(String.prototype.fontsize, "length");
|
||||
verifyConfigurable(String.prototype.fontsize, "length");
|
||||
verifyProperty(String.prototype.fontsize, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 1
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.fontsize.name, "fontsize");
|
||||
|
||||
verifyNotEnumerable(String.prototype.fontsize, "name");
|
||||
verifyNotWritable(String.prototype.fontsize, "name");
|
||||
verifyConfigurable(String.prototype.fontsize, "name");
|
||||
verifyProperty(String.prototype.fontsize, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "fontsize"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'fontsize');
|
||||
verifyWritable(String.prototype, 'fontsize');
|
||||
verifyConfigurable(String.prototype, 'fontsize');
|
||||
verifyProperty(String.prototype, "fontsize", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.italics.length, 0);
|
||||
|
||||
verifyNotEnumerable(String.prototype.italics, "length");
|
||||
verifyNotWritable(String.prototype.italics, "length");
|
||||
verifyConfigurable(String.prototype.italics, "length");
|
||||
verifyProperty(String.prototype.italics, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.italics.name, "italics");
|
||||
|
||||
verifyNotEnumerable(String.prototype.italics, "name");
|
||||
verifyNotWritable(String.prototype.italics, "name");
|
||||
verifyConfigurable(String.prototype.italics, "name");
|
||||
verifyProperty(String.prototype.italics, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "italics"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'italics');
|
||||
verifyWritable(String.prototype, 'italics');
|
||||
verifyConfigurable(String.prototype, 'italics');
|
||||
verifyProperty(String.prototype, "italics", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.link.length, 1);
|
||||
|
||||
verifyNotEnumerable(String.prototype.link, "length");
|
||||
verifyNotWritable(String.prototype.link, "length");
|
||||
verifyConfigurable(String.prototype.link, "length");
|
||||
verifyProperty(String.prototype.link, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 1
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.link.name, "link");
|
||||
|
||||
verifyNotEnumerable(String.prototype.link, "name");
|
||||
verifyNotWritable(String.prototype.link, "name");
|
||||
verifyConfigurable(String.prototype.link, "name");
|
||||
verifyProperty(String.prototype.link, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "link"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'link');
|
||||
verifyWritable(String.prototype, 'link');
|
||||
verifyConfigurable(String.prototype, 'link');
|
||||
verifyProperty(String.prototype, "link", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.small.length, 0);
|
||||
|
||||
verifyNotEnumerable(String.prototype.small, "length");
|
||||
verifyNotWritable(String.prototype.small, "length");
|
||||
verifyConfigurable(String.prototype.small, "length");
|
||||
verifyProperty(String.prototype.small, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.small.name, "small");
|
||||
|
||||
verifyNotEnumerable(String.prototype.small, "name");
|
||||
verifyNotWritable(String.prototype.small, "name");
|
||||
verifyConfigurable(String.prototype.small, "name");
|
||||
verifyProperty(String.prototype.small, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "small"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'small');
|
||||
verifyWritable(String.prototype, 'small');
|
||||
verifyConfigurable(String.prototype, 'small');
|
||||
verifyProperty(String.prototype, "small", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.strike.length, 0);
|
||||
|
||||
verifyNotEnumerable(String.prototype.strike, "length");
|
||||
verifyNotWritable(String.prototype.strike, "length");
|
||||
verifyConfigurable(String.prototype.strike, "length");
|
||||
verifyProperty(String.prototype.strike, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.strike.name, "strike");
|
||||
|
||||
verifyNotEnumerable(String.prototype.strike, "name");
|
||||
verifyNotWritable(String.prototype.strike, "name");
|
||||
verifyConfigurable(String.prototype.strike, "name");
|
||||
verifyProperty(String.prototype.strike, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "strike"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'strike');
|
||||
verifyWritable(String.prototype, 'strike');
|
||||
verifyConfigurable(String.prototype, 'strike');
|
||||
verifyProperty(String.prototype, "strike", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.sub.length, 0);
|
||||
|
||||
verifyNotEnumerable(String.prototype.sub, "length");
|
||||
verifyNotWritable(String.prototype.sub, "length");
|
||||
verifyConfigurable(String.prototype.sub, "length");
|
||||
verifyProperty(String.prototype.sub, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.sub.name, "sub");
|
||||
|
||||
verifyNotEnumerable(String.prototype.sub, "name");
|
||||
verifyNotWritable(String.prototype.sub, "name");
|
||||
verifyConfigurable(String.prototype.sub, "name");
|
||||
verifyProperty(String.prototype.sub, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "sub"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'sub');
|
||||
verifyWritable(String.prototype, 'sub');
|
||||
verifyConfigurable(String.prototype, 'sub');
|
||||
verifyProperty(String.prototype, "sub", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -9,6 +9,8 @@ description: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyWritable(String.prototype, "substr");
|
||||
verifyNotEnumerable(String.prototype, "substr");
|
||||
verifyConfigurable(String.prototype, "substr");
|
||||
verifyProperty(String.prototype, "substr", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.substr.length, 2);
|
||||
|
||||
verifyNotEnumerable(String.prototype.substr, "length");
|
||||
verifyNotWritable(String.prototype.substr, "length");
|
||||
verifyConfigurable(String.prototype.substr, "length");
|
||||
verifyProperty(String.prototype.substr, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 2
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.substr.name, "substr");
|
||||
|
||||
verifyNotEnumerable(String.prototype.substr, "name");
|
||||
verifyNotWritable(String.prototype.substr, "name");
|
||||
verifyConfigurable(String.prototype.substr, "name");
|
||||
verifyProperty(String.prototype.substr, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "substr"
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.sup.length, 0);
|
||||
|
||||
verifyNotEnumerable(String.prototype.sup, "length");
|
||||
verifyNotWritable(String.prototype.sup, "length");
|
||||
verifyConfigurable(String.prototype.sup, "length");
|
||||
verifyProperty(String.prototype.sup, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 0
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(String.prototype.sup.name, "sup");
|
||||
|
||||
verifyNotEnumerable(String.prototype.sup, "name");
|
||||
verifyNotWritable(String.prototype.sup, "name");
|
||||
verifyConfigurable(String.prototype.sup, "name");
|
||||
verifyProperty(String.prototype.sup, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "sup"
|
||||
});
|
||||
|
|
|
@ -11,6 +11,8 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String.prototype, 'sup');
|
||||
verifyWritable(String.prototype, 'sup');
|
||||
verifyConfigurable(String.prototype, 'sup');
|
||||
verifyProperty(String.prototype, "sup", {
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(escape.length, 1);
|
||||
|
||||
verifyNotEnumerable(escape, "length");
|
||||
verifyNotWritable(escape, "length");
|
||||
verifyConfigurable(escape, "length");
|
||||
verifyProperty(escape, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 1
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(escape.name, "escape");
|
||||
|
||||
verifyNotEnumerable(escape, "name");
|
||||
verifyNotWritable(escape, "name");
|
||||
verifyConfigurable(escape, "name");
|
||||
verifyProperty(escape, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "escape"
|
||||
});
|
||||
|
|
|
@ -22,8 +22,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(unescape.length, 1);
|
||||
|
||||
verifyNotEnumerable(unescape, "length");
|
||||
verifyNotWritable(unescape, "length");
|
||||
verifyConfigurable(unescape, "length");
|
||||
verifyProperty(unescape, "length", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 1
|
||||
});
|
||||
|
|
|
@ -19,8 +19,9 @@ info: >
|
|||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
assert.sameValue(unescape.name, "unescape");
|
||||
|
||||
verifyNotEnumerable(unescape, "name");
|
||||
verifyNotWritable(unescape, "name");
|
||||
verifyConfigurable(unescape, "name");
|
||||
verifyProperty(unescape, "name", {
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: "unescape"
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue