diff --git a/test/annexB/built-ins/Date/prototype/getYear/B.2.4.js b/test/annexB/built-ins/Date/prototype/getYear/B.2.4.js index 27e1e0300d..732b31e0b9 100644 --- a/test/annexB/built-ins/Date/prototype/getYear/B.2.4.js +++ b/test/annexB/built-ins/Date/prototype/getYear/B.2.4.js @@ -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 +}); diff --git a/test/annexB/built-ins/Date/prototype/getYear/length.js b/test/annexB/built-ins/Date/prototype/getYear/length.js index 6b228a1339..e95e5d6d45 100644 --- a/test/annexB/built-ins/Date/prototype/getYear/length.js +++ b/test/annexB/built-ins/Date/prototype/getYear/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/Date/prototype/getYear/name.js b/test/annexB/built-ins/Date/prototype/getYear/name.js index c5aa6317f5..ebd009c60e 100644 --- a/test/annexB/built-ins/Date/prototype/getYear/name.js +++ b/test/annexB/built-ins/Date/prototype/getYear/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/Date/prototype/setYear/B.2.5.js b/test/annexB/built-ins/Date/prototype/setYear/B.2.5.js index 32e65dc938..7c88b6b924 100644 --- a/test/annexB/built-ins/Date/prototype/setYear/B.2.5.js +++ b/test/annexB/built-ins/Date/prototype/setYear/B.2.5.js @@ -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 +}); diff --git a/test/annexB/built-ins/Date/prototype/setYear/length.js b/test/annexB/built-ins/Date/prototype/setYear/length.js index 11d40add2b..fa9504878f 100644 --- a/test/annexB/built-ins/Date/prototype/setYear/length.js +++ b/test/annexB/built-ins/Date/prototype/setYear/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/Date/prototype/setYear/name.js b/test/annexB/built-ins/Date/prototype/setYear/name.js index e92b1fa44e..87425f1937 100644 --- a/test/annexB/built-ins/Date/prototype/setYear/name.js +++ b/test/annexB/built-ins/Date/prototype/setYear/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/Date/prototype/toGMTString/prop-desc.js b/test/annexB/built-ins/Date/prototype/toGMTString/prop-desc.js index 0a7236a93d..65660382ff 100644 --- a/test/annexB/built-ins/Date/prototype/toGMTString/prop-desc.js +++ b/test/annexB/built-ins/Date/prototype/toGMTString/prop-desc.js @@ -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, +}); diff --git a/test/annexB/built-ins/Object/prototype/__defineGetter__/define-existing.js b/test/annexB/built-ins/Object/prototype/__defineGetter__/define-existing.js index 1a050a9034..e1b3c90c16 100644 --- a/test/annexB/built-ins/Object/prototype/__defineGetter__/define-existing.js +++ b/test/annexB/built-ins/Object/prototype/__defineGetter__/define-existing.js @@ -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'); diff --git a/test/annexB/built-ins/Object/prototype/__defineGetter__/define-new.js b/test/annexB/built-ins/Object/prototype/__defineGetter__/define-new.js index 3315a4f60e..42162247b0 100644 --- a/test/annexB/built-ins/Object/prototype/__defineGetter__/define-new.js +++ b/test/annexB/built-ins/Object/prototype/__defineGetter__/define-new.js @@ -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'); diff --git a/test/annexB/built-ins/Object/prototype/__defineGetter__/length.js b/test/annexB/built-ins/Object/prototype/__defineGetter__/length.js index 300162db5e..bb5e2e978f 100644 --- a/test/annexB/built-ins/Object/prototype/__defineGetter__/length.js +++ b/test/annexB/built-ins/Object/prototype/__defineGetter__/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/Object/prototype/__defineGetter__/name.js b/test/annexB/built-ins/Object/prototype/__defineGetter__/name.js index 010cd91560..07ecd44247 100644 --- a/test/annexB/built-ins/Object/prototype/__defineGetter__/name.js +++ b/test/annexB/built-ins/Object/prototype/__defineGetter__/name.js @@ -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__" +}); diff --git a/test/annexB/built-ins/Object/prototype/__defineGetter__/prop-desc.js b/test/annexB/built-ins/Object/prototype/__defineGetter__/prop-desc.js index e6ec738886..e65b32f3eb 100644 --- a/test/annexB/built-ins/Object/prototype/__defineGetter__/prop-desc.js +++ b/test/annexB/built-ins/Object/prototype/__defineGetter__/prop-desc.js @@ -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, +}); diff --git a/test/annexB/built-ins/Object/prototype/__defineSetter__/define-existing.js b/test/annexB/built-ins/Object/prototype/__defineSetter__/define-existing.js index d1717f7f85..4a40cf4f1a 100644 --- a/test/annexB/built-ins/Object/prototype/__defineSetter__/define-existing.js +++ b/test/annexB/built-ins/Object/prototype/__defineSetter__/define-existing.js @@ -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'); diff --git a/test/annexB/built-ins/Object/prototype/__defineSetter__/define-new.js b/test/annexB/built-ins/Object/prototype/__defineSetter__/define-new.js index b747ce829a..a75b768366 100644 --- a/test/annexB/built-ins/Object/prototype/__defineSetter__/define-new.js +++ b/test/annexB/built-ins/Object/prototype/__defineSetter__/define-new.js @@ -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'); diff --git a/test/annexB/built-ins/Object/prototype/__defineSetter__/length.js b/test/annexB/built-ins/Object/prototype/__defineSetter__/length.js index c2fa45f6bf..acf00fd6b2 100644 --- a/test/annexB/built-ins/Object/prototype/__defineSetter__/length.js +++ b/test/annexB/built-ins/Object/prototype/__defineSetter__/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/Object/prototype/__defineSetter__/name.js b/test/annexB/built-ins/Object/prototype/__defineSetter__/name.js index f8fde394bd..538f1324cd 100644 --- a/test/annexB/built-ins/Object/prototype/__defineSetter__/name.js +++ b/test/annexB/built-ins/Object/prototype/__defineSetter__/name.js @@ -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__" +}); diff --git a/test/annexB/built-ins/Object/prototype/__defineSetter__/prop-desc.js b/test/annexB/built-ins/Object/prototype/__defineSetter__/prop-desc.js index 7c9e044454..7d1b785540 100644 --- a/test/annexB/built-ins/Object/prototype/__defineSetter__/prop-desc.js +++ b/test/annexB/built-ins/Object/prototype/__defineSetter__/prop-desc.js @@ -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, +}); diff --git a/test/annexB/built-ins/Object/prototype/__lookupGetter__/length.js b/test/annexB/built-ins/Object/prototype/__lookupGetter__/length.js index 260d7416b7..7fa918faf6 100644 --- a/test/annexB/built-ins/Object/prototype/__lookupGetter__/length.js +++ b/test/annexB/built-ins/Object/prototype/__lookupGetter__/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/Object/prototype/__lookupGetter__/name.js b/test/annexB/built-ins/Object/prototype/__lookupGetter__/name.js index 36723b05e2..5d936aa2ee 100644 --- a/test/annexB/built-ins/Object/prototype/__lookupGetter__/name.js +++ b/test/annexB/built-ins/Object/prototype/__lookupGetter__/name.js @@ -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__" +}); diff --git a/test/annexB/built-ins/Object/prototype/__lookupGetter__/prop-desc.js b/test/annexB/built-ins/Object/prototype/__lookupGetter__/prop-desc.js index 2588dd1c85..cf795e9915 100644 --- a/test/annexB/built-ins/Object/prototype/__lookupGetter__/prop-desc.js +++ b/test/annexB/built-ins/Object/prototype/__lookupGetter__/prop-desc.js @@ -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, +}); diff --git a/test/annexB/built-ins/Object/prototype/__lookupSetter__/length.js b/test/annexB/built-ins/Object/prototype/__lookupSetter__/length.js index 327934c86e..d0356c9831 100644 --- a/test/annexB/built-ins/Object/prototype/__lookupSetter__/length.js +++ b/test/annexB/built-ins/Object/prototype/__lookupSetter__/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/Object/prototype/__lookupSetter__/name.js b/test/annexB/built-ins/Object/prototype/__lookupSetter__/name.js index 45c2334444..5e85c3f0dc 100644 --- a/test/annexB/built-ins/Object/prototype/__lookupSetter__/name.js +++ b/test/annexB/built-ins/Object/prototype/__lookupSetter__/name.js @@ -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__" +}); diff --git a/test/annexB/built-ins/Object/prototype/__lookupSetter__/prop-desc.js b/test/annexB/built-ins/Object/prototype/__lookupSetter__/prop-desc.js index 729faa9ef6..6408eab5a2 100644 --- a/test/annexB/built-ins/Object/prototype/__lookupSetter__/prop-desc.js +++ b/test/annexB/built-ins/Object/prototype/__lookupSetter__/prop-desc.js @@ -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, +}); diff --git a/test/annexB/built-ins/Object/prototype/__proto__/get-fn-name.js b/test/annexB/built-ins/Object/prototype/__proto__/get-fn-name.js index dd71356dd5..862a96102b 100644 --- a/test/annexB/built-ins/Object/prototype/__proto__/get-fn-name.js +++ b/test/annexB/built-ins/Object/prototype/__proto__/get-fn-name.js @@ -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__" +}); diff --git a/test/annexB/built-ins/Object/prototype/__proto__/prop-desc.js b/test/annexB/built-ins/Object/prototype/__proto__/prop-desc.js index 543d6da7d0..e31217cf09 100644 --- a/test/annexB/built-ins/Object/prototype/__proto__/prop-desc.js +++ b/test/annexB/built-ins/Object/prototype/__proto__/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/Object/prototype/__proto__/set-fn-name.js b/test/annexB/built-ins/Object/prototype/__proto__/set-fn-name.js index 9532fdb244..f4c2782ba0 100644 --- a/test/annexB/built-ins/Object/prototype/__proto__/set-fn-name.js +++ b/test/annexB/built-ins/Object/prototype/__proto__/set-fn-name.js @@ -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__" +}); diff --git a/test/annexB/built-ins/RegExp/prototype/compile/B.RegExp.prototype.compile.js b/test/annexB/built-ins/RegExp/prototype/compile/B.RegExp.prototype.compile.js index e5617fbcb9..965a0d348f 100644 --- a/test/annexB/built-ins/RegExp/prototype/compile/B.RegExp.prototype.compile.js +++ b/test/annexB/built-ins/RegExp/prototype/compile/B.RegExp.prototype.compile.js @@ -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 +}); diff --git a/test/annexB/built-ins/RegExp/prototype/compile/length.js b/test/annexB/built-ins/RegExp/prototype/compile/length.js index 860cf91ca5..dce745c83a 100644 --- a/test/annexB/built-ins/RegExp/prototype/compile/length.js +++ b/test/annexB/built-ins/RegExp/prototype/compile/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/RegExp/prototype/compile/name.js b/test/annexB/built-ins/RegExp/prototype/compile/name.js index 1e6d0740f2..86a2008f02 100644 --- a/test/annexB/built-ins/RegExp/prototype/compile/name.js +++ b/test/annexB/built-ins/RegExp/prototype/compile/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/anchor/length.js b/test/annexB/built-ins/String/prototype/anchor/length.js index 0dd0abaada..e3c4b3a508 100644 --- a/test/annexB/built-ins/String/prototype/anchor/length.js +++ b/test/annexB/built-ins/String/prototype/anchor/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/anchor/name.js b/test/annexB/built-ins/String/prototype/anchor/name.js index 1a92bf4e10..850fecd22f 100644 --- a/test/annexB/built-ins/String/prototype/anchor/name.js +++ b/test/annexB/built-ins/String/prototype/anchor/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/anchor/prop-desc.js b/test/annexB/built-ins/String/prototype/anchor/prop-desc.js index ae78dc60e0..e6d4444f9c 100644 --- a/test/annexB/built-ins/String/prototype/anchor/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/anchor/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/big/length.js b/test/annexB/built-ins/String/prototype/big/length.js index c04e5548dc..02370147f0 100644 --- a/test/annexB/built-ins/String/prototype/big/length.js +++ b/test/annexB/built-ins/String/prototype/big/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/big/name.js b/test/annexB/built-ins/String/prototype/big/name.js index 271fc258c5..87bfbaa2ec 100644 --- a/test/annexB/built-ins/String/prototype/big/name.js +++ b/test/annexB/built-ins/String/prototype/big/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/big/prop-desc.js b/test/annexB/built-ins/String/prototype/big/prop-desc.js index 8e7f73ae3a..0db56c87d7 100644 --- a/test/annexB/built-ins/String/prototype/big/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/big/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/blink/length.js b/test/annexB/built-ins/String/prototype/blink/length.js index b29fcd12ad..fa2067ac00 100644 --- a/test/annexB/built-ins/String/prototype/blink/length.js +++ b/test/annexB/built-ins/String/prototype/blink/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/blink/name.js b/test/annexB/built-ins/String/prototype/blink/name.js index 393782a12b..59f233a8be 100644 --- a/test/annexB/built-ins/String/prototype/blink/name.js +++ b/test/annexB/built-ins/String/prototype/blink/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/blink/prop-desc.js b/test/annexB/built-ins/String/prototype/blink/prop-desc.js index 05f4d1dbfb..5f65cbc4c8 100644 --- a/test/annexB/built-ins/String/prototype/blink/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/blink/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/bold/length.js b/test/annexB/built-ins/String/prototype/bold/length.js index 1b57ad5a17..f5ccaa847c 100644 --- a/test/annexB/built-ins/String/prototype/bold/length.js +++ b/test/annexB/built-ins/String/prototype/bold/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/bold/name.js b/test/annexB/built-ins/String/prototype/bold/name.js index ba4398e7ca..99a9cde6b1 100644 --- a/test/annexB/built-ins/String/prototype/bold/name.js +++ b/test/annexB/built-ins/String/prototype/bold/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/bold/prop-desc.js b/test/annexB/built-ins/String/prototype/bold/prop-desc.js index 2f853dbf3f..72a9431be1 100644 --- a/test/annexB/built-ins/String/prototype/bold/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/bold/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/fixed/length.js b/test/annexB/built-ins/String/prototype/fixed/length.js index 0bb3b460b9..74a10d2618 100644 --- a/test/annexB/built-ins/String/prototype/fixed/length.js +++ b/test/annexB/built-ins/String/prototype/fixed/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/fixed/name.js b/test/annexB/built-ins/String/prototype/fixed/name.js index 0e13006ac0..8e5b30e046 100644 --- a/test/annexB/built-ins/String/prototype/fixed/name.js +++ b/test/annexB/built-ins/String/prototype/fixed/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/fixed/prop-desc.js b/test/annexB/built-ins/String/prototype/fixed/prop-desc.js index 6460969ea3..fe796e653b 100644 --- a/test/annexB/built-ins/String/prototype/fixed/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/fixed/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/fontcolor/length.js b/test/annexB/built-ins/String/prototype/fontcolor/length.js index 702400bb32..0b3542ab44 100644 --- a/test/annexB/built-ins/String/prototype/fontcolor/length.js +++ b/test/annexB/built-ins/String/prototype/fontcolor/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/fontcolor/name.js b/test/annexB/built-ins/String/prototype/fontcolor/name.js index 7a717ef63a..4070fb4c8a 100644 --- a/test/annexB/built-ins/String/prototype/fontcolor/name.js +++ b/test/annexB/built-ins/String/prototype/fontcolor/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/fontcolor/prop-desc.js b/test/annexB/built-ins/String/prototype/fontcolor/prop-desc.js index 9bc83e2f10..337f276dfc 100644 --- a/test/annexB/built-ins/String/prototype/fontcolor/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/fontcolor/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/fontsize/length.js b/test/annexB/built-ins/String/prototype/fontsize/length.js index 33bae20f91..cb09707333 100644 --- a/test/annexB/built-ins/String/prototype/fontsize/length.js +++ b/test/annexB/built-ins/String/prototype/fontsize/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/fontsize/name.js b/test/annexB/built-ins/String/prototype/fontsize/name.js index c45e27f724..fae43ab750 100644 --- a/test/annexB/built-ins/String/prototype/fontsize/name.js +++ b/test/annexB/built-ins/String/prototype/fontsize/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/fontsize/prop-desc.js b/test/annexB/built-ins/String/prototype/fontsize/prop-desc.js index c6c3c4beda..e276ccf1ff 100644 --- a/test/annexB/built-ins/String/prototype/fontsize/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/fontsize/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/italics/length.js b/test/annexB/built-ins/String/prototype/italics/length.js index 86121c1afa..413fa75448 100644 --- a/test/annexB/built-ins/String/prototype/italics/length.js +++ b/test/annexB/built-ins/String/prototype/italics/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/italics/name.js b/test/annexB/built-ins/String/prototype/italics/name.js index 071b175c64..4382fc341b 100644 --- a/test/annexB/built-ins/String/prototype/italics/name.js +++ b/test/annexB/built-ins/String/prototype/italics/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/italics/prop-desc.js b/test/annexB/built-ins/String/prototype/italics/prop-desc.js index 73b5fba41e..acac0ccbe5 100644 --- a/test/annexB/built-ins/String/prototype/italics/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/italics/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/link/length.js b/test/annexB/built-ins/String/prototype/link/length.js index fbbe27cd52..8665131110 100644 --- a/test/annexB/built-ins/String/prototype/link/length.js +++ b/test/annexB/built-ins/String/prototype/link/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/link/name.js b/test/annexB/built-ins/String/prototype/link/name.js index e9b2dc3401..02aefd8514 100644 --- a/test/annexB/built-ins/String/prototype/link/name.js +++ b/test/annexB/built-ins/String/prototype/link/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/link/prop-desc.js b/test/annexB/built-ins/String/prototype/link/prop-desc.js index 30b46b9d5f..b26605bdae 100644 --- a/test/annexB/built-ins/String/prototype/link/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/link/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/small/length.js b/test/annexB/built-ins/String/prototype/small/length.js index f5e32ce487..6ddd4099a1 100644 --- a/test/annexB/built-ins/String/prototype/small/length.js +++ b/test/annexB/built-ins/String/prototype/small/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/small/name.js b/test/annexB/built-ins/String/prototype/small/name.js index 07278ac122..5aa594f64d 100644 --- a/test/annexB/built-ins/String/prototype/small/name.js +++ b/test/annexB/built-ins/String/prototype/small/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/small/prop-desc.js b/test/annexB/built-ins/String/prototype/small/prop-desc.js index ad765ee3a0..a31d6dfd87 100644 --- a/test/annexB/built-ins/String/prototype/small/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/small/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/strike/length.js b/test/annexB/built-ins/String/prototype/strike/length.js index f900a36bfb..a11d4b0ff0 100644 --- a/test/annexB/built-ins/String/prototype/strike/length.js +++ b/test/annexB/built-ins/String/prototype/strike/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/strike/name.js b/test/annexB/built-ins/String/prototype/strike/name.js index bda703860c..55c08f609a 100644 --- a/test/annexB/built-ins/String/prototype/strike/name.js +++ b/test/annexB/built-ins/String/prototype/strike/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/strike/prop-desc.js b/test/annexB/built-ins/String/prototype/strike/prop-desc.js index e9902e8d7c..a576a16fb0 100644 --- a/test/annexB/built-ins/String/prototype/strike/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/strike/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/sub/length.js b/test/annexB/built-ins/String/prototype/sub/length.js index 7c7ed50ff7..b30c8b89a8 100644 --- a/test/annexB/built-ins/String/prototype/sub/length.js +++ b/test/annexB/built-ins/String/prototype/sub/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/sub/name.js b/test/annexB/built-ins/String/prototype/sub/name.js index e1ea91559e..615422bfd2 100644 --- a/test/annexB/built-ins/String/prototype/sub/name.js +++ b/test/annexB/built-ins/String/prototype/sub/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/sub/prop-desc.js b/test/annexB/built-ins/String/prototype/sub/prop-desc.js index 680844024b..26c537fd49 100644 --- a/test/annexB/built-ins/String/prototype/sub/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/sub/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/substr/B.2.3.js b/test/annexB/built-ins/String/prototype/substr/B.2.3.js index 4f7bb57dad..246990a8cc 100644 --- a/test/annexB/built-ins/String/prototype/substr/B.2.3.js +++ b/test/annexB/built-ins/String/prototype/substr/B.2.3.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/substr/length.js b/test/annexB/built-ins/String/prototype/substr/length.js index 05c36f75e0..8cfabd6841 100644 --- a/test/annexB/built-ins/String/prototype/substr/length.js +++ b/test/annexB/built-ins/String/prototype/substr/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/substr/name.js b/test/annexB/built-ins/String/prototype/substr/name.js index ef8057acad..b6dcf33589 100644 --- a/test/annexB/built-ins/String/prototype/substr/name.js +++ b/test/annexB/built-ins/String/prototype/substr/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/sup/length.js b/test/annexB/built-ins/String/prototype/sup/length.js index f312bf98ba..d3513a32f4 100644 --- a/test/annexB/built-ins/String/prototype/sup/length.js +++ b/test/annexB/built-ins/String/prototype/sup/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/String/prototype/sup/name.js b/test/annexB/built-ins/String/prototype/sup/name.js index 4642c4c273..ad63a8db97 100644 --- a/test/annexB/built-ins/String/prototype/sup/name.js +++ b/test/annexB/built-ins/String/prototype/sup/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/String/prototype/sup/prop-desc.js b/test/annexB/built-ins/String/prototype/sup/prop-desc.js index 72894c2206..1dbda0f635 100644 --- a/test/annexB/built-ins/String/prototype/sup/prop-desc.js +++ b/test/annexB/built-ins/String/prototype/sup/prop-desc.js @@ -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 +}); diff --git a/test/annexB/built-ins/escape/length.js b/test/annexB/built-ins/escape/length.js index 08be6f98a3..68aa4d0b0a 100644 --- a/test/annexB/built-ins/escape/length.js +++ b/test/annexB/built-ins/escape/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/escape/name.js b/test/annexB/built-ins/escape/name.js index 392009b71f..3043401be7 100644 --- a/test/annexB/built-ins/escape/name.js +++ b/test/annexB/built-ins/escape/name.js @@ -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" +}); diff --git a/test/annexB/built-ins/unescape/length.js b/test/annexB/built-ins/unescape/length.js index f700c74350..b645d1557d 100644 --- a/test/annexB/built-ins/unescape/length.js +++ b/test/annexB/built-ins/unescape/length.js @@ -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 +}); diff --git a/test/annexB/built-ins/unescape/name.js b/test/annexB/built-ins/unescape/name.js index f524d40772..cfdcc0cdc6 100644 --- a/test/annexB/built-ins/unescape/name.js +++ b/test/annexB/built-ins/unescape/name.js @@ -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" +});