From 5424d7e8346efb7055153f93ec43059f744a5ea8 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Fri, 22 Mar 2024 17:48:56 -0700 Subject: [PATCH] rewrite tests to use verifyProperty --- test/built-ins/Array/Symbol.species/length.js | 11 ++++++----- .../Array/Symbol.species/symbol-species-name.js | 14 ++++++-------- test/built-ins/Array/from/Array.from-name.js | 15 ++++++--------- test/built-ins/Array/from/Array.from_arity.js | 11 ++++++----- test/built-ins/Array/isArray/name.js | 11 ++++++----- test/built-ins/Array/length.js | 11 ++++++----- test/built-ins/Array/name.js | 11 ++++++----- test/built-ins/Array/of/length.js | 14 ++++++-------- test/built-ins/Array/of/name.js | 14 ++++++-------- test/built-ins/Array/prototype/at/length.js | 14 ++++++-------- test/built-ins/Array/prototype/concat/length.js | 11 ++++++----- test/built-ins/Array/prototype/concat/name.js | 15 ++++++--------- .../Array/prototype/copyWithin/length.js | 14 ++++++-------- test/built-ins/Array/prototype/copyWithin/name.js | 14 ++++++-------- test/built-ins/Array/prototype/entries/length.js | 14 ++++++-------- test/built-ins/Array/prototype/entries/name.js | 14 ++++++-------- test/built-ins/Array/prototype/every/length.js | 14 ++++++-------- test/built-ins/Array/prototype/every/name.js | 11 ++++++----- test/built-ins/Array/prototype/fill/length.js | 14 ++++++-------- test/built-ins/Array/prototype/fill/name.js | 14 ++++++-------- test/built-ins/Array/prototype/filter/length.js | 11 ++++++----- test/built-ins/Array/prototype/filter/name.js | 11 ++++++----- test/built-ins/Array/prototype/find/length.js | 14 ++++++-------- test/built-ins/Array/prototype/find/name.js | 14 ++++++-------- .../built-ins/Array/prototype/findIndex/length.js | 14 ++++++-------- test/built-ins/Array/prototype/findIndex/name.js | 14 ++++++-------- test/built-ins/Array/prototype/forEach/length.js | 11 ++++++----- test/built-ins/Array/prototype/forEach/name.js | 11 ++++++----- test/built-ins/Array/prototype/includes/length.js | 11 ++++++----- test/built-ins/Array/prototype/includes/name.js | 11 ++++++----- test/built-ins/Array/prototype/indexOf/length.js | 11 ++++++----- test/built-ins/Array/prototype/indexOf/name.js | 11 ++++++----- test/built-ins/Array/prototype/join/length.js | 11 ++++++----- test/built-ins/Array/prototype/join/name.js | 11 ++++++----- test/built-ins/Array/prototype/keys/length.js | 14 ++++++-------- test/built-ins/Array/prototype/keys/name.js | 14 ++++++-------- .../Array/prototype/lastIndexOf/length.js | 11 ++++++----- .../built-ins/Array/prototype/lastIndexOf/name.js | 11 ++++++----- test/built-ins/Array/prototype/map/length.js | 11 ++++++----- test/built-ins/Array/prototype/map/name.js | 11 ++++++----- test/built-ins/Array/prototype/pop/length.js | 11 ++++++----- test/built-ins/Array/prototype/pop/name.js | 11 ++++++----- test/built-ins/Array/prototype/push/length.js | 11 ++++++----- test/built-ins/Array/prototype/push/name.js | 11 ++++++----- test/built-ins/Array/prototype/reduce/length.js | 11 ++++++----- test/built-ins/Array/prototype/reduce/name.js | 11 ++++++----- .../Array/prototype/reduceRight/length.js | 11 ++++++----- .../built-ins/Array/prototype/reduceRight/name.js | 11 ++++++----- test/built-ins/Array/prototype/reverse/length.js | 11 ++++++----- test/built-ins/Array/prototype/reverse/name.js | 11 ++++++----- test/built-ins/Array/prototype/shift/length.js | 11 ++++++----- test/built-ins/Array/prototype/shift/name.js | 11 ++++++----- test/built-ins/Array/prototype/slice/length.js | 11 ++++++----- test/built-ins/Array/prototype/slice/name.js | 11 ++++++----- test/built-ins/Array/prototype/some/length.js | 11 ++++++----- test/built-ins/Array/prototype/some/name.js | 11 ++++++----- test/built-ins/Array/prototype/sort/length.js | 11 ++++++----- test/built-ins/Array/prototype/sort/name.js | 11 ++++++----- test/built-ins/Array/prototype/splice/length.js | 11 ++++++----- test/built-ins/Array/prototype/splice/name.js | 11 ++++++----- .../Array/prototype/toLocaleString/length.js | 11 ++++++----- .../Array/prototype/toLocaleString/name.js | 11 ++++++----- test/built-ins/Array/prototype/toString/length.js | 11 ++++++----- test/built-ins/Array/prototype/toString/name.js | 11 ++++++----- test/built-ins/Array/prototype/unshift/length.js | 11 ++++++----- test/built-ins/Array/prototype/unshift/name.js | 11 ++++++----- test/built-ins/Array/prototype/values/length.js | 11 ++++++----- test/built-ins/Array/prototype/values/name.js | 11 ++++++----- .../ArrayBuffer/Symbol.species/length.js | 11 ++++++----- .../Symbol.species/symbol-species-name.js | 14 ++++++-------- test/built-ins/ArrayBuffer/isView/length.js | 11 ++++++----- test/built-ins/ArrayBuffer/isView/name.js | 11 ++++++----- .../ArrayBuffer/prototype/byteLength/length.js | 11 ++++++----- .../ArrayBuffer/prototype/byteLength/name.js | 14 ++++++-------- .../ArrayBuffer/prototype/slice/length.js | 11 ++++++----- .../built-ins/ArrayBuffer/prototype/slice/name.js | 11 ++++++----- .../ArrayIteratorPrototype/next/length.js | 11 ++++++----- .../built-ins/ArrayIteratorPrototype/next/name.js | 11 ++++++----- .../AsyncFunction/AsyncFunction-length.js | 10 ++++++---- .../built-ins/AsyncFunction/AsyncFunction-name.js | 10 ++++++---- test/built-ins/AsyncFunction/instance-has-name.js | 10 ++++++---- .../Boolean/prototype/toString/length.js | 11 ++++++----- test/built-ins/Boolean/prototype/toString/name.js | 11 ++++++----- .../built-ins/Boolean/prototype/valueOf/length.js | 11 ++++++----- test/built-ins/Boolean/prototype/valueOf/name.js | 11 ++++++----- test/built-ins/DataView/name.js | 11 ++++++----- .../built-ins/DataView/prototype/buffer/length.js | 11 ++++++----- test/built-ins/DataView/prototype/buffer/name.js | 14 ++++++-------- .../DataView/prototype/byteLength/length.js | 11 ++++++----- .../DataView/prototype/byteLength/name.js | 14 ++++++-------- .../DataView/prototype/byteOffset/length.js | 11 ++++++----- .../DataView/prototype/byteOffset/name.js | 14 ++++++-------- .../DataView/prototype/getFloat32/length.js | 11 ++++++----- .../DataView/prototype/getFloat32/name.js | 11 ++++++----- .../DataView/prototype/getFloat64/length.js | 11 ++++++----- .../DataView/prototype/getFloat64/name.js | 11 ++++++----- .../DataView/prototype/getInt16/length.js | 11 ++++++----- .../built-ins/DataView/prototype/getInt16/name.js | 11 ++++++----- .../DataView/prototype/getInt32/length.js | 11 ++++++----- .../built-ins/DataView/prototype/getInt32/name.js | 11 ++++++----- .../DataView/prototype/getInt8/length.js | 11 ++++++----- test/built-ins/DataView/prototype/getInt8/name.js | 11 ++++++----- .../DataView/prototype/getUint16/length.js | 11 ++++++----- .../DataView/prototype/getUint16/name.js | 11 ++++++----- .../DataView/prototype/getUint32/length.js | 11 ++++++----- .../DataView/prototype/getUint32/name.js | 11 ++++++----- .../DataView/prototype/getUint8/length.js | 11 ++++++----- .../built-ins/DataView/prototype/getUint8/name.js | 11 ++++++----- .../DataView/prototype/setFloat32/length.js | 11 ++++++----- .../DataView/prototype/setFloat32/name.js | 11 ++++++----- .../DataView/prototype/setFloat64/length.js | 11 ++++++----- .../DataView/prototype/setFloat64/name.js | 11 ++++++----- .../DataView/prototype/setInt16/length.js | 11 ++++++----- .../built-ins/DataView/prototype/setInt16/name.js | 11 ++++++----- .../DataView/prototype/setInt32/length.js | 11 ++++++----- .../built-ins/DataView/prototype/setInt32/name.js | 11 ++++++----- .../DataView/prototype/setInt8/length.js | 11 ++++++----- test/built-ins/DataView/prototype/setInt8/name.js | 11 ++++++----- .../DataView/prototype/setUint16/length.js | 11 ++++++----- .../DataView/prototype/setUint16/name.js | 11 ++++++----- .../DataView/prototype/setUint32/length.js | 11 ++++++----- .../DataView/prototype/setUint32/name.js | 11 ++++++----- .../DataView/prototype/setUint8/length.js | 11 ++++++----- .../built-ins/DataView/prototype/setUint8/name.js | 11 ++++++----- test/built-ins/Date/UTC/name.js | 11 ++++++----- test/built-ins/Date/name.js | 11 ++++++----- test/built-ins/Date/now/name.js | 11 ++++++----- test/built-ins/Date/parse/name.js | 11 ++++++----- .../Date/prototype/Symbol.toPrimitive/length.js | 11 ++++++----- .../Date/prototype/Symbol.toPrimitive/name.js | 13 ++++++------- test/built-ins/Date/prototype/getDate/name.js | 11 ++++++----- test/built-ins/Date/prototype/getDay/name.js | 11 ++++++----- test/built-ins/Date/prototype/getFullYear/name.js | 11 ++++++----- test/built-ins/Date/prototype/getHours/name.js | 11 ++++++----- .../Date/prototype/getMilliseconds/name.js | 11 ++++++----- test/built-ins/Date/prototype/getMinutes/name.js | 11 ++++++----- test/built-ins/Date/prototype/getMonth/name.js | 11 ++++++----- test/built-ins/Date/prototype/getSeconds/name.js | 11 ++++++----- test/built-ins/Date/prototype/getTime/name.js | 11 ++++++----- .../Date/prototype/getTimezoneOffset/name.js | 11 ++++++----- test/built-ins/Date/prototype/getUTCDate/name.js | 11 ++++++----- test/built-ins/Date/prototype/getUTCDay/name.js | 11 ++++++----- .../Date/prototype/getUTCFullYear/name.js | 11 ++++++----- test/built-ins/Date/prototype/getUTCHours/name.js | 11 ++++++----- .../Date/prototype/getUTCMilliseconds/name.js | 11 ++++++----- .../Date/prototype/getUTCMinutes/name.js | 11 ++++++----- test/built-ins/Date/prototype/getUTCMonth/name.js | 11 ++++++----- .../Date/prototype/getUTCSeconds/name.js | 11 ++++++----- test/built-ins/Date/prototype/setDate/name.js | 11 ++++++----- test/built-ins/Date/prototype/setFullYear/name.js | 11 ++++++----- test/built-ins/Date/prototype/setHours/name.js | 11 ++++++----- .../Date/prototype/setMilliseconds/name.js | 11 ++++++----- test/built-ins/Date/prototype/setMinutes/name.js | 11 ++++++----- test/built-ins/Date/prototype/setMonth/name.js | 11 ++++++----- test/built-ins/Date/prototype/setSeconds/name.js | 11 ++++++----- test/built-ins/Date/prototype/setTime/name.js | 11 ++++++----- test/built-ins/Date/prototype/setUTCDate/name.js | 11 ++++++----- .../Date/prototype/setUTCFullYear/name.js | 11 ++++++----- test/built-ins/Date/prototype/setUTCHours/name.js | 11 ++++++----- .../Date/prototype/setUTCMilliseconds/name.js | 11 ++++++----- .../Date/prototype/setUTCMinutes/name.js | 11 ++++++----- test/built-ins/Date/prototype/setUTCMonth/name.js | 11 ++++++----- .../Date/prototype/setUTCSeconds/name.js | 11 ++++++----- .../built-ins/Date/prototype/toDateString/name.js | 11 ++++++----- test/built-ins/Date/prototype/toISOString/name.js | 11 ++++++----- .../Date/prototype/toLocaleDateString/name.js | 11 ++++++----- .../Date/prototype/toLocaleString/name.js | 11 ++++++----- .../Date/prototype/toLocaleTimeString/name.js | 11 ++++++----- test/built-ins/Date/prototype/toString/name.js | 11 ++++++----- .../built-ins/Date/prototype/toTimeString/name.js | 11 ++++++----- test/built-ins/Date/prototype/toUTCString/name.js | 11 ++++++----- test/built-ins/Date/prototype/valueOf/name.js | 11 ++++++----- test/built-ins/Error/prototype/toString/length.js | 11 ++++++----- test/built-ins/Error/prototype/toString/name.js | 11 ++++++----- .../prototype/Symbol.hasInstance/length.js | 11 ++++++----- .../Function/prototype/Symbol.hasInstance/name.js | 13 ++++++------- test/built-ins/Function/prototype/apply/name.js | 11 ++++++----- test/built-ins/Function/prototype/bind/name.js | 11 ++++++----- test/built-ins/Function/prototype/call/name.js | 11 ++++++----- test/built-ins/Function/prototype/name.js | 10 ++++++---- .../built-ins/Function/prototype/toString/name.js | 11 ++++++----- test/built-ins/GeneratorFunction/length.js | 11 ++++++----- test/built-ins/GeneratorFunction/name.js | 11 ++++++----- test/built-ins/GeneratorPrototype/next/length.js | 11 ++++++----- test/built-ins/GeneratorPrototype/next/name.js | 11 ++++++----- .../built-ins/GeneratorPrototype/return/length.js | 11 ++++++----- test/built-ins/GeneratorPrototype/return/name.js | 11 ++++++----- test/built-ins/GeneratorPrototype/throw/length.js | 11 ++++++----- test/built-ins/GeneratorPrototype/throw/name.js | 11 ++++++----- test/built-ins/Map/Symbol.species/length.js | 11 ++++++----- test/built-ins/Map/length.js | 11 ++++++----- test/built-ins/Map/name.js | 11 ++++++----- test/built-ins/Map/prototype/clear/length.js | 14 ++++++-------- test/built-ins/Map/prototype/clear/name.js | 14 ++++++-------- test/built-ins/Map/prototype/delete/length.js | 14 ++++++-------- test/built-ins/Map/prototype/delete/name.js | 14 ++++++-------- test/built-ins/Map/prototype/entries/length.js | 14 ++++++-------- test/built-ins/Map/prototype/entries/name.js | 14 ++++++-------- test/built-ins/Map/prototype/forEach/length.js | 14 ++++++-------- test/built-ins/Map/prototype/forEach/name.js | 14 ++++++-------- test/built-ins/Map/prototype/get/length.js | 14 ++++++-------- test/built-ins/Map/prototype/get/name.js | 14 ++++++-------- test/built-ins/Map/prototype/has/length.js | 14 ++++++-------- test/built-ins/Map/prototype/has/name.js | 14 ++++++-------- test/built-ins/Map/prototype/keys/length.js | 14 ++++++-------- test/built-ins/Map/prototype/keys/name.js | 14 ++++++-------- test/built-ins/Map/prototype/set/length.js | 14 ++++++-------- test/built-ins/Map/prototype/set/name.js | 14 ++++++-------- test/built-ins/Map/prototype/size/length.js | 14 ++++++-------- test/built-ins/Map/prototype/size/name.js | 14 ++++++-------- test/built-ins/Map/prototype/values/length.js | 14 ++++++-------- test/built-ins/Map/prototype/values/name.js | 14 ++++++-------- .../built-ins/MapIteratorPrototype/next/length.js | 11 ++++++----- test/built-ins/MapIteratorPrototype/next/name.js | 11 ++++++----- test/built-ins/Math/abs/length.js | 11 ++++++----- test/built-ins/Math/abs/name.js | 11 ++++++----- test/built-ins/Math/acos/length.js | 11 ++++++----- test/built-ins/Math/acos/name.js | 11 ++++++----- test/built-ins/Math/acosh/length.js | 11 ++++++----- test/built-ins/Math/acosh/name.js | 11 ++++++----- test/built-ins/Math/asin/length.js | 11 ++++++----- test/built-ins/Math/asin/name.js | 11 ++++++----- test/built-ins/Math/asinh/length.js | 11 ++++++----- test/built-ins/Math/asinh/name.js | 11 ++++++----- test/built-ins/Math/atan/length.js | 11 ++++++----- test/built-ins/Math/atan/name.js | 11 ++++++----- test/built-ins/Math/atan2/length.js | 11 ++++++----- test/built-ins/Math/atan2/name.js | 11 ++++++----- test/built-ins/Math/atanh/length.js | 11 ++++++----- test/built-ins/Math/atanh/name.js | 11 ++++++----- test/built-ins/Math/cbrt/length.js | 11 ++++++----- test/built-ins/Math/cbrt/name.js | 11 ++++++----- test/built-ins/Math/ceil/length.js | 11 ++++++----- test/built-ins/Math/ceil/name.js | 11 ++++++----- test/built-ins/Math/clz32/length.js | 11 ++++++----- test/built-ins/Math/clz32/name.js | 11 ++++++----- test/built-ins/Math/cos/length.js | 11 ++++++----- test/built-ins/Math/cos/name.js | 11 ++++++----- test/built-ins/Math/cosh/length.js | 11 ++++++----- test/built-ins/Math/cosh/name.js | 11 ++++++----- test/built-ins/Math/exp/length.js | 11 ++++++----- test/built-ins/Math/exp/name.js | 11 ++++++----- test/built-ins/Math/expm1/length.js | 11 ++++++----- test/built-ins/Math/expm1/name.js | 11 ++++++----- test/built-ins/Math/floor/length.js | 11 ++++++----- test/built-ins/Math/floor/name.js | 11 ++++++----- test/built-ins/Math/fround/length.js | 11 ++++++----- test/built-ins/Math/fround/name.js | 11 ++++++----- test/built-ins/Math/hypot/length.js | 11 ++++++----- test/built-ins/Math/hypot/name.js | 11 ++++++----- test/built-ins/Math/imul/length.js | 11 ++++++----- test/built-ins/Math/imul/name.js | 11 ++++++----- test/built-ins/Math/log/length.js | 11 ++++++----- test/built-ins/Math/log/name.js | 11 ++++++----- test/built-ins/Math/log10/length.js | 11 ++++++----- test/built-ins/Math/log10/name.js | 11 ++++++----- test/built-ins/Math/log1p/length.js | 11 ++++++----- test/built-ins/Math/log1p/name.js | 11 ++++++----- test/built-ins/Math/log2/length.js | 11 ++++++----- test/built-ins/Math/log2/name.js | 11 ++++++----- test/built-ins/Math/max/length.js | 11 ++++++----- test/built-ins/Math/max/name.js | 11 ++++++----- test/built-ins/Math/min/length.js | 11 ++++++----- test/built-ins/Math/min/name.js | 11 ++++++----- test/built-ins/Math/pow/length.js | 11 ++++++----- test/built-ins/Math/pow/name.js | 11 ++++++----- test/built-ins/Math/random/length.js | 11 ++++++----- test/built-ins/Math/random/name.js | 11 ++++++----- test/built-ins/Math/round/length.js | 11 ++++++----- test/built-ins/Math/round/name.js | 11 ++++++----- test/built-ins/Math/sign/length.js | 11 ++++++----- test/built-ins/Math/sign/name.js | 11 ++++++----- test/built-ins/Math/sin/length.js | 11 ++++++----- test/built-ins/Math/sin/name.js | 11 ++++++----- test/built-ins/Math/sinh/length.js | 11 ++++++----- test/built-ins/Math/sinh/name.js | 11 ++++++----- test/built-ins/Math/sqrt/length.js | 11 ++++++----- test/built-ins/Math/sqrt/name.js | 11 ++++++----- test/built-ins/Math/tan/length.js | 11 ++++++----- test/built-ins/Math/tan/name.js | 11 ++++++----- test/built-ins/Math/tanh/length.js | 11 ++++++----- test/built-ins/Math/tanh/name.js | 11 ++++++----- test/built-ins/Math/trunc/length.js | 11 ++++++----- test/built-ins/Math/trunc/name.js | 11 ++++++----- test/built-ins/NativeErrors/EvalError/length.js | 11 ++++++----- test/built-ins/NativeErrors/EvalError/name.js | 11 ++++++----- .../NativeErrors/EvalError/prototype/name.js | 11 ++++++----- test/built-ins/NativeErrors/RangeError/length.js | 11 ++++++----- test/built-ins/NativeErrors/RangeError/name.js | 11 ++++++----- .../NativeErrors/RangeError/prototype/name.js | 11 ++++++----- .../NativeErrors/ReferenceError/length.js | 11 ++++++----- .../built-ins/NativeErrors/ReferenceError/name.js | 11 ++++++----- .../NativeErrors/ReferenceError/prototype/name.js | 11 ++++++----- test/built-ins/NativeErrors/SyntaxError/length.js | 11 ++++++----- test/built-ins/NativeErrors/SyntaxError/name.js | 11 ++++++----- .../NativeErrors/SyntaxError/prototype/name.js | 11 ++++++----- test/built-ins/NativeErrors/TypeError/length.js | 11 ++++++----- test/built-ins/NativeErrors/TypeError/name.js | 11 ++++++----- .../NativeErrors/TypeError/prototype/name.js | 11 ++++++----- test/built-ins/NativeErrors/URIError/length.js | 11 ++++++----- test/built-ins/NativeErrors/URIError/name.js | 11 ++++++----- .../NativeErrors/URIError/prototype/name.js | 11 ++++++----- test/built-ins/Number/isFinite/length.js | 11 ++++++----- test/built-ins/Number/isFinite/name.js | 11 ++++++----- test/built-ins/Number/isInteger/length.js | 11 ++++++----- test/built-ins/Number/isInteger/name.js | 11 ++++++----- test/built-ins/Number/isNaN/length.js | 11 ++++++----- test/built-ins/Number/isNaN/name.js | 11 ++++++----- test/built-ins/Number/isSafeInteger/length.js | 11 ++++++----- test/built-ins/Number/isSafeInteger/name.js | 11 ++++++----- .../Number/prototype/toExponential/length.js | 11 ++++++----- .../Number/prototype/toExponential/name.js | 11 ++++++----- test/built-ins/Number/prototype/toFixed/length.js | 11 ++++++----- test/built-ins/Number/prototype/toFixed/name.js | 11 ++++++----- .../Number/prototype/toLocaleString/length.js | 11 ++++++----- .../Number/prototype/toLocaleString/name.js | 11 ++++++----- .../Number/prototype/toPrecision/length.js | 11 ++++++----- .../Number/prototype/toPrecision/name.js | 11 ++++++----- .../built-ins/Number/prototype/toString/length.js | 11 ++++++----- test/built-ins/Number/prototype/toString/name.js | 11 ++++++----- test/built-ins/Number/prototype/valueOf/length.js | 11 ++++++----- test/built-ins/Number/prototype/valueOf/name.js | 11 ++++++----- test/built-ins/Promise/Symbol.species/length.js | 11 ++++++----- test/built-ins/Promise/all/length.js | 11 ++++++----- test/built-ins/Promise/all/name.js | 11 ++++++----- .../all/resolve-element-function-length.js | 11 ++++++----- .../built-ins/Promise/executor-function-length.js | 11 ++++++----- test/built-ins/Promise/length.js | 11 ++++++----- test/built-ins/Promise/name.js | 11 ++++++----- test/built-ins/Promise/prototype/catch/length.js | 11 ++++++----- test/built-ins/Promise/prototype/catch/name.js | 11 ++++++----- test/built-ins/Promise/prototype/finally/name.js | 11 ++++++----- test/built-ins/Promise/prototype/then/length.js | 11 ++++++----- test/built-ins/Promise/prototype/then/name.js | 11 ++++++----- test/built-ins/Promise/race/length.js | 11 ++++++----- test/built-ins/Promise/race/name.js | 11 ++++++----- test/built-ins/Promise/reject-function-length.js | 11 ++++++----- test/built-ins/Promise/reject/length.js | 11 ++++++----- test/built-ins/Promise/reject/name.js | 11 ++++++----- test/built-ins/Promise/resolve-function-length.js | 11 ++++++----- test/built-ins/Promise/resolve/length.js | 11 ++++++----- test/built-ins/Promise/resolve/name.js | 11 ++++++----- test/built-ins/Proxy/length.js | 11 ++++++----- test/built-ins/Proxy/name.js | 11 ++++++----- test/built-ins/Proxy/revocable/length.js | 11 ++++++----- test/built-ins/Proxy/revocable/name.js | 11 ++++++----- .../Proxy/revocable/revocation-function-length.js | 11 ++++++----- test/built-ins/Reflect/apply/length.js | 14 ++++++-------- test/built-ins/Reflect/apply/name.js | 14 ++++++-------- test/built-ins/Reflect/construct/length.js | 14 ++++++-------- test/built-ins/Reflect/construct/name.js | 14 ++++++-------- test/built-ins/Reflect/defineProperty/length.js | 14 ++++++-------- test/built-ins/Reflect/defineProperty/name.js | 14 ++++++-------- test/built-ins/Reflect/deleteProperty/length.js | 14 ++++++-------- test/built-ins/Reflect/deleteProperty/name.js | 14 ++++++-------- test/built-ins/Reflect/get/length.js | 14 ++++++-------- test/built-ins/Reflect/get/name.js | 14 ++++++-------- .../Reflect/getOwnPropertyDescriptor/length.js | 14 ++++++-------- .../Reflect/getOwnPropertyDescriptor/name.js | 14 ++++++-------- test/built-ins/Reflect/getPrototypeOf/length.js | 14 ++++++-------- test/built-ins/Reflect/getPrototypeOf/name.js | 14 ++++++-------- test/built-ins/Reflect/has/length.js | 14 ++++++-------- test/built-ins/Reflect/has/name.js | 14 ++++++-------- test/built-ins/Reflect/isExtensible/length.js | 14 ++++++-------- test/built-ins/Reflect/isExtensible/name.js | 14 ++++++-------- test/built-ins/Reflect/ownKeys/length.js | 14 ++++++-------- test/built-ins/Reflect/ownKeys/name.js | 14 ++++++-------- .../built-ins/Reflect/preventExtensions/length.js | 14 ++++++-------- test/built-ins/Reflect/preventExtensions/name.js | 14 ++++++-------- test/built-ins/Reflect/set/length.js | 14 ++++++-------- test/built-ins/Reflect/set/name.js | 14 ++++++-------- test/built-ins/Reflect/setPrototypeOf/length.js | 14 ++++++-------- test/built-ins/Reflect/setPrototypeOf/name.js | 14 ++++++-------- test/built-ins/RegExp/Symbol.species/length.js | 11 ++++++----- .../RegExp/Symbol.species/symbol-species-name.js | 14 ++++++-------- .../RegExp/prototype/Symbol.match/length.js | 11 ++++++----- .../RegExp/prototype/Symbol.match/name.js | 11 ++++++----- .../RegExp/prototype/Symbol.matchAll/length.js | 11 ++++++----- .../RegExp/prototype/Symbol.matchAll/name.js | 11 ++++++----- .../RegExp/prototype/Symbol.replace/length.js | 11 ++++++----- .../RegExp/prototype/Symbol.replace/name.js | 11 ++++++----- .../RegExp/prototype/Symbol.search/length.js | 11 ++++++----- .../RegExp/prototype/Symbol.search/name.js | 11 ++++++----- .../RegExp/prototype/Symbol.split/length.js | 11 ++++++----- .../RegExp/prototype/Symbol.split/name.js | 11 ++++++----- test/built-ins/RegExp/prototype/exec/name.js | 11 ++++++----- test/built-ins/RegExp/prototype/global/length.js | 11 ++++++----- test/built-ins/RegExp/prototype/global/name.js | 14 ++++++-------- .../RegExp/prototype/ignoreCase/length.js | 11 ++++++----- .../built-ins/RegExp/prototype/ignoreCase/name.js | 14 ++++++-------- .../RegExp/prototype/multiline/length.js | 11 ++++++----- test/built-ins/RegExp/prototype/multiline/name.js | 14 ++++++-------- test/built-ins/RegExp/prototype/sticky/length.js | 11 ++++++----- test/built-ins/RegExp/prototype/sticky/name.js | 14 ++++++-------- test/built-ins/RegExp/prototype/test/name.js | 11 ++++++----- test/built-ins/RegExp/prototype/toString/name.js | 11 ++++++----- test/built-ins/RegExp/prototype/unicode/length.js | 11 ++++++----- test/built-ins/RegExp/prototype/unicode/name.js | 11 ++++++----- .../RegExpStringIteratorPrototype/next/length.js | 11 ++++++----- .../RegExpStringIteratorPrototype/next/name.js | 11 ++++++----- test/built-ins/Set/Symbol.species/length.js | 11 ++++++----- test/built-ins/Set/length.js | 11 ++++++----- test/built-ins/Set/name.js | 11 ++++++----- test/built-ins/Set/prototype/add/length.js | 11 ++++++----- test/built-ins/Set/prototype/add/name.js | 11 ++++++----- test/built-ins/Set/prototype/clear/length.js | 11 ++++++----- test/built-ins/Set/prototype/clear/name.js | 11 ++++++----- test/built-ins/Set/prototype/delete/length.js | 11 ++++++----- test/built-ins/Set/prototype/delete/name.js | 11 ++++++----- test/built-ins/Set/prototype/entries/length.js | 11 ++++++----- test/built-ins/Set/prototype/entries/name.js | 11 ++++++----- test/built-ins/Set/prototype/forEach/length.js | 11 ++++++----- test/built-ins/Set/prototype/forEach/name.js | 11 ++++++----- test/built-ins/Set/prototype/has/length.js | 11 ++++++----- test/built-ins/Set/prototype/has/name.js | 11 ++++++----- test/built-ins/Set/prototype/size/length.js | 11 ++++++----- test/built-ins/Set/prototype/size/name.js | 11 ++++++----- test/built-ins/Set/prototype/values/length.js | 11 ++++++----- test/built-ins/Set/prototype/values/name.js | 11 ++++++----- .../built-ins/SetIteratorPrototype/next/length.js | 11 ++++++----- test/built-ins/SetIteratorPrototype/next/name.js | 11 ++++++----- .../prototype/byteLength/length.js | 11 ++++++----- .../prototype/byteLength/name.js | 14 ++++++-------- .../SharedArrayBuffer/prototype/slice/length.js | 11 ++++++----- .../SharedArrayBuffer/prototype/slice/name.js | 11 ++++++----- test/built-ins/String/fromCharCode/name.js | 11 ++++++----- test/built-ins/String/fromCodePoint/length.js | 14 ++++++-------- test/built-ins/String/fromCodePoint/name.js | 14 ++++++-------- .../String/prototype/Symbol.iterator/length.js | 11 ++++++----- .../String/prototype/Symbol.iterator/name.js | 11 ++++++----- test/built-ins/String/prototype/at/length.js | 14 ++++++-------- test/built-ins/String/prototype/charAt/name.js | 11 ++++++----- .../built-ins/String/prototype/charCodeAt/name.js | 11 ++++++----- .../String/prototype/codePointAt/length.js | 14 ++++++-------- .../String/prototype/codePointAt/name.js | 14 ++++++-------- test/built-ins/String/prototype/concat/name.js | 11 ++++++----- .../built-ins/String/prototype/endsWith/length.js | 14 ++++++-------- test/built-ins/String/prototype/endsWith/name.js | 14 ++++++-------- .../built-ins/String/prototype/includes/length.js | 14 ++++++-------- test/built-ins/String/prototype/includes/name.js | 14 ++++++-------- test/built-ins/String/prototype/indexOf/name.js | 11 ++++++----- .../String/prototype/lastIndexOf/name.js | 11 ++++++----- .../String/prototype/localeCompare/name.js | 11 ++++++----- test/built-ins/String/prototype/match/name.js | 11 ++++++----- .../built-ins/String/prototype/matchAll/length.js | 11 ++++++----- test/built-ins/String/prototype/matchAll/name.js | 11 ++++++----- .../String/prototype/normalize/length.js | 14 ++++++-------- test/built-ins/String/prototype/normalize/name.js | 14 ++++++-------- .../String/prototype/padEnd/function-length.js | 11 ++++++----- .../String/prototype/padEnd/function-name.js | 15 ++++++--------- .../String/prototype/padStart/function-length.js | 11 ++++++----- .../String/prototype/padStart/function-name.js | 15 ++++++--------- test/built-ins/String/prototype/repeat/length.js | 14 ++++++-------- test/built-ins/String/prototype/repeat/name.js | 14 ++++++-------- test/built-ins/String/prototype/replace/name.js | 11 ++++++----- test/built-ins/String/prototype/search/name.js | 11 ++++++----- test/built-ins/String/prototype/slice/name.js | 11 ++++++----- test/built-ins/String/prototype/split/name.js | 11 ++++++----- .../String/prototype/startsWith/length.js | 14 ++++++-------- .../built-ins/String/prototype/startsWith/name.js | 14 ++++++-------- test/built-ins/String/prototype/substring/name.js | 11 ++++++----- .../String/prototype/toLocaleLowerCase/name.js | 11 ++++++----- .../String/prototype/toLocaleUpperCase/name.js | 11 ++++++----- .../String/prototype/toLowerCase/name.js | 11 ++++++----- .../String/prototype/toUpperCase/name.js | 11 ++++++----- test/built-ins/String/prototype/trim/name.js | 11 ++++++----- test/built-ins/String/raw/length.js | 14 ++++++-------- test/built-ins/String/raw/name.js | 14 ++++++-------- .../StringIteratorPrototype/next/length.js | 11 ++++++----- .../StringIteratorPrototype/next/name.js | 11 ++++++----- test/built-ins/Symbol/for/length.js | 11 ++++++----- test/built-ins/Symbol/for/name.js | 11 ++++++----- test/built-ins/Symbol/keyFor/length.js | 11 ++++++----- test/built-ins/Symbol/keyFor/name.js | 11 ++++++----- test/built-ins/Symbol/length.js | 11 ++++++----- test/built-ins/Symbol/name.js | 11 ++++++----- .../Symbol/prototype/Symbol.toPrimitive/length.js | 11 ++++++----- .../Symbol/prototype/Symbol.toPrimitive/name.js | 13 ++++++------- .../built-ins/Symbol/prototype/toString/length.js | 11 ++++++----- test/built-ins/Symbol/prototype/toString/name.js | 11 ++++++----- test/built-ins/Symbol/prototype/valueOf/length.js | 11 ++++++----- test/built-ins/Symbol/prototype/valueOf/name.js | 11 ++++++----- test/built-ins/ThrowTypeError/length.js | 11 ++++++----- .../built-ins/TypedArray/Symbol.species/length.js | 11 ++++++----- test/built-ins/TypedArray/Symbol.species/name.js | 11 ++++++----- test/built-ins/TypedArray/from/length.js | 11 ++++++----- test/built-ins/TypedArray/from/name.js | 11 ++++++----- test/built-ins/TypedArray/name.js | 11 ++++++----- test/built-ins/TypedArray/of/length.js | 11 ++++++----- test/built-ins/TypedArray/of/name.js | 11 ++++++----- .../prototype/Symbol.toStringTag/BigInt/length.js | 11 ++++++----- .../prototype/Symbol.toStringTag/BigInt/name.js | 11 ++++++----- .../prototype/Symbol.toStringTag/length.js | 11 ++++++----- .../prototype/Symbol.toStringTag/name.js | 11 ++++++----- test/built-ins/TypedArray/prototype/at/length.js | 14 ++++++-------- .../TypedArray/prototype/buffer/length.js | 11 ++++++----- .../built-ins/TypedArray/prototype/buffer/name.js | 11 ++++++----- .../TypedArray/prototype/byteLength/length.js | 11 ++++++----- .../TypedArray/prototype/byteLength/name.js | 11 ++++++----- .../TypedArray/prototype/byteOffset/length.js | 11 ++++++----- .../TypedArray/prototype/byteOffset/name.js | 11 ++++++----- .../TypedArray/prototype/copyWithin/length.js | 11 ++++++----- .../TypedArray/prototype/copyWithin/name.js | 11 ++++++----- .../TypedArray/prototype/entries/length.js | 11 ++++++----- .../TypedArray/prototype/entries/name.js | 11 ++++++----- .../TypedArray/prototype/every/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/every/name.js | 11 ++++++----- .../built-ins/TypedArray/prototype/fill/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/fill/name.js | 11 ++++++----- .../TypedArray/prototype/filter/length.js | 11 ++++++----- .../built-ins/TypedArray/prototype/filter/name.js | 11 ++++++----- .../built-ins/TypedArray/prototype/find/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/find/name.js | 11 ++++++----- .../TypedArray/prototype/findIndex/length.js | 11 ++++++----- .../TypedArray/prototype/findIndex/name.js | 11 ++++++----- .../TypedArray/prototype/forEach/length.js | 11 ++++++----- .../TypedArray/prototype/forEach/name.js | 11 ++++++----- .../TypedArray/prototype/includes/length.js | 11 ++++++----- .../TypedArray/prototype/includes/name.js | 11 ++++++----- .../TypedArray/prototype/indexOf/length.js | 11 ++++++----- .../TypedArray/prototype/indexOf/name.js | 11 ++++++----- .../built-ins/TypedArray/prototype/join/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/join/name.js | 11 ++++++----- .../built-ins/TypedArray/prototype/keys/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/keys/name.js | 11 ++++++----- .../TypedArray/prototype/lastIndexOf/length.js | 11 ++++++----- .../TypedArray/prototype/lastIndexOf/name.js | 11 ++++++----- .../TypedArray/prototype/length/length.js | 11 ++++++----- .../built-ins/TypedArray/prototype/length/name.js | 11 ++++++----- test/built-ins/TypedArray/prototype/map/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/map/name.js | 11 ++++++----- .../TypedArray/prototype/reduce/length.js | 11 ++++++----- .../built-ins/TypedArray/prototype/reduce/name.js | 11 ++++++----- .../TypedArray/prototype/reduceRight/length.js | 11 ++++++----- .../TypedArray/prototype/reduceRight/name.js | 11 ++++++----- .../TypedArray/prototype/reverse/length.js | 11 ++++++----- .../TypedArray/prototype/reverse/name.js | 11 ++++++----- test/built-ins/TypedArray/prototype/set/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/set/name.js | 11 ++++++----- .../TypedArray/prototype/slice/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/slice/name.js | 11 ++++++----- .../built-ins/TypedArray/prototype/some/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/some/name.js | 11 ++++++----- .../built-ins/TypedArray/prototype/sort/length.js | 11 ++++++----- test/built-ins/TypedArray/prototype/sort/name.js | 11 ++++++----- .../TypedArray/prototype/subarray/length.js | 11 ++++++----- .../TypedArray/prototype/subarray/name.js | 11 ++++++----- .../TypedArray/prototype/toLocaleString/length.js | 11 ++++++----- .../TypedArray/prototype/toLocaleString/name.js | 11 ++++++----- .../TypedArray/prototype/values/length.js | 11 ++++++----- .../built-ins/TypedArray/prototype/values/name.js | 11 ++++++----- .../TypedArrayConstructors/Float32Array/name.js | 11 ++++++----- .../TypedArrayConstructors/Float64Array/name.js | 11 ++++++----- .../TypedArrayConstructors/Int16Array/name.js | 11 ++++++----- .../TypedArrayConstructors/Int32Array/name.js | 11 ++++++----- .../TypedArrayConstructors/Int8Array/name.js | 11 ++++++----- .../TypedArrayConstructors/Uint16Array/name.js | 11 ++++++----- .../TypedArrayConstructors/Uint32Array/name.js | 11 ++++++----- .../TypedArrayConstructors/Uint8Array/name.js | 11 ++++++----- .../Uint8ClampedArray/name.js | 11 ++++++----- test/built-ins/WeakMap/length.js | 11 ++++++----- test/built-ins/WeakMap/name.js | 14 ++++++-------- test/built-ins/WeakMap/prototype/delete/length.js | 14 ++++++-------- test/built-ins/WeakMap/prototype/delete/name.js | 14 ++++++-------- test/built-ins/WeakMap/prototype/get/length.js | 14 ++++++-------- test/built-ins/WeakMap/prototype/get/name.js | 14 ++++++-------- test/built-ins/WeakMap/prototype/has/length.js | 14 ++++++-------- test/built-ins/WeakMap/prototype/has/name.js | 14 ++++++-------- test/built-ins/WeakMap/prototype/set/length.js | 14 ++++++-------- test/built-ins/WeakMap/prototype/set/name.js | 14 ++++++-------- test/built-ins/WeakSet/length.js | 11 ++++++----- test/built-ins/WeakSet/name.js | 14 ++++++-------- test/built-ins/WeakSet/prototype/add/length.js | 14 ++++++-------- test/built-ins/WeakSet/prototype/add/name.js | 14 ++++++-------- test/built-ins/WeakSet/prototype/delete/length.js | 14 ++++++-------- test/built-ins/WeakSet/prototype/delete/name.js | 14 ++++++-------- test/built-ins/WeakSet/prototype/has/length.js | 14 ++++++-------- test/built-ins/WeakSet/prototype/has/name.js | 14 ++++++-------- test/built-ins/decodeURI/name.js | 11 ++++++----- test/built-ins/decodeURIComponent/name.js | 11 ++++++----- test/built-ins/encodeURI/name.js | 11 ++++++----- test/built-ins/encodeURIComponent/name.js | 11 ++++++----- test/built-ins/eval/name.js | 11 ++++++----- test/built-ins/isFinite/length.js | 11 ++++++----- test/built-ins/isFinite/name.js | 11 ++++++----- test/built-ins/isNaN/length.js | 11 ++++++----- test/built-ins/isNaN/name.js | 11 ++++++----- test/built-ins/parseFloat/name.js | 11 ++++++----- test/built-ins/parseInt/name.js | 11 ++++++----- 589 files changed, 3534 insertions(+), 3287 deletions(-) diff --git a/test/built-ins/Array/Symbol.species/length.js b/test/built-ins/Array/Symbol.species/length.js index 5e37f1d65c..1b5e760a1b 100644 --- a/test/built-ins/Array/Symbol.species/length.js +++ b/test/built-ins/Array/Symbol.species/length.js @@ -25,8 +25,9 @@ features: [Symbol.species] var desc = Object.getOwnPropertyDescriptor(Array, Symbol.species); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/Symbol.species/symbol-species-name.js b/test/built-ins/Array/Symbol.species/symbol-species-name.js index 26d6aa5146..18bd9b77f7 100644 --- a/test/built-ins/Array/Symbol.species/symbol-species-name.js +++ b/test/built-ins/Array/Symbol.species/symbol-species-name.js @@ -15,11 +15,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(Array, Symbol.species); -assert.sameValue( - descriptor.get.name, - 'get [Symbol.species]' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get [Symbol.species]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/from/Array.from-name.js b/test/built-ins/Array/from/Array.from-name.js index 75795bd73d..13e1b95378 100644 --- a/test/built-ins/Array/from/Array.from-name.js +++ b/test/built-ins/Array/from/Array.from-name.js @@ -19,12 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.from.name, - 'from', - 'The value of Array.from.name is expected to be "from"' -); - -verifyNotEnumerable(Array.from, 'name'); -verifyNotWritable(Array.from, 'name'); -verifyConfigurable(Array.from, 'name'); +verifyProperty(Array.from, "name", { + value: "from", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/from/Array.from_arity.js b/test/built-ins/Array/from/Array.from_arity.js index 2aa04a0ebd..a2d31e691d 100644 --- a/test/built-ins/Array/from/Array.from_arity.js +++ b/test/built-ins/Array/from/Array.from_arity.js @@ -14,8 +14,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.from.length, 1, 'The value of Array.from.length is expected to be 1'); - -verifyNotEnumerable(Array.from, 'length'); -verifyNotWritable(Array.from, 'length'); -verifyConfigurable(Array.from, 'length'); +verifyProperty(Array.from, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/isArray/name.js b/test/built-ins/Array/isArray/name.js index ed23a4a875..17da793af8 100644 --- a/test/built-ins/Array/isArray/name.js +++ b/test/built-ins/Array/isArray/name.js @@ -20,8 +20,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.isArray.name, "isArray", 'The value of Array.isArray.name is expected to be "isArray"'); - -verifyNotEnumerable(Array.isArray, "name"); -verifyNotWritable(Array.isArray, "name"); -verifyConfigurable(Array.isArray, "name"); +verifyProperty(Array.isArray, "name", { + value: "isArray", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/length.js b/test/built-ins/Array/length.js index 81d052603e..f3933178cd 100644 --- a/test/built-ins/Array/length.js +++ b/test/built-ins/Array/length.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.length, 1, 'The value of Array.length is expected to be 1'); - -verifyNotEnumerable(Array, 'length'); -verifyNotWritable(Array, 'length'); -verifyConfigurable(Array, 'length'); +verifyProperty(Array, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/name.js b/test/built-ins/Array/name.js index 1b56828736..c30eeb598f 100644 --- a/test/built-ins/Array/name.js +++ b/test/built-ins/Array/name.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.name, 'Array', 'The value of Array.name is expected to be "Array"'); - -verifyNotEnumerable(Array, 'name'); -verifyNotWritable(Array, 'name'); -verifyConfigurable(Array, 'name'); +verifyProperty(Array, "name", { + value: "Array", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/of/length.js b/test/built-ins/Array/of/length.js index 754d3e6729..f4a1d3fc02 100644 --- a/test/built-ins/Array/of/length.js +++ b/test/built-ins/Array/of/length.js @@ -11,11 +11,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.of.length, 0, - 'The value of Array.of.length is expected to be 0' -); - -verifyNotEnumerable(Array.of, 'length'); -verifyNotWritable(Array.of, 'length'); -verifyConfigurable(Array.of, 'length'); +verifyProperty(Array.of, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/of/name.js b/test/built-ins/Array/of/name.js index 1377a54097..0bcd72a230 100644 --- a/test/built-ins/Array/of/name.js +++ b/test/built-ins/Array/of/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.of.name, 'of', - 'The value of Array.of.name is expected to be "of"' -); - -verifyNotEnumerable(Array.of, 'name'); -verifyNotWritable(Array.of, 'name'); -verifyConfigurable(Array.of, 'name'); +verifyProperty(Array.of, "name", { + value: "of", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/at/length.js b/test/built-ins/Array/prototype/at/length.js index 417084d50e..818c02b76b 100644 --- a/test/built-ins/Array/prototype/at/length.js +++ b/test/built-ins/Array/prototype/at/length.js @@ -18,11 +18,9 @@ assert.sameValue( 'The value of `typeof Array.prototype.at` is expected to be "function"' ); -assert.sameValue( - Array.prototype.at.length, 1, - 'The value of Array.prototype.at.length is expected to be 1' -); - -verifyNotEnumerable(Array.prototype.at, 'length'); -verifyNotWritable(Array.prototype.at, 'length'); -verifyConfigurable(Array.prototype.at, 'length'); +verifyProperty(Array.prototype.at, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/concat/length.js b/test/built-ins/Array/prototype/concat/length.js index 92fa5299aa..f75b42ebda 100644 --- a/test/built-ins/Array/prototype/concat/length.js +++ b/test/built-ins/Array/prototype/concat/length.js @@ -25,8 +25,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.concat.length, 1, 'The value of Array.prototype.concat.length is expected to be 1'); - -verifyNotEnumerable(Array.prototype.concat, 'length'); -verifyNotWritable(Array.prototype.concat, 'length'); -verifyConfigurable(Array.prototype.concat, 'length'); +verifyProperty(Array.prototype.concat, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/concat/name.js b/test/built-ins/Array/prototype/concat/name.js index 90bc748d09..a0a42c9b35 100644 --- a/test/built-ins/Array/prototype/concat/name.js +++ b/test/built-ins/Array/prototype/concat/name.js @@ -19,12 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.concat.name, - "concat", - 'The value of Array.prototype.concat.name is expected to be "concat"' -); - -verifyNotEnumerable(Array.prototype.concat, "name"); -verifyNotWritable(Array.prototype.concat, "name"); -verifyConfigurable(Array.prototype.concat, "name"); +verifyProperty(Array.prototype.concat, "name", { + value: "concat", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/copyWithin/length.js b/test/built-ins/Array/prototype/copyWithin/length.js index a48b43da25..b4797f7693 100644 --- a/test/built-ins/Array/prototype/copyWithin/length.js +++ b/test/built-ins/Array/prototype/copyWithin/length.js @@ -10,11 +10,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.copyWithin.length, 2, - 'The value of `Array.prototype.copyWithin.length` is `2`' -); - -verifyNotEnumerable(Array.prototype.copyWithin, 'length'); -verifyNotWritable(Array.prototype.copyWithin, 'length'); -verifyConfigurable(Array.prototype.copyWithin, 'length'); +verifyProperty(Array.prototype.copyWithin, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/copyWithin/name.js b/test/built-ins/Array/prototype/copyWithin/name.js index 07f0ce08c2..44670e4564 100644 --- a/test/built-ins/Array/prototype/copyWithin/name.js +++ b/test/built-ins/Array/prototype/copyWithin/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.copyWithin.name, 'copyWithin', - 'The value of `Array.prototype.copyWithin.name` is `"copyWithin"`' -); - -verifyNotEnumerable(Array.prototype.copyWithin, 'name'); -verifyNotWritable(Array.prototype.copyWithin, 'name'); -verifyConfigurable(Array.prototype.copyWithin, 'name'); +verifyProperty(Array.prototype.copyWithin, "name", { + value: "copyWithin", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/entries/length.js b/test/built-ins/Array/prototype/entries/length.js index c1590f6aec..096df9bca2 100644 --- a/test/built-ins/Array/prototype/entries/length.js +++ b/test/built-ins/Array/prototype/entries/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.entries.length, 0, - 'The value of `Array.prototype.entries.length` is `0`' -); - -verifyNotEnumerable(Array.prototype.entries, 'length'); -verifyNotWritable(Array.prototype.entries, 'length'); -verifyConfigurable(Array.prototype.entries, 'length'); +verifyProperty(Array.prototype.entries, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/entries/name.js b/test/built-ins/Array/prototype/entries/name.js index e940872aaf..0562354cca 100644 --- a/test/built-ins/Array/prototype/entries/name.js +++ b/test/built-ins/Array/prototype/entries/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.entries.name, 'entries', - 'The value of `Array.prototype.entries.name` is `"entries"`' -); - -verifyNotEnumerable(Array.prototype.entries, 'name'); -verifyNotWritable(Array.prototype.entries, 'name'); -verifyConfigurable(Array.prototype.entries, 'name'); +verifyProperty(Array.prototype.entries, "name", { + value: "entries", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/every/length.js b/test/built-ins/Array/prototype/every/length.js index 78fbadbf73..d0f1a40247 100644 --- a/test/built-ins/Array/prototype/every/length.js +++ b/test/built-ins/Array/prototype/every/length.js @@ -11,11 +11,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.every.length, 1, - 'The value of `Array.prototype.every.length` is `1`' -); - -verifyNotEnumerable(Array.prototype.every, 'length'); -verifyNotWritable(Array.prototype.every, 'length'); -verifyConfigurable(Array.prototype.every, 'length'); +verifyProperty(Array.prototype.every, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/every/name.js b/test/built-ins/Array/prototype/every/name.js index 058bce2558..b100954a32 100644 --- a/test/built-ins/Array/prototype/every/name.js +++ b/test/built-ins/Array/prototype/every/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.every.name, "every"); - -verifyNotEnumerable(Array.prototype.every, "name"); -verifyNotWritable(Array.prototype.every, "name"); -verifyConfigurable(Array.prototype.every, "name"); +verifyProperty(Array.prototype.every, "name", { + value: "every", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/fill/length.js b/test/built-ins/Array/prototype/fill/length.js index ce500d5f66..0f027c0bca 100644 --- a/test/built-ins/Array/prototype/fill/length.js +++ b/test/built-ins/Array/prototype/fill/length.js @@ -8,11 +8,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.fill.length, 1, - 'The value of `Array.prototype.fill.length` is `1`' -); - -verifyNotEnumerable(Array.prototype.fill, 'length'); -verifyNotWritable(Array.prototype.fill, 'length'); -verifyConfigurable(Array.prototype.fill, 'length'); +verifyProperty(Array.prototype.fill, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/fill/name.js b/test/built-ins/Array/prototype/fill/name.js index 409f1c3588..2a69f0a8da 100644 --- a/test/built-ins/Array/prototype/fill/name.js +++ b/test/built-ins/Array/prototype/fill/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.fill.name, 'fill', - 'The value of `Array.prototype.fill.name` is `"fill"`' -); - -verifyNotEnumerable(Array.prototype.fill, 'name'); -verifyNotWritable(Array.prototype.fill, 'name'); -verifyConfigurable(Array.prototype.fill, 'name'); +verifyProperty(Array.prototype.fill, "name", { + value: "fill", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/filter/length.js b/test/built-ins/Array/prototype/filter/length.js index 49c132c33c..99eb51a095 100644 --- a/test/built-ins/Array/prototype/filter/length.js +++ b/test/built-ins/Array/prototype/filter/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.filter.length, 1); - -verifyNotEnumerable(Array.prototype.filter, 'length'); -verifyNotWritable(Array.prototype.filter, 'length'); -verifyConfigurable(Array.prototype.filter, 'length'); +verifyProperty(Array.prototype.filter, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/filter/name.js b/test/built-ins/Array/prototype/filter/name.js index db6c40655c..c15f90a738 100644 --- a/test/built-ins/Array/prototype/filter/name.js +++ b/test/built-ins/Array/prototype/filter/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.filter.name, "filter"); - -verifyNotEnumerable(Array.prototype.filter, "name"); -verifyNotWritable(Array.prototype.filter, "name"); -verifyConfigurable(Array.prototype.filter, "name"); +verifyProperty(Array.prototype.filter, "name", { + value: "filter", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/find/length.js b/test/built-ins/Array/prototype/find/length.js index 6885d76de2..ddc57d90f4 100644 --- a/test/built-ins/Array/prototype/find/length.js +++ b/test/built-ins/Array/prototype/find/length.js @@ -8,11 +8,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.find.length, 1, - 'The value of `Array.prototype.find.length` is `1`' -); - -verifyNotEnumerable(Array.prototype.find, 'length'); -verifyNotWritable(Array.prototype.find, 'length'); -verifyConfigurable(Array.prototype.find, 'length'); +verifyProperty(Array.prototype.find, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/find/name.js b/test/built-ins/Array/prototype/find/name.js index 2aa50956c0..c868d55152 100644 --- a/test/built-ins/Array/prototype/find/name.js +++ b/test/built-ins/Array/prototype/find/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.find.name, 'find', - 'The value of `Array.prototype.find.name` is `"find"`' -); - -verifyNotEnumerable(Array.prototype.find, 'name'); -verifyNotWritable(Array.prototype.find, 'name'); -verifyConfigurable(Array.prototype.find, 'name'); +verifyProperty(Array.prototype.find, "name", { + value: "find", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/findIndex/length.js b/test/built-ins/Array/prototype/findIndex/length.js index bdea62eed0..666d640333 100644 --- a/test/built-ins/Array/prototype/findIndex/length.js +++ b/test/built-ins/Array/prototype/findIndex/length.js @@ -8,11 +8,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.findIndex.length, 1, - 'The value of `Array.prototype.findIndex.length` is `1`' -); - -verifyNotEnumerable(Array.prototype.findIndex, 'length'); -verifyNotWritable(Array.prototype.findIndex, 'length'); -verifyConfigurable(Array.prototype.findIndex, 'length'); +verifyProperty(Array.prototype.findIndex, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/findIndex/name.js b/test/built-ins/Array/prototype/findIndex/name.js index 7e0db6412d..2c8be7e2a9 100644 --- a/test/built-ins/Array/prototype/findIndex/name.js +++ b/test/built-ins/Array/prototype/findIndex/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.findIndex.name, 'findIndex', - 'The value of `Array.prototype.findIndex.name` is `"findIndex"`' -); - -verifyNotEnumerable(Array.prototype.findIndex, 'name'); -verifyNotWritable(Array.prototype.findIndex, 'name'); -verifyConfigurable(Array.prototype.findIndex, 'name'); +verifyProperty(Array.prototype.findIndex, "name", { + value: "findIndex", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/forEach/length.js b/test/built-ins/Array/prototype/forEach/length.js index a58372f27c..eba9afb533 100644 --- a/test/built-ins/Array/prototype/forEach/length.js +++ b/test/built-ins/Array/prototype/forEach/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.forEach.length, 1); - -verifyNotEnumerable(Array.prototype.forEach, 'length'); -verifyNotWritable(Array.prototype.forEach, 'length'); -verifyConfigurable(Array.prototype.forEach, 'length'); +verifyProperty(Array.prototype.forEach, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/forEach/name.js b/test/built-ins/Array/prototype/forEach/name.js index 9423bd4eac..d97260b1f7 100644 --- a/test/built-ins/Array/prototype/forEach/name.js +++ b/test/built-ins/Array/prototype/forEach/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.forEach.name, "forEach"); - -verifyNotEnumerable(Array.prototype.forEach, "name"); -verifyNotWritable(Array.prototype.forEach, "name"); -verifyConfigurable(Array.prototype.forEach, "name"); +verifyProperty(Array.prototype.forEach, "name", { + value: "forEach", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/includes/length.js b/test/built-ins/Array/prototype/includes/length.js index 259555a2ef..3063643973 100644 --- a/test/built-ins/Array/prototype/includes/length.js +++ b/test/built-ins/Array/prototype/includes/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js] features: [Array.prototype.includes] ---*/ -assert.sameValue(Array.prototype.includes.length, 1); - -verifyNotEnumerable(Array.prototype.includes, "length"); -verifyNotWritable(Array.prototype.includes, "length"); -verifyConfigurable(Array.prototype.includes, "length"); +verifyProperty(Array.prototype.includes, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/includes/name.js b/test/built-ins/Array/prototype/includes/name.js index daf1719718..9be2f48f0c 100644 --- a/test/built-ins/Array/prototype/includes/name.js +++ b/test/built-ins/Array/prototype/includes/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js] features: [Array.prototype.includes] ---*/ -assert.sameValue(Array.prototype.includes.name, "includes"); - -verifyNotEnumerable(Array.prototype.includes, "name"); -verifyNotWritable(Array.prototype.includes, "name"); -verifyConfigurable(Array.prototype.includes, "name"); +verifyProperty(Array.prototype.includes, "name", { + value: "includes", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/indexOf/length.js b/test/built-ins/Array/prototype/indexOf/length.js index c0bc818491..a098fafd90 100644 --- a/test/built-ins/Array/prototype/indexOf/length.js +++ b/test/built-ins/Array/prototype/indexOf/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.indexOf.length, 1); - -verifyNotEnumerable(Array.prototype.indexOf, 'length'); -verifyNotWritable(Array.prototype.indexOf, 'length'); -verifyConfigurable(Array.prototype.indexOf, 'length'); +verifyProperty(Array.prototype.indexOf, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/indexOf/name.js b/test/built-ins/Array/prototype/indexOf/name.js index 7bb5854c9f..a010d90607 100644 --- a/test/built-ins/Array/prototype/indexOf/name.js +++ b/test/built-ins/Array/prototype/indexOf/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.indexOf.name, "indexOf"); - -verifyNotEnumerable(Array.prototype.indexOf, "name"); -verifyNotWritable(Array.prototype.indexOf, "name"); -verifyConfigurable(Array.prototype.indexOf, "name"); +verifyProperty(Array.prototype.indexOf, "name", { + value: "indexOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/join/length.js b/test/built-ins/Array/prototype/join/length.js index a8fa14f253..3478f0d341 100644 --- a/test/built-ins/Array/prototype/join/length.js +++ b/test/built-ins/Array/prototype/join/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.join.length, 1); - -verifyNotEnumerable(Array.prototype.join, 'length'); -verifyNotWritable(Array.prototype.join, 'length'); -verifyConfigurable(Array.prototype.join, 'length'); +verifyProperty(Array.prototype.join, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/join/name.js b/test/built-ins/Array/prototype/join/name.js index e1bf9fda32..722e744c00 100644 --- a/test/built-ins/Array/prototype/join/name.js +++ b/test/built-ins/Array/prototype/join/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.join.name, "join"); - -verifyNotEnumerable(Array.prototype.join, "name"); -verifyNotWritable(Array.prototype.join, "name"); -verifyConfigurable(Array.prototype.join, "name"); +verifyProperty(Array.prototype.join, "name", { + value: "join", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/keys/length.js b/test/built-ins/Array/prototype/keys/length.js index a9f8f508f0..cfdb9f6300 100644 --- a/test/built-ins/Array/prototype/keys/length.js +++ b/test/built-ins/Array/prototype/keys/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.keys.length, 0, - 'The value of `Array.prototype.keys.length` is `0`' -); - -verifyNotEnumerable(Array.prototype.keys, 'length'); -verifyNotWritable(Array.prototype.keys, 'length'); -verifyConfigurable(Array.prototype.keys, 'length'); +verifyProperty(Array.prototype.keys, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/keys/name.js b/test/built-ins/Array/prototype/keys/name.js index 5c58cdf364..66fdff4688 100644 --- a/test/built-ins/Array/prototype/keys/name.js +++ b/test/built-ins/Array/prototype/keys/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Array.prototype.keys.name, 'keys', - 'The value of `Array.prototype.keys.name` is `"keys"`' -); - -verifyNotEnumerable(Array.prototype.keys, 'name'); -verifyNotWritable(Array.prototype.keys, 'name'); -verifyConfigurable(Array.prototype.keys, 'name'); +verifyProperty(Array.prototype.keys, "name", { + value: "keys", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/lastIndexOf/length.js b/test/built-ins/Array/prototype/lastIndexOf/length.js index 6084d8482c..d05e5c7992 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/length.js +++ b/test/built-ins/Array/prototype/lastIndexOf/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.lastIndexOf.length, 1); - -verifyNotEnumerable(Array.prototype.lastIndexOf, 'length'); -verifyNotWritable(Array.prototype.lastIndexOf, 'length'); -verifyConfigurable(Array.prototype.lastIndexOf, 'length'); +verifyProperty(Array.prototype.lastIndexOf, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/lastIndexOf/name.js b/test/built-ins/Array/prototype/lastIndexOf/name.js index e105d7c89e..639a4ae549 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/name.js +++ b/test/built-ins/Array/prototype/lastIndexOf/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.lastIndexOf.name, "lastIndexOf"); - -verifyNotEnumerable(Array.prototype.lastIndexOf, "name"); -verifyNotWritable(Array.prototype.lastIndexOf, "name"); -verifyConfigurable(Array.prototype.lastIndexOf, "name"); +verifyProperty(Array.prototype.lastIndexOf, "name", { + value: "lastIndexOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/map/length.js b/test/built-ins/Array/prototype/map/length.js index af037e98b5..ed545a14fc 100644 --- a/test/built-ins/Array/prototype/map/length.js +++ b/test/built-ins/Array/prototype/map/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.map.length, 1); - -verifyNotEnumerable(Array.prototype.map, 'length'); -verifyNotWritable(Array.prototype.map, 'length'); -verifyConfigurable(Array.prototype.map, 'length'); +verifyProperty(Array.prototype.map, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/map/name.js b/test/built-ins/Array/prototype/map/name.js index 0756461ccd..1ba32039bb 100644 --- a/test/built-ins/Array/prototype/map/name.js +++ b/test/built-ins/Array/prototype/map/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.map.name, "map"); - -verifyNotEnumerable(Array.prototype.map, "name"); -verifyNotWritable(Array.prototype.map, "name"); -verifyConfigurable(Array.prototype.map, "name"); +verifyProperty(Array.prototype.map, "name", { + value: "map", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/pop/length.js b/test/built-ins/Array/prototype/pop/length.js index d406ade497..6a5673b5e5 100644 --- a/test/built-ins/Array/prototype/pop/length.js +++ b/test/built-ins/Array/prototype/pop/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.pop.length, 0); - -verifyNotEnumerable(Array.prototype.pop, 'length'); -verifyNotWritable(Array.prototype.pop, 'length'); -verifyConfigurable(Array.prototype.pop, 'length'); +verifyProperty(Array.prototype.pop, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/pop/name.js b/test/built-ins/Array/prototype/pop/name.js index 0ee7934045..d89d6ad0cd 100644 --- a/test/built-ins/Array/prototype/pop/name.js +++ b/test/built-ins/Array/prototype/pop/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.pop.name, "pop"); - -verifyNotEnumerable(Array.prototype.pop, "name"); -verifyNotWritable(Array.prototype.pop, "name"); -verifyConfigurable(Array.prototype.pop, "name"); +verifyProperty(Array.prototype.pop, "name", { + value: "pop", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/push/length.js b/test/built-ins/Array/prototype/push/length.js index 33d43ba268..6ffc6684db 100644 --- a/test/built-ins/Array/prototype/push/length.js +++ b/test/built-ins/Array/prototype/push/length.js @@ -25,8 +25,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.push.length, 1); - -verifyNotEnumerable(Array.prototype.push, 'length'); -verifyNotWritable(Array.prototype.push, 'length'); -verifyConfigurable(Array.prototype.push, 'length'); +verifyProperty(Array.prototype.push, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/push/name.js b/test/built-ins/Array/prototype/push/name.js index 166083d515..3ba9403e96 100644 --- a/test/built-ins/Array/prototype/push/name.js +++ b/test/built-ins/Array/prototype/push/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.push.name, "push"); - -verifyNotEnumerable(Array.prototype.push, "name"); -verifyNotWritable(Array.prototype.push, "name"); -verifyConfigurable(Array.prototype.push, "name"); +verifyProperty(Array.prototype.push, "name", { + value: "push", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/reduce/length.js b/test/built-ins/Array/prototype/reduce/length.js index afc2b80eeb..8e1feb798a 100644 --- a/test/built-ins/Array/prototype/reduce/length.js +++ b/test/built-ins/Array/prototype/reduce/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.reduce.length, 1); - -verifyNotEnumerable(Array.prototype.reduce, 'length'); -verifyNotWritable(Array.prototype.reduce, 'length'); -verifyConfigurable(Array.prototype.reduce, 'length'); +verifyProperty(Array.prototype.reduce, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/reduce/name.js b/test/built-ins/Array/prototype/reduce/name.js index 978fbc950a..8342f4eee3 100644 --- a/test/built-ins/Array/prototype/reduce/name.js +++ b/test/built-ins/Array/prototype/reduce/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.reduce.name, "reduce"); - -verifyNotEnumerable(Array.prototype.reduce, "name"); -verifyNotWritable(Array.prototype.reduce, "name"); -verifyConfigurable(Array.prototype.reduce, "name"); +verifyProperty(Array.prototype.reduce, "name", { + value: "reduce", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/reduceRight/length.js b/test/built-ins/Array/prototype/reduceRight/length.js index a74578c096..002704ea4f 100644 --- a/test/built-ins/Array/prototype/reduceRight/length.js +++ b/test/built-ins/Array/prototype/reduceRight/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.reduceRight.length, 1); - -verifyNotEnumerable(Array.prototype.reduceRight, 'length'); -verifyNotWritable(Array.prototype.reduceRight, 'length'); -verifyConfigurable(Array.prototype.reduceRight, 'length'); +verifyProperty(Array.prototype.reduceRight, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/reduceRight/name.js b/test/built-ins/Array/prototype/reduceRight/name.js index 010dfd0b1b..65134e2458 100644 --- a/test/built-ins/Array/prototype/reduceRight/name.js +++ b/test/built-ins/Array/prototype/reduceRight/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.reduceRight.name, "reduceRight"); - -verifyNotEnumerable(Array.prototype.reduceRight, "name"); -verifyNotWritable(Array.prototype.reduceRight, "name"); -verifyConfigurable(Array.prototype.reduceRight, "name"); +verifyProperty(Array.prototype.reduceRight, "name", { + value: "reduceRight", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/reverse/length.js b/test/built-ins/Array/prototype/reverse/length.js index d969a5ff72..dc9d92ab8a 100644 --- a/test/built-ins/Array/prototype/reverse/length.js +++ b/test/built-ins/Array/prototype/reverse/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.reverse.length, 0); - -verifyNotEnumerable(Array.prototype.reverse, 'length'); -verifyNotWritable(Array.prototype.reverse, 'length'); -verifyConfigurable(Array.prototype.reverse, 'length'); +verifyProperty(Array.prototype.reverse, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/reverse/name.js b/test/built-ins/Array/prototype/reverse/name.js index 35770b38f6..80bf4684fa 100644 --- a/test/built-ins/Array/prototype/reverse/name.js +++ b/test/built-ins/Array/prototype/reverse/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.reverse.name, "reverse"); - -verifyNotEnumerable(Array.prototype.reverse, "name"); -verifyNotWritable(Array.prototype.reverse, "name"); -verifyConfigurable(Array.prototype.reverse, "name"); +verifyProperty(Array.prototype.reverse, "name", { + value: "reverse", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/shift/length.js b/test/built-ins/Array/prototype/shift/length.js index 7f8a08a3df..68aae01556 100644 --- a/test/built-ins/Array/prototype/shift/length.js +++ b/test/built-ins/Array/prototype/shift/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.shift.length, 0); - -verifyNotEnumerable(Array.prototype.shift, 'length'); -verifyNotWritable(Array.prototype.shift, 'length'); -verifyConfigurable(Array.prototype.shift, 'length'); +verifyProperty(Array.prototype.shift, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/shift/name.js b/test/built-ins/Array/prototype/shift/name.js index 77c18ea51a..0f5969cdf0 100644 --- a/test/built-ins/Array/prototype/shift/name.js +++ b/test/built-ins/Array/prototype/shift/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.shift.name, "shift"); - -verifyNotEnumerable(Array.prototype.shift, "name"); -verifyNotWritable(Array.prototype.shift, "name"); -verifyConfigurable(Array.prototype.shift, "name"); +verifyProperty(Array.prototype.shift, "name", { + value: "shift", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/slice/length.js b/test/built-ins/Array/prototype/slice/length.js index 314fc6964e..bdc58bd421 100644 --- a/test/built-ins/Array/prototype/slice/length.js +++ b/test/built-ins/Array/prototype/slice/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.slice.length, 2); - -verifyNotEnumerable(Array.prototype.slice, 'length'); -verifyNotWritable(Array.prototype.slice, 'length'); -verifyConfigurable(Array.prototype.slice, 'length'); +verifyProperty(Array.prototype.slice, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/slice/name.js b/test/built-ins/Array/prototype/slice/name.js index 29163790ee..56bfb75422 100644 --- a/test/built-ins/Array/prototype/slice/name.js +++ b/test/built-ins/Array/prototype/slice/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.slice.name, "slice"); - -verifyNotEnumerable(Array.prototype.slice, "name"); -verifyNotWritable(Array.prototype.slice, "name"); -verifyConfigurable(Array.prototype.slice, "name"); +verifyProperty(Array.prototype.slice, "name", { + value: "slice", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/some/length.js b/test/built-ins/Array/prototype/some/length.js index e52105a07a..1f03a98955 100644 --- a/test/built-ins/Array/prototype/some/length.js +++ b/test/built-ins/Array/prototype/some/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.some.length, 1); - -verifyNotEnumerable(Array.prototype.some, 'length'); -verifyNotWritable(Array.prototype.some, 'length'); -verifyConfigurable(Array.prototype.some, 'length'); +verifyProperty(Array.prototype.some, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/some/name.js b/test/built-ins/Array/prototype/some/name.js index dafb1347b2..b02f9293f9 100644 --- a/test/built-ins/Array/prototype/some/name.js +++ b/test/built-ins/Array/prototype/some/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.some.name, "some"); - -verifyNotEnumerable(Array.prototype.some, "name"); -verifyNotWritable(Array.prototype.some, "name"); -verifyConfigurable(Array.prototype.some, "name"); +verifyProperty(Array.prototype.some, "name", { + value: "some", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/sort/length.js b/test/built-ins/Array/prototype/sort/length.js index 6fe160963a..2ef9f19eb7 100644 --- a/test/built-ins/Array/prototype/sort/length.js +++ b/test/built-ins/Array/prototype/sort/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.sort.length, 1); - -verifyNotEnumerable(Array.prototype.sort, 'length'); -verifyNotWritable(Array.prototype.sort, 'length'); -verifyConfigurable(Array.prototype.sort, 'length'); +verifyProperty(Array.prototype.sort, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/sort/name.js b/test/built-ins/Array/prototype/sort/name.js index a1dba0e696..16d4df5ebd 100644 --- a/test/built-ins/Array/prototype/sort/name.js +++ b/test/built-ins/Array/prototype/sort/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.sort.name, "sort"); - -verifyNotEnumerable(Array.prototype.sort, "name"); -verifyNotWritable(Array.prototype.sort, "name"); -verifyConfigurable(Array.prototype.sort, "name"); +verifyProperty(Array.prototype.sort, "name", { + value: "sort", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/splice/length.js b/test/built-ins/Array/prototype/splice/length.js index c77eb7eca4..72c2ca546c 100644 --- a/test/built-ins/Array/prototype/splice/length.js +++ b/test/built-ins/Array/prototype/splice/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.splice.length, 2); - -verifyNotEnumerable(Array.prototype.splice, 'length'); -verifyNotWritable(Array.prototype.splice, 'length'); -verifyConfigurable(Array.prototype.splice, 'length'); +verifyProperty(Array.prototype.splice, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/splice/name.js b/test/built-ins/Array/prototype/splice/name.js index 7d102ad0d2..87dbe3bd64 100644 --- a/test/built-ins/Array/prototype/splice/name.js +++ b/test/built-ins/Array/prototype/splice/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.splice.name, "splice"); - -verifyNotEnumerable(Array.prototype.splice, "name"); -verifyNotWritable(Array.prototype.splice, "name"); -verifyConfigurable(Array.prototype.splice, "name"); +verifyProperty(Array.prototype.splice, "name", { + value: "splice", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/toLocaleString/length.js b/test/built-ins/Array/prototype/toLocaleString/length.js index c96a608209..5704d76486 100644 --- a/test/built-ins/Array/prototype/toLocaleString/length.js +++ b/test/built-ins/Array/prototype/toLocaleString/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.toLocaleString.length, 0); - -verifyNotEnumerable(Array.prototype.toLocaleString, 'length'); -verifyNotWritable(Array.prototype.toLocaleString, 'length'); -verifyConfigurable(Array.prototype.toLocaleString, 'length'); +verifyProperty(Array.prototype.toLocaleString, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/toLocaleString/name.js b/test/built-ins/Array/prototype/toLocaleString/name.js index effd39260d..f96cdf2caa 100644 --- a/test/built-ins/Array/prototype/toLocaleString/name.js +++ b/test/built-ins/Array/prototype/toLocaleString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.toLocaleString.name, "toLocaleString"); - -verifyNotEnumerable(Array.prototype.toLocaleString, "name"); -verifyNotWritable(Array.prototype.toLocaleString, "name"); -verifyConfigurable(Array.prototype.toLocaleString, "name"); +verifyProperty(Array.prototype.toLocaleString, "name", { + value: "toLocaleString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/toString/length.js b/test/built-ins/Array/prototype/toString/length.js index 2322313389..afa57a44ef 100644 --- a/test/built-ins/Array/prototype/toString/length.js +++ b/test/built-ins/Array/prototype/toString/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.toString.length, 0); - -verifyNotEnumerable(Array.prototype.toString, "length"); -verifyNotWritable(Array.prototype.toString, "length"); -verifyConfigurable(Array.prototype.toString, "length"); +verifyProperty(Array.prototype.toString, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/toString/name.js b/test/built-ins/Array/prototype/toString/name.js index 62e92865d5..82da5862d4 100644 --- a/test/built-ins/Array/prototype/toString/name.js +++ b/test/built-ins/Array/prototype/toString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.toString.name, "toString"); - -verifyNotEnumerable(Array.prototype.toString, "name"); -verifyNotWritable(Array.prototype.toString, "name"); -verifyConfigurable(Array.prototype.toString, "name"); +verifyProperty(Array.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/unshift/length.js b/test/built-ins/Array/prototype/unshift/length.js index 05305348ec..791ce31bdb 100644 --- a/test/built-ins/Array/prototype/unshift/length.js +++ b/test/built-ins/Array/prototype/unshift/length.js @@ -25,8 +25,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.unshift.length, 1); - -verifyNotEnumerable(Array.prototype.unshift, 'length'); -verifyNotWritable(Array.prototype.unshift, 'length'); -verifyConfigurable(Array.prototype.unshift, 'length'); +verifyProperty(Array.prototype.unshift, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/unshift/name.js b/test/built-ins/Array/prototype/unshift/name.js index e912248e95..82a917fe39 100644 --- a/test/built-ins/Array/prototype/unshift/name.js +++ b/test/built-ins/Array/prototype/unshift/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.unshift.name, "unshift"); - -verifyNotEnumerable(Array.prototype.unshift, "name"); -verifyNotWritable(Array.prototype.unshift, "name"); -verifyConfigurable(Array.prototype.unshift, "name"); +verifyProperty(Array.prototype.unshift, "name", { + value: "unshift", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/values/length.js b/test/built-ins/Array/prototype/values/length.js index a641178726..e0a8be96be 100644 --- a/test/built-ins/Array/prototype/values/length.js +++ b/test/built-ins/Array/prototype/values/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.values.length, 0); - -verifyNotEnumerable(Array.prototype.values, 'length'); -verifyNotWritable(Array.prototype.values, 'length'); -verifyConfigurable(Array.prototype.values, 'length'); +verifyProperty(Array.prototype.values, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Array/prototype/values/name.js b/test/built-ins/Array/prototype/values/name.js index 0618b50813..381d3fe2b0 100644 --- a/test/built-ins/Array/prototype/values/name.js +++ b/test/built-ins/Array/prototype/values/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Array.prototype.values.name, 'values'); - -verifyNotEnumerable(Array.prototype.values, 'name'); -verifyNotWritable(Array.prototype.values, 'name'); -verifyConfigurable(Array.prototype.values, 'name'); +verifyProperty(Array.prototype.values, "name", { + value: "values", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayBuffer/Symbol.species/length.js b/test/built-ins/ArrayBuffer/Symbol.species/length.js index 9443da03b5..dcca96b3f2 100644 --- a/test/built-ins/ArrayBuffer/Symbol.species/length.js +++ b/test/built-ins/ArrayBuffer/Symbol.species/length.js @@ -25,8 +25,9 @@ features: [Symbol.species] var desc = Object.getOwnPropertyDescriptor(ArrayBuffer, Symbol.species); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayBuffer/Symbol.species/symbol-species-name.js b/test/built-ins/ArrayBuffer/Symbol.species/symbol-species-name.js index 87e1351189..151725eaa4 100644 --- a/test/built-ins/ArrayBuffer/Symbol.species/symbol-species-name.js +++ b/test/built-ins/ArrayBuffer/Symbol.species/symbol-species-name.js @@ -15,11 +15,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(ArrayBuffer, Symbol.species); -assert.sameValue( - descriptor.get.name, - 'get [Symbol.species]' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get [Symbol.species]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayBuffer/isView/length.js b/test/built-ins/ArrayBuffer/isView/length.js index 2c2408c1d2..8670244d7d 100644 --- a/test/built-ins/ArrayBuffer/isView/length.js +++ b/test/built-ins/ArrayBuffer/isView/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(ArrayBuffer.isView.length, 1); - -verifyNotEnumerable(ArrayBuffer.isView, "length"); -verifyNotWritable(ArrayBuffer.isView, "length"); -verifyConfigurable(ArrayBuffer.isView, "length"); +verifyProperty(ArrayBuffer.isView, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayBuffer/isView/name.js b/test/built-ins/ArrayBuffer/isView/name.js index de8d7902f3..46d167274f 100644 --- a/test/built-ins/ArrayBuffer/isView/name.js +++ b/test/built-ins/ArrayBuffer/isView/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(ArrayBuffer.isView.name, "isView"); - -verifyNotEnumerable(ArrayBuffer.isView, "name"); -verifyNotWritable(ArrayBuffer.isView, "name"); -verifyConfigurable(ArrayBuffer.isView, "name"); +verifyProperty(ArrayBuffer.isView, "name", { + value: "isView", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayBuffer/prototype/byteLength/length.js b/test/built-ins/ArrayBuffer/prototype/byteLength/length.js index 8c0d4e50d8..1e0d188ab4 100644 --- a/test/built-ins/ArrayBuffer/prototype/byteLength/length.js +++ b/test/built-ins/ArrayBuffer/prototype/byteLength/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayBuffer/prototype/byteLength/name.js b/test/built-ins/ArrayBuffer/prototype/byteLength/name.js index 76e7708705..11377d7014 100644 --- a/test/built-ins/ArrayBuffer/prototype/byteLength/name.js +++ b/test/built-ins/ArrayBuffer/prototype/byteLength/name.js @@ -17,11 +17,9 @@ var descriptor = Object.getOwnPropertyDescriptor( ArrayBuffer.prototype, 'byteLength' ); -assert.sameValue( - descriptor.get.name, 'get byteLength', - 'The value of `descriptor.get.name` is `"get byteLength"`' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get byteLength", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/length.js b/test/built-ins/ArrayBuffer/prototype/slice/length.js index 3c09fe0ae6..0689d53380 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/length.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(ArrayBuffer.prototype.slice.length, 2); - -verifyNotEnumerable(ArrayBuffer.prototype.slice, "length"); -verifyNotWritable(ArrayBuffer.prototype.slice, "length"); -verifyConfigurable(ArrayBuffer.prototype.slice, "length"); +verifyProperty(ArrayBuffer.prototype.slice, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/name.js b/test/built-ins/ArrayBuffer/prototype/slice/name.js index 475b909faa..d50c740928 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/name.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(ArrayBuffer.prototype.slice.name, "slice"); - -verifyNotEnumerable(ArrayBuffer.prototype.slice, "name"); -verifyNotWritable(ArrayBuffer.prototype.slice, "name"); -verifyConfigurable(ArrayBuffer.prototype.slice, "name"); +verifyProperty(ArrayBuffer.prototype.slice, "name", { + value: "slice", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayIteratorPrototype/next/length.js b/test/built-ins/ArrayIteratorPrototype/next/length.js index 69e81cb004..6a7c5d4c33 100644 --- a/test/built-ins/ArrayIteratorPrototype/next/length.js +++ b/test/built-ins/ArrayIteratorPrototype/next/length.js @@ -25,8 +25,9 @@ features: [Symbol.iterator] var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]()); -assert.sameValue(ArrayIteratorProto.next.length, 0); - -verifyNotEnumerable(ArrayIteratorProto.next, "length"); -verifyNotWritable(ArrayIteratorProto.next, "length"); -verifyConfigurable(ArrayIteratorProto.next, "length"); +verifyProperty(ArrayIteratorProto.next, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ArrayIteratorPrototype/next/name.js b/test/built-ins/ArrayIteratorPrototype/next/name.js index 01815558bf..d2df288b40 100644 --- a/test/built-ins/ArrayIteratorPrototype/next/name.js +++ b/test/built-ins/ArrayIteratorPrototype/next/name.js @@ -22,8 +22,9 @@ features: [Symbol.iterator] var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]()); -assert.sameValue(ArrayIteratorProto.next.name, "next"); - -verifyNotEnumerable(ArrayIteratorProto.next, "name"); -verifyNotWritable(ArrayIteratorProto.next, "name"); -verifyConfigurable(ArrayIteratorProto.next, "name"); +verifyProperty(ArrayIteratorProto.next, "name", { + value: "next", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-length.js b/test/built-ins/AsyncFunction/AsyncFunction-length.js index c6ba9360eb..29b152bfe1 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-length.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-length.js @@ -10,7 +10,9 @@ includes: [propertyHelper.js] ---*/ var AsyncFunction = async function foo() {}.constructor; -assert.sameValue(AsyncFunction.length, 1); -verifyNotWritable(AsyncFunction, 'length'); -verifyNotEnumerable(AsyncFunction, 'length'); -verifyConfigurable(AsyncFunction, 'length'); +verifyProperty(AsyncFunction, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-name.js b/test/built-ins/AsyncFunction/AsyncFunction-name.js index 637d1ece14..0b4e48ae07 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-name.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-name.js @@ -10,7 +10,9 @@ includes: [propertyHelper.js] ---*/ var AsyncFunction = async function foo() {}.constructor; -assert.sameValue(AsyncFunction.name, "AsyncFunction"); -verifyNotWritable(AsyncFunction, "name"); -verifyNotEnumerable(AsyncFunction, "name"); -verifyConfigurable(AsyncFunction, "name"); +verifyProperty(AsyncFunction, "name", { + value: "AsyncFunction", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/AsyncFunction/instance-has-name.js b/test/built-ins/AsyncFunction/instance-has-name.js index 1def25c881..b5f693d412 100644 --- a/test/built-ins/AsyncFunction/instance-has-name.js +++ b/test/built-ins/AsyncFunction/instance-has-name.js @@ -10,7 +10,9 @@ includes: [propertyHelper.js] async function foo() {}; -assert.sameValue(foo.name, "foo"); -verifyNotWritable(foo, "name"); -verifyNotEnumerable(foo, "name"); -verifyConfigurable(foo, "name"); +verifyProperty(foo, "name", { + value: "foo", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Boolean/prototype/toString/length.js b/test/built-ins/Boolean/prototype/toString/length.js index 4e5e4f415e..f166f0ead8 100644 --- a/test/built-ins/Boolean/prototype/toString/length.js +++ b/test/built-ins/Boolean/prototype/toString/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Boolean.prototype.toString.length, 0); - -verifyNotEnumerable(Boolean.prototype.toString, "length"); -verifyNotWritable(Boolean.prototype.toString, "length"); -verifyConfigurable(Boolean.prototype.toString, "length"); +verifyProperty(Boolean.prototype.toString, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Boolean/prototype/toString/name.js b/test/built-ins/Boolean/prototype/toString/name.js index cce5f02785..534e2b3d60 100644 --- a/test/built-ins/Boolean/prototype/toString/name.js +++ b/test/built-ins/Boolean/prototype/toString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Boolean.prototype.toString.name, "toString"); - -verifyNotEnumerable(Boolean.prototype.toString, "name"); -verifyNotWritable(Boolean.prototype.toString, "name"); -verifyConfigurable(Boolean.prototype.toString, "name"); +verifyProperty(Boolean.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Boolean/prototype/valueOf/length.js b/test/built-ins/Boolean/prototype/valueOf/length.js index f87fc20c8b..e037d903b0 100644 --- a/test/built-ins/Boolean/prototype/valueOf/length.js +++ b/test/built-ins/Boolean/prototype/valueOf/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Boolean.prototype.valueOf.length, 0); - -verifyNotEnumerable(Boolean.prototype.valueOf, "length"); -verifyNotWritable(Boolean.prototype.valueOf, "length"); -verifyConfigurable(Boolean.prototype.valueOf, "length"); +verifyProperty(Boolean.prototype.valueOf, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Boolean/prototype/valueOf/name.js b/test/built-ins/Boolean/prototype/valueOf/name.js index afe244119e..bde6e6d984 100644 --- a/test/built-ins/Boolean/prototype/valueOf/name.js +++ b/test/built-ins/Boolean/prototype/valueOf/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Boolean.prototype.valueOf.name, "valueOf"); - -verifyNotEnumerable(Boolean.prototype.valueOf, "name"); -verifyNotWritable(Boolean.prototype.valueOf, "name"); -verifyConfigurable(Boolean.prototype.valueOf, "name"); +verifyProperty(Boolean.prototype.valueOf, "name", { + value: "valueOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/name.js b/test/built-ins/DataView/name.js index 750f343e62..39e1863264 100644 --- a/test/built-ins/DataView/name.js +++ b/test/built-ins/DataView/name.js @@ -8,8 +8,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.name, "DataView", "The value of `DataView.name` is `'DataView'`"); - -verifyNotEnumerable(DataView, "name"); -verifyNotWritable(DataView, "name"); -verifyConfigurable(DataView, "name"); +verifyProperty(DataView, "name", { + value: "DataView", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/buffer/length.js b/test/built-ins/DataView/prototype/buffer/length.js index 8535518a13..8293eb0792 100644 --- a/test/built-ins/DataView/prototype/buffer/length.js +++ b/test/built-ins/DataView/prototype/buffer/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "buffer"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/buffer/name.js b/test/built-ins/DataView/prototype/buffer/name.js index cd2f20b114..e7094ebd3a 100644 --- a/test/built-ins/DataView/prototype/buffer/name.js +++ b/test/built-ins/DataView/prototype/buffer/name.js @@ -17,11 +17,9 @@ var descriptor = Object.getOwnPropertyDescriptor( DataView.prototype, 'buffer' ); -assert.sameValue( - descriptor.get.name, 'get buffer', - 'The value of `descriptor.get.name` is `"get buffer"`' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get buffer", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/byteLength/length.js b/test/built-ins/DataView/prototype/byteLength/length.js index ec6b247d28..0148629436 100644 --- a/test/built-ins/DataView/prototype/byteLength/length.js +++ b/test/built-ins/DataView/prototype/byteLength/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "byteLength"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/byteLength/name.js b/test/built-ins/DataView/prototype/byteLength/name.js index bbdd2a59d9..459fcec50c 100644 --- a/test/built-ins/DataView/prototype/byteLength/name.js +++ b/test/built-ins/DataView/prototype/byteLength/name.js @@ -17,11 +17,9 @@ var descriptor = Object.getOwnPropertyDescriptor( DataView.prototype, 'byteLength' ); -assert.sameValue( - descriptor.get.name, 'get byteLength', - 'The value of `descriptor.get.name` is `"get byteLength"`' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get byteLength", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/byteOffset/length.js b/test/built-ins/DataView/prototype/byteOffset/length.js index ede61c2d89..d99a7c06cd 100644 --- a/test/built-ins/DataView/prototype/byteOffset/length.js +++ b/test/built-ins/DataView/prototype/byteOffset/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "byteOffset"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/byteOffset/name.js b/test/built-ins/DataView/prototype/byteOffset/name.js index a2d6d2ca95..04c859e725 100644 --- a/test/built-ins/DataView/prototype/byteOffset/name.js +++ b/test/built-ins/DataView/prototype/byteOffset/name.js @@ -17,11 +17,9 @@ var descriptor = Object.getOwnPropertyDescriptor( DataView.prototype, 'byteOffset' ); -assert.sameValue( - descriptor.get.name, 'get byteOffset', - 'The value of `descriptor.get.name` is `"get byteOffset"`' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get byteOffset", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getFloat32/length.js b/test/built-ins/DataView/prototype/getFloat32/length.js index fa353212ac..2248077fd7 100644 --- a/test/built-ins/DataView/prototype/getFloat32/length.js +++ b/test/built-ins/DataView/prototype/getFloat32/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getFloat32.length, 1); - -verifyNotEnumerable(DataView.prototype.getFloat32, "length"); -verifyNotWritable(DataView.prototype.getFloat32, "length"); -verifyConfigurable(DataView.prototype.getFloat32, "length"); +verifyProperty(DataView.prototype.getFloat32, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getFloat32/name.js b/test/built-ins/DataView/prototype/getFloat32/name.js index d247c1d99a..1ca7fff6ea 100644 --- a/test/built-ins/DataView/prototype/getFloat32/name.js +++ b/test/built-ins/DataView/prototype/getFloat32/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getFloat32.name, "getFloat32"); - -verifyNotEnumerable(DataView.prototype.getFloat32, "name"); -verifyNotWritable(DataView.prototype.getFloat32, "name"); -verifyConfigurable(DataView.prototype.getFloat32, "name"); +verifyProperty(DataView.prototype.getFloat32, "name", { + value: "getFloat32", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getFloat64/length.js b/test/built-ins/DataView/prototype/getFloat64/length.js index 5e3688e588..a11465ac51 100644 --- a/test/built-ins/DataView/prototype/getFloat64/length.js +++ b/test/built-ins/DataView/prototype/getFloat64/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getFloat64.length, 1); - -verifyNotEnumerable(DataView.prototype.getFloat64, "length"); -verifyNotWritable(DataView.prototype.getFloat64, "length"); -verifyConfigurable(DataView.prototype.getFloat64, "length"); +verifyProperty(DataView.prototype.getFloat64, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getFloat64/name.js b/test/built-ins/DataView/prototype/getFloat64/name.js index 74361047ff..70ff1ea919 100644 --- a/test/built-ins/DataView/prototype/getFloat64/name.js +++ b/test/built-ins/DataView/prototype/getFloat64/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getFloat64.name, "getFloat64"); - -verifyNotEnumerable(DataView.prototype.getFloat64, "name"); -verifyNotWritable(DataView.prototype.getFloat64, "name"); -verifyConfigurable(DataView.prototype.getFloat64, "name"); +verifyProperty(DataView.prototype.getFloat64, "name", { + value: "getFloat64", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getInt16/length.js b/test/built-ins/DataView/prototype/getInt16/length.js index 062651e648..129946e6cd 100644 --- a/test/built-ins/DataView/prototype/getInt16/length.js +++ b/test/built-ins/DataView/prototype/getInt16/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getInt16.length, 1); - -verifyNotEnumerable(DataView.prototype.getInt16, "length"); -verifyNotWritable(DataView.prototype.getInt16, "length"); -verifyConfigurable(DataView.prototype.getInt16, "length"); +verifyProperty(DataView.prototype.getInt16, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getInt16/name.js b/test/built-ins/DataView/prototype/getInt16/name.js index 2aaa1a8efe..05f153de0b 100644 --- a/test/built-ins/DataView/prototype/getInt16/name.js +++ b/test/built-ins/DataView/prototype/getInt16/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getInt16.name, "getInt16"); - -verifyNotEnumerable(DataView.prototype.getInt16, "name"); -verifyNotWritable(DataView.prototype.getInt16, "name"); -verifyConfigurable(DataView.prototype.getInt16, "name"); +verifyProperty(DataView.prototype.getInt16, "name", { + value: "getInt16", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getInt32/length.js b/test/built-ins/DataView/prototype/getInt32/length.js index 8d6f458eaf..7b8977cb92 100644 --- a/test/built-ins/DataView/prototype/getInt32/length.js +++ b/test/built-ins/DataView/prototype/getInt32/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getInt32.length, 1); - -verifyNotEnumerable(DataView.prototype.getInt32, "length"); -verifyNotWritable(DataView.prototype.getInt32, "length"); -verifyConfigurable(DataView.prototype.getInt32, "length"); +verifyProperty(DataView.prototype.getInt32, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getInt32/name.js b/test/built-ins/DataView/prototype/getInt32/name.js index 884fb05c74..5fc4d761cd 100644 --- a/test/built-ins/DataView/prototype/getInt32/name.js +++ b/test/built-ins/DataView/prototype/getInt32/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getInt32.name, "getInt32"); - -verifyNotEnumerable(DataView.prototype.getInt32, "name"); -verifyNotWritable(DataView.prototype.getInt32, "name"); -verifyConfigurable(DataView.prototype.getInt32, "name"); +verifyProperty(DataView.prototype.getInt32, "name", { + value: "getInt32", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getInt8/length.js b/test/built-ins/DataView/prototype/getInt8/length.js index a219c50e29..d633916b9b 100644 --- a/test/built-ins/DataView/prototype/getInt8/length.js +++ b/test/built-ins/DataView/prototype/getInt8/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getInt8.length, 1); - -verifyNotEnumerable(DataView.prototype.getInt8, "length"); -verifyNotWritable(DataView.prototype.getInt8, "length"); -verifyConfigurable(DataView.prototype.getInt8, "length"); +verifyProperty(DataView.prototype.getInt8, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getInt8/name.js b/test/built-ins/DataView/prototype/getInt8/name.js index 3b2933f797..4ad7420c9e 100644 --- a/test/built-ins/DataView/prototype/getInt8/name.js +++ b/test/built-ins/DataView/prototype/getInt8/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getInt8.name, "getInt8"); - -verifyNotEnumerable(DataView.prototype.getInt8, "name"); -verifyNotWritable(DataView.prototype.getInt8, "name"); -verifyConfigurable(DataView.prototype.getInt8, "name"); +verifyProperty(DataView.prototype.getInt8, "name", { + value: "getInt8", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getUint16/length.js b/test/built-ins/DataView/prototype/getUint16/length.js index b6308c0a5c..f3955f0b62 100644 --- a/test/built-ins/DataView/prototype/getUint16/length.js +++ b/test/built-ins/DataView/prototype/getUint16/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getUint16.length, 1); - -verifyNotEnumerable(DataView.prototype.getUint16, "length"); -verifyNotWritable(DataView.prototype.getUint16, "length"); -verifyConfigurable(DataView.prototype.getUint16, "length"); +verifyProperty(DataView.prototype.getUint16, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getUint16/name.js b/test/built-ins/DataView/prototype/getUint16/name.js index 25621c1041..4888762b60 100644 --- a/test/built-ins/DataView/prototype/getUint16/name.js +++ b/test/built-ins/DataView/prototype/getUint16/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getUint16.name, "getUint16"); - -verifyNotEnumerable(DataView.prototype.getUint16, "name"); -verifyNotWritable(DataView.prototype.getUint16, "name"); -verifyConfigurable(DataView.prototype.getUint16, "name"); +verifyProperty(DataView.prototype.getUint16, "name", { + value: "getUint16", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getUint32/length.js b/test/built-ins/DataView/prototype/getUint32/length.js index 3633b8f7fb..1a94d7fcf5 100644 --- a/test/built-ins/DataView/prototype/getUint32/length.js +++ b/test/built-ins/DataView/prototype/getUint32/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getUint32.length, 1); - -verifyNotEnumerable(DataView.prototype.getUint32, "length"); -verifyNotWritable(DataView.prototype.getUint32, "length"); -verifyConfigurable(DataView.prototype.getUint32, "length"); +verifyProperty(DataView.prototype.getUint32, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getUint32/name.js b/test/built-ins/DataView/prototype/getUint32/name.js index b452f2706b..531a9f6fc9 100644 --- a/test/built-ins/DataView/prototype/getUint32/name.js +++ b/test/built-ins/DataView/prototype/getUint32/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getUint32.name, "getUint32"); - -verifyNotEnumerable(DataView.prototype.getUint32, "name"); -verifyNotWritable(DataView.prototype.getUint32, "name"); -verifyConfigurable(DataView.prototype.getUint32, "name"); +verifyProperty(DataView.prototype.getUint32, "name", { + value: "getUint32", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getUint8/length.js b/test/built-ins/DataView/prototype/getUint8/length.js index 5713389698..526b09a23f 100644 --- a/test/built-ins/DataView/prototype/getUint8/length.js +++ b/test/built-ins/DataView/prototype/getUint8/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getUint8.length, 1); - -verifyNotEnumerable(DataView.prototype.getUint8, "length"); -verifyNotWritable(DataView.prototype.getUint8, "length"); -verifyConfigurable(DataView.prototype.getUint8, "length"); +verifyProperty(DataView.prototype.getUint8, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getUint8/name.js b/test/built-ins/DataView/prototype/getUint8/name.js index f4e06aca7a..d16deed2e4 100644 --- a/test/built-ins/DataView/prototype/getUint8/name.js +++ b/test/built-ins/DataView/prototype/getUint8/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getUint8.name, "getUint8"); - -verifyNotEnumerable(DataView.prototype.getUint8, "name"); -verifyNotWritable(DataView.prototype.getUint8, "name"); -verifyConfigurable(DataView.prototype.getUint8, "name"); +verifyProperty(DataView.prototype.getUint8, "name", { + value: "getUint8", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setFloat32/length.js b/test/built-ins/DataView/prototype/setFloat32/length.js index 1726c2bb4f..2a1f344399 100644 --- a/test/built-ins/DataView/prototype/setFloat32/length.js +++ b/test/built-ins/DataView/prototype/setFloat32/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setFloat32.length, 2); - -verifyNotEnumerable(DataView.prototype.setFloat32, "length"); -verifyNotWritable(DataView.prototype.setFloat32, "length"); -verifyConfigurable(DataView.prototype.setFloat32, "length"); +verifyProperty(DataView.prototype.setFloat32, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setFloat32/name.js b/test/built-ins/DataView/prototype/setFloat32/name.js index 339a80438a..ec777e243b 100644 --- a/test/built-ins/DataView/prototype/setFloat32/name.js +++ b/test/built-ins/DataView/prototype/setFloat32/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setFloat32.name, "setFloat32"); - -verifyNotEnumerable(DataView.prototype.setFloat32, "name"); -verifyNotWritable(DataView.prototype.setFloat32, "name"); -verifyConfigurable(DataView.prototype.setFloat32, "name"); +verifyProperty(DataView.prototype.setFloat32, "name", { + value: "setFloat32", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setFloat64/length.js b/test/built-ins/DataView/prototype/setFloat64/length.js index fea45e315f..397794beb5 100644 --- a/test/built-ins/DataView/prototype/setFloat64/length.js +++ b/test/built-ins/DataView/prototype/setFloat64/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setFloat64.length, 2); - -verifyNotEnumerable(DataView.prototype.setFloat64, "length"); -verifyNotWritable(DataView.prototype.setFloat64, "length"); -verifyConfigurable(DataView.prototype.setFloat64, "length"); +verifyProperty(DataView.prototype.setFloat64, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setFloat64/name.js b/test/built-ins/DataView/prototype/setFloat64/name.js index a054f5d947..7a965528ff 100644 --- a/test/built-ins/DataView/prototype/setFloat64/name.js +++ b/test/built-ins/DataView/prototype/setFloat64/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setFloat64.name, "setFloat64"); - -verifyNotEnumerable(DataView.prototype.setFloat64, "name"); -verifyNotWritable(DataView.prototype.setFloat64, "name"); -verifyConfigurable(DataView.prototype.setFloat64, "name"); +verifyProperty(DataView.prototype.setFloat64, "name", { + value: "setFloat64", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setInt16/length.js b/test/built-ins/DataView/prototype/setInt16/length.js index 423ad64882..7b7d196913 100644 --- a/test/built-ins/DataView/prototype/setInt16/length.js +++ b/test/built-ins/DataView/prototype/setInt16/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setInt16.length, 2); - -verifyNotEnumerable(DataView.prototype.setInt16, "length"); -verifyNotWritable(DataView.prototype.setInt16, "length"); -verifyConfigurable(DataView.prototype.setInt16, "length"); +verifyProperty(DataView.prototype.setInt16, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setInt16/name.js b/test/built-ins/DataView/prototype/setInt16/name.js index 3a3b2d0227..f19316313e 100644 --- a/test/built-ins/DataView/prototype/setInt16/name.js +++ b/test/built-ins/DataView/prototype/setInt16/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setInt16.name, "setInt16"); - -verifyNotEnumerable(DataView.prototype.setInt16, "name"); -verifyNotWritable(DataView.prototype.setInt16, "name"); -verifyConfigurable(DataView.prototype.setInt16, "name"); +verifyProperty(DataView.prototype.setInt16, "name", { + value: "setInt16", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setInt32/length.js b/test/built-ins/DataView/prototype/setInt32/length.js index 466562ccaf..20f478191b 100644 --- a/test/built-ins/DataView/prototype/setInt32/length.js +++ b/test/built-ins/DataView/prototype/setInt32/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setInt32.length, 2); - -verifyNotEnumerable(DataView.prototype.setInt32, "length"); -verifyNotWritable(DataView.prototype.setInt32, "length"); -verifyConfigurable(DataView.prototype.setInt32, "length"); +verifyProperty(DataView.prototype.setInt32, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setInt32/name.js b/test/built-ins/DataView/prototype/setInt32/name.js index aae5545143..07370fac0c 100644 --- a/test/built-ins/DataView/prototype/setInt32/name.js +++ b/test/built-ins/DataView/prototype/setInt32/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setInt32.name, "setInt32"); - -verifyNotEnumerable(DataView.prototype.setInt32, "name"); -verifyNotWritable(DataView.prototype.setInt32, "name"); -verifyConfigurable(DataView.prototype.setInt32, "name"); +verifyProperty(DataView.prototype.setInt32, "name", { + value: "setInt32", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setInt8/length.js b/test/built-ins/DataView/prototype/setInt8/length.js index 78df74eaaa..003da6d4ff 100644 --- a/test/built-ins/DataView/prototype/setInt8/length.js +++ b/test/built-ins/DataView/prototype/setInt8/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setInt8.length, 2); - -verifyNotEnumerable(DataView.prototype.setInt8, "length"); -verifyNotWritable(DataView.prototype.setInt8, "length"); -verifyConfigurable(DataView.prototype.setInt8, "length"); +verifyProperty(DataView.prototype.setInt8, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setInt8/name.js b/test/built-ins/DataView/prototype/setInt8/name.js index fbc3cc2c8f..bbda93cf3d 100644 --- a/test/built-ins/DataView/prototype/setInt8/name.js +++ b/test/built-ins/DataView/prototype/setInt8/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setInt8.name, "setInt8"); - -verifyNotEnumerable(DataView.prototype.setInt8, "name"); -verifyNotWritable(DataView.prototype.setInt8, "name"); -verifyConfigurable(DataView.prototype.setInt8, "name"); +verifyProperty(DataView.prototype.setInt8, "name", { + value: "setInt8", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setUint16/length.js b/test/built-ins/DataView/prototype/setUint16/length.js index 083c178468..6539f10901 100644 --- a/test/built-ins/DataView/prototype/setUint16/length.js +++ b/test/built-ins/DataView/prototype/setUint16/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setUint16.length, 2); - -verifyNotEnumerable(DataView.prototype.setUint16, "length"); -verifyNotWritable(DataView.prototype.setUint16, "length"); -verifyConfigurable(DataView.prototype.setUint16, "length"); +verifyProperty(DataView.prototype.setUint16, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setUint16/name.js b/test/built-ins/DataView/prototype/setUint16/name.js index 8b2710092e..d24cc704a4 100644 --- a/test/built-ins/DataView/prototype/setUint16/name.js +++ b/test/built-ins/DataView/prototype/setUint16/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setUint16.name, "setUint16"); - -verifyNotEnumerable(DataView.prototype.setUint16, "name"); -verifyNotWritable(DataView.prototype.setUint16, "name"); -verifyConfigurable(DataView.prototype.setUint16, "name"); +verifyProperty(DataView.prototype.setUint16, "name", { + value: "setUint16", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setUint32/length.js b/test/built-ins/DataView/prototype/setUint32/length.js index 1f4c6186c4..1878258cb4 100644 --- a/test/built-ins/DataView/prototype/setUint32/length.js +++ b/test/built-ins/DataView/prototype/setUint32/length.js @@ -23,8 +23,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setUint32.length, 2); - -verifyNotEnumerable(DataView.prototype.setUint32, "length"); -verifyNotWritable(DataView.prototype.setUint32, "length"); -verifyConfigurable(DataView.prototype.setUint32, "length"); +verifyProperty(DataView.prototype.setUint32, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setUint32/name.js b/test/built-ins/DataView/prototype/setUint32/name.js index ec64e64b2a..12d31497d5 100644 --- a/test/built-ins/DataView/prototype/setUint32/name.js +++ b/test/built-ins/DataView/prototype/setUint32/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setUint32.name, "setUint32"); - -verifyNotEnumerable(DataView.prototype.setUint32, "name"); -verifyNotWritable(DataView.prototype.setUint32, "name"); -verifyConfigurable(DataView.prototype.setUint32, "name"); +verifyProperty(DataView.prototype.setUint32, "name", { + value: "setUint32", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setUint8/length.js b/test/built-ins/DataView/prototype/setUint8/length.js index 58bbf425cb..f0b60cc374 100644 --- a/test/built-ins/DataView/prototype/setUint8/length.js +++ b/test/built-ins/DataView/prototype/setUint8/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setUint8.length, 2); - -verifyNotEnumerable(DataView.prototype.setUint8, "length"); -verifyNotWritable(DataView.prototype.setUint8, "length"); -verifyConfigurable(DataView.prototype.setUint8, "length"); +verifyProperty(DataView.prototype.setUint8, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setUint8/name.js b/test/built-ins/DataView/prototype/setUint8/name.js index 7576f4f5ba..91fc8b20ec 100644 --- a/test/built-ins/DataView/prototype/setUint8/name.js +++ b/test/built-ins/DataView/prototype/setUint8/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setUint8.name, "setUint8"); - -verifyNotEnumerable(DataView.prototype.setUint8, "name"); -verifyNotWritable(DataView.prototype.setUint8, "name"); -verifyConfigurable(DataView.prototype.setUint8, "name"); +verifyProperty(DataView.prototype.setUint8, "name", { + value: "setUint8", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/UTC/name.js b/test/built-ins/Date/UTC/name.js index 52fcbc2d6e..3c7dfe9dfb 100644 --- a/test/built-ins/Date/UTC/name.js +++ b/test/built-ins/Date/UTC/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.UTC.name, "UTC"); - -verifyNotEnumerable(Date.UTC, "name"); -verifyNotWritable(Date.UTC, "name"); -verifyConfigurable(Date.UTC, "name"); +verifyProperty(Date.UTC, "name", { + value: "UTC", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/name.js b/test/built-ins/Date/name.js index 751d054259..077f9cff72 100644 --- a/test/built-ins/Date/name.js +++ b/test/built-ins/Date/name.js @@ -16,8 +16,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.name, "Date"); - -verifyNotEnumerable(Date, "name"); -verifyNotWritable(Date, "name"); -verifyConfigurable(Date, "name"); +verifyProperty(Date, "name", { + value: "Date", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/now/name.js b/test/built-ins/Date/now/name.js index 6250e89a7b..dac7078466 100644 --- a/test/built-ins/Date/now/name.js +++ b/test/built-ins/Date/now/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.now.name, "now"); - -verifyNotEnumerable(Date.now, "name"); -verifyNotWritable(Date.now, "name"); -verifyConfigurable(Date.now, "name"); +verifyProperty(Date.now, "name", { + value: "now", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/parse/name.js b/test/built-ins/Date/parse/name.js index a99a75d203..83e5f996c7 100644 --- a/test/built-ins/Date/parse/name.js +++ b/test/built-ins/Date/parse/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.parse.name, "parse"); - -verifyNotEnumerable(Date.parse, "name"); -verifyNotWritable(Date.parse, "name"); -verifyConfigurable(Date.parse, "name"); +verifyProperty(Date.parse, "name", { + value: "parse", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/Symbol.toPrimitive/length.js b/test/built-ins/Date/prototype/Symbol.toPrimitive/length.js index 3e8c04f918..c48e89b5df 100644 --- a/test/built-ins/Date/prototype/Symbol.toPrimitive/length.js +++ b/test/built-ins/Date/prototype/Symbol.toPrimitive/length.js @@ -20,8 +20,9 @@ features: [Symbol.toPrimitive] includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype[Symbol.toPrimitive].length, 1); - -verifyNotEnumerable(Date.prototype[Symbol.toPrimitive], 'length'); -verifyNotWritable(Date.prototype[Symbol.toPrimitive], 'length'); -verifyConfigurable(Date.prototype[Symbol.toPrimitive], 'length'); +verifyProperty(Date.prototype[Symbol.toPrimitive], "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/Symbol.toPrimitive/name.js b/test/built-ins/Date/prototype/Symbol.toPrimitive/name.js index e34567470f..51f7989ca0 100644 --- a/test/built-ins/Date/prototype/Symbol.toPrimitive/name.js +++ b/test/built-ins/Date/prototype/Symbol.toPrimitive/name.js @@ -17,10 +17,9 @@ features: [Symbol.toPrimitive] includes: [propertyHelper.js] ---*/ -assert.sameValue( - Date.prototype[Symbol.toPrimitive].name, '[Symbol.toPrimitive]' -); - -verifyNotEnumerable(Date.prototype[Symbol.toPrimitive], 'name'); -verifyNotWritable(Date.prototype[Symbol.toPrimitive], 'name'); -verifyConfigurable(Date.prototype[Symbol.toPrimitive], 'name'); +verifyProperty(Date.prototype[Symbol.toPrimitive], "name", { + value: "[Symbol.toPrimitive]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getDate/name.js b/test/built-ins/Date/prototype/getDate/name.js index c2e6cc963c..60d077621b 100644 --- a/test/built-ins/Date/prototype/getDate/name.js +++ b/test/built-ins/Date/prototype/getDate/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getDate.name, "getDate"); - -verifyNotEnumerable(Date.prototype.getDate, "name"); -verifyNotWritable(Date.prototype.getDate, "name"); -verifyConfigurable(Date.prototype.getDate, "name"); +verifyProperty(Date.prototype.getDate, "name", { + value: "getDate", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getDay/name.js b/test/built-ins/Date/prototype/getDay/name.js index 6dbaa33c5d..a309bc9762 100644 --- a/test/built-ins/Date/prototype/getDay/name.js +++ b/test/built-ins/Date/prototype/getDay/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getDay.name, "getDay"); - -verifyNotEnumerable(Date.prototype.getDay, "name"); -verifyNotWritable(Date.prototype.getDay, "name"); -verifyConfigurable(Date.prototype.getDay, "name"); +verifyProperty(Date.prototype.getDay, "name", { + value: "getDay", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getFullYear/name.js b/test/built-ins/Date/prototype/getFullYear/name.js index 25c0818305..b7626b074f 100644 --- a/test/built-ins/Date/prototype/getFullYear/name.js +++ b/test/built-ins/Date/prototype/getFullYear/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getFullYear.name, "getFullYear"); - -verifyNotEnumerable(Date.prototype.getFullYear, "name"); -verifyNotWritable(Date.prototype.getFullYear, "name"); -verifyConfigurable(Date.prototype.getFullYear, "name"); +verifyProperty(Date.prototype.getFullYear, "name", { + value: "getFullYear", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getHours/name.js b/test/built-ins/Date/prototype/getHours/name.js index a874d0d875..44ec54680e 100644 --- a/test/built-ins/Date/prototype/getHours/name.js +++ b/test/built-ins/Date/prototype/getHours/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getHours.name, "getHours"); - -verifyNotEnumerable(Date.prototype.getHours, "name"); -verifyNotWritable(Date.prototype.getHours, "name"); -verifyConfigurable(Date.prototype.getHours, "name"); +verifyProperty(Date.prototype.getHours, "name", { + value: "getHours", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getMilliseconds/name.js b/test/built-ins/Date/prototype/getMilliseconds/name.js index 9e79072fed..2c27e3554c 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/name.js +++ b/test/built-ins/Date/prototype/getMilliseconds/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getMilliseconds.name, "getMilliseconds"); - -verifyNotEnumerable(Date.prototype.getMilliseconds, "name"); -verifyNotWritable(Date.prototype.getMilliseconds, "name"); -verifyConfigurable(Date.prototype.getMilliseconds, "name"); +verifyProperty(Date.prototype.getMilliseconds, "name", { + value: "getMilliseconds", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getMinutes/name.js b/test/built-ins/Date/prototype/getMinutes/name.js index 6896f9fbf7..42b98c82d0 100644 --- a/test/built-ins/Date/prototype/getMinutes/name.js +++ b/test/built-ins/Date/prototype/getMinutes/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getMinutes.name, "getMinutes"); - -verifyNotEnumerable(Date.prototype.getMinutes, "name"); -verifyNotWritable(Date.prototype.getMinutes, "name"); -verifyConfigurable(Date.prototype.getMinutes, "name"); +verifyProperty(Date.prototype.getMinutes, "name", { + value: "getMinutes", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getMonth/name.js b/test/built-ins/Date/prototype/getMonth/name.js index 27f2e5083c..6ab51831c8 100644 --- a/test/built-ins/Date/prototype/getMonth/name.js +++ b/test/built-ins/Date/prototype/getMonth/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getMonth.name, "getMonth"); - -verifyNotEnumerable(Date.prototype.getMonth, "name"); -verifyNotWritable(Date.prototype.getMonth, "name"); -verifyConfigurable(Date.prototype.getMonth, "name"); +verifyProperty(Date.prototype.getMonth, "name", { + value: "getMonth", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getSeconds/name.js b/test/built-ins/Date/prototype/getSeconds/name.js index a188372184..d455db3b04 100644 --- a/test/built-ins/Date/prototype/getSeconds/name.js +++ b/test/built-ins/Date/prototype/getSeconds/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getSeconds.name, "getSeconds"); - -verifyNotEnumerable(Date.prototype.getSeconds, "name"); -verifyNotWritable(Date.prototype.getSeconds, "name"); -verifyConfigurable(Date.prototype.getSeconds, "name"); +verifyProperty(Date.prototype.getSeconds, "name", { + value: "getSeconds", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getTime/name.js b/test/built-ins/Date/prototype/getTime/name.js index 989901d103..90716e30e0 100644 --- a/test/built-ins/Date/prototype/getTime/name.js +++ b/test/built-ins/Date/prototype/getTime/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getTime.name, "getTime"); - -verifyNotEnumerable(Date.prototype.getTime, "name"); -verifyNotWritable(Date.prototype.getTime, "name"); -verifyConfigurable(Date.prototype.getTime, "name"); +verifyProperty(Date.prototype.getTime, "name", { + value: "getTime", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/name.js b/test/built-ins/Date/prototype/getTimezoneOffset/name.js index 99e7843be8..11f2df3899 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/name.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getTimezoneOffset.name, "getTimezoneOffset"); - -verifyNotEnumerable(Date.prototype.getTimezoneOffset, "name"); -verifyNotWritable(Date.prototype.getTimezoneOffset, "name"); -verifyConfigurable(Date.prototype.getTimezoneOffset, "name"); +verifyProperty(Date.prototype.getTimezoneOffset, "name", { + value: "getTimezoneOffset", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getUTCDate/name.js b/test/built-ins/Date/prototype/getUTCDate/name.js index 804bda510e..d850e4e515 100644 --- a/test/built-ins/Date/prototype/getUTCDate/name.js +++ b/test/built-ins/Date/prototype/getUTCDate/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCDate.name, "getUTCDate"); - -verifyNotEnumerable(Date.prototype.getUTCDate, "name"); -verifyNotWritable(Date.prototype.getUTCDate, "name"); -verifyConfigurable(Date.prototype.getUTCDate, "name"); +verifyProperty(Date.prototype.getUTCDate, "name", { + value: "getUTCDate", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getUTCDay/name.js b/test/built-ins/Date/prototype/getUTCDay/name.js index e2eb61d5b2..59ca2f24e1 100644 --- a/test/built-ins/Date/prototype/getUTCDay/name.js +++ b/test/built-ins/Date/prototype/getUTCDay/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCDay.name, "getUTCDay"); - -verifyNotEnumerable(Date.prototype.getUTCDay, "name"); -verifyNotWritable(Date.prototype.getUTCDay, "name"); -verifyConfigurable(Date.prototype.getUTCDay, "name"); +verifyProperty(Date.prototype.getUTCDay, "name", { + value: "getUTCDay", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getUTCFullYear/name.js b/test/built-ins/Date/prototype/getUTCFullYear/name.js index 5e82db33e0..5a9b67db5e 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/name.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCFullYear.name, "getUTCFullYear"); - -verifyNotEnumerable(Date.prototype.getUTCFullYear, "name"); -verifyNotWritable(Date.prototype.getUTCFullYear, "name"); -verifyConfigurable(Date.prototype.getUTCFullYear, "name"); +verifyProperty(Date.prototype.getUTCFullYear, "name", { + value: "getUTCFullYear", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getUTCHours/name.js b/test/built-ins/Date/prototype/getUTCHours/name.js index 0edd4136d1..018b2d672c 100644 --- a/test/built-ins/Date/prototype/getUTCHours/name.js +++ b/test/built-ins/Date/prototype/getUTCHours/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCHours.name, "getUTCHours"); - -verifyNotEnumerable(Date.prototype.getUTCHours, "name"); -verifyNotWritable(Date.prototype.getUTCHours, "name"); -verifyConfigurable(Date.prototype.getUTCHours, "name"); +verifyProperty(Date.prototype.getUTCHours, "name", { + value: "getUTCHours", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/name.js b/test/built-ins/Date/prototype/getUTCMilliseconds/name.js index 0b0628feb5..3edf4d2d55 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/name.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCMilliseconds.name, "getUTCMilliseconds"); - -verifyNotEnumerable(Date.prototype.getUTCMilliseconds, "name"); -verifyNotWritable(Date.prototype.getUTCMilliseconds, "name"); -verifyConfigurable(Date.prototype.getUTCMilliseconds, "name"); +verifyProperty(Date.prototype.getUTCMilliseconds, "name", { + value: "getUTCMilliseconds", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getUTCMinutes/name.js b/test/built-ins/Date/prototype/getUTCMinutes/name.js index 96b1751b9b..3457472717 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/name.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCMinutes.name, "getUTCMinutes"); - -verifyNotEnumerable(Date.prototype.getUTCMinutes, "name"); -verifyNotWritable(Date.prototype.getUTCMinutes, "name"); -verifyConfigurable(Date.prototype.getUTCMinutes, "name"); +verifyProperty(Date.prototype.getUTCMinutes, "name", { + value: "getUTCMinutes", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getUTCMonth/name.js b/test/built-ins/Date/prototype/getUTCMonth/name.js index 557d38976f..926f48f0a1 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/name.js +++ b/test/built-ins/Date/prototype/getUTCMonth/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCMonth.name, "getUTCMonth"); - -verifyNotEnumerable(Date.prototype.getUTCMonth, "name"); -verifyNotWritable(Date.prototype.getUTCMonth, "name"); -verifyConfigurable(Date.prototype.getUTCMonth, "name"); +verifyProperty(Date.prototype.getUTCMonth, "name", { + value: "getUTCMonth", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/getUTCSeconds/name.js b/test/built-ins/Date/prototype/getUTCSeconds/name.js index aba5e98e62..6c900bcb37 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/name.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.getUTCSeconds.name, "getUTCSeconds"); - -verifyNotEnumerable(Date.prototype.getUTCSeconds, "name"); -verifyNotWritable(Date.prototype.getUTCSeconds, "name"); -verifyConfigurable(Date.prototype.getUTCSeconds, "name"); +verifyProperty(Date.prototype.getUTCSeconds, "name", { + value: "getUTCSeconds", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setDate/name.js b/test/built-ins/Date/prototype/setDate/name.js index 34fb2189d6..31be60bd73 100644 --- a/test/built-ins/Date/prototype/setDate/name.js +++ b/test/built-ins/Date/prototype/setDate/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setDate.name, "setDate"); - -verifyNotEnumerable(Date.prototype.setDate, "name"); -verifyNotWritable(Date.prototype.setDate, "name"); -verifyConfigurable(Date.prototype.setDate, "name"); +verifyProperty(Date.prototype.setDate, "name", { + value: "setDate", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setFullYear/name.js b/test/built-ins/Date/prototype/setFullYear/name.js index bf79449732..d1224e1553 100644 --- a/test/built-ins/Date/prototype/setFullYear/name.js +++ b/test/built-ins/Date/prototype/setFullYear/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setFullYear.name, "setFullYear"); - -verifyNotEnumerable(Date.prototype.setFullYear, "name"); -verifyNotWritable(Date.prototype.setFullYear, "name"); -verifyConfigurable(Date.prototype.setFullYear, "name"); +verifyProperty(Date.prototype.setFullYear, "name", { + value: "setFullYear", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setHours/name.js b/test/built-ins/Date/prototype/setHours/name.js index 56399ec611..7d80c85017 100644 --- a/test/built-ins/Date/prototype/setHours/name.js +++ b/test/built-ins/Date/prototype/setHours/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setHours.name, "setHours"); - -verifyNotEnumerable(Date.prototype.setHours, "name"); -verifyNotWritable(Date.prototype.setHours, "name"); -verifyConfigurable(Date.prototype.setHours, "name"); +verifyProperty(Date.prototype.setHours, "name", { + value: "setHours", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setMilliseconds/name.js b/test/built-ins/Date/prototype/setMilliseconds/name.js index a5f4df85ba..4580a5d456 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/name.js +++ b/test/built-ins/Date/prototype/setMilliseconds/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setMilliseconds.name, "setMilliseconds"); - -verifyNotEnumerable(Date.prototype.setMilliseconds, "name"); -verifyNotWritable(Date.prototype.setMilliseconds, "name"); -verifyConfigurable(Date.prototype.setMilliseconds, "name"); +verifyProperty(Date.prototype.setMilliseconds, "name", { + value: "setMilliseconds", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setMinutes/name.js b/test/built-ins/Date/prototype/setMinutes/name.js index f8032bfd1d..6ea5b28b96 100644 --- a/test/built-ins/Date/prototype/setMinutes/name.js +++ b/test/built-ins/Date/prototype/setMinutes/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setMinutes.name, "setMinutes"); - -verifyNotEnumerable(Date.prototype.setMinutes, "name"); -verifyNotWritable(Date.prototype.setMinutes, "name"); -verifyConfigurable(Date.prototype.setMinutes, "name"); +verifyProperty(Date.prototype.setMinutes, "name", { + value: "setMinutes", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setMonth/name.js b/test/built-ins/Date/prototype/setMonth/name.js index f2ea94ddd6..f50e3d5dde 100644 --- a/test/built-ins/Date/prototype/setMonth/name.js +++ b/test/built-ins/Date/prototype/setMonth/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setMonth.name, "setMonth"); - -verifyNotEnumerable(Date.prototype.setMonth, "name"); -verifyNotWritable(Date.prototype.setMonth, "name"); -verifyConfigurable(Date.prototype.setMonth, "name"); +verifyProperty(Date.prototype.setMonth, "name", { + value: "setMonth", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setSeconds/name.js b/test/built-ins/Date/prototype/setSeconds/name.js index 4b8555d2f4..ddf604549c 100644 --- a/test/built-ins/Date/prototype/setSeconds/name.js +++ b/test/built-ins/Date/prototype/setSeconds/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setSeconds.name, "setSeconds"); - -verifyNotEnumerable(Date.prototype.setSeconds, "name"); -verifyNotWritable(Date.prototype.setSeconds, "name"); -verifyConfigurable(Date.prototype.setSeconds, "name"); +verifyProperty(Date.prototype.setSeconds, "name", { + value: "setSeconds", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setTime/name.js b/test/built-ins/Date/prototype/setTime/name.js index a36bd86108..42b96f3184 100644 --- a/test/built-ins/Date/prototype/setTime/name.js +++ b/test/built-ins/Date/prototype/setTime/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setTime.name, "setTime"); - -verifyNotEnumerable(Date.prototype.setTime, "name"); -verifyNotWritable(Date.prototype.setTime, "name"); -verifyConfigurable(Date.prototype.setTime, "name"); +verifyProperty(Date.prototype.setTime, "name", { + value: "setTime", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setUTCDate/name.js b/test/built-ins/Date/prototype/setUTCDate/name.js index 66c97f9471..2066acd642 100644 --- a/test/built-ins/Date/prototype/setUTCDate/name.js +++ b/test/built-ins/Date/prototype/setUTCDate/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCDate.name, "setUTCDate"); - -verifyNotEnumerable(Date.prototype.setUTCDate, "name"); -verifyNotWritable(Date.prototype.setUTCDate, "name"); -verifyConfigurable(Date.prototype.setUTCDate, "name"); +verifyProperty(Date.prototype.setUTCDate, "name", { + value: "setUTCDate", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setUTCFullYear/name.js b/test/built-ins/Date/prototype/setUTCFullYear/name.js index a0410593f2..0bab04e948 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/name.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCFullYear.name, "setUTCFullYear"); - -verifyNotEnumerable(Date.prototype.setUTCFullYear, "name"); -verifyNotWritable(Date.prototype.setUTCFullYear, "name"); -verifyConfigurable(Date.prototype.setUTCFullYear, "name"); +verifyProperty(Date.prototype.setUTCFullYear, "name", { + value: "setUTCFullYear", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setUTCHours/name.js b/test/built-ins/Date/prototype/setUTCHours/name.js index 943e57a55c..346aa9299a 100644 --- a/test/built-ins/Date/prototype/setUTCHours/name.js +++ b/test/built-ins/Date/prototype/setUTCHours/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCHours.name, "setUTCHours"); - -verifyNotEnumerable(Date.prototype.setUTCHours, "name"); -verifyNotWritable(Date.prototype.setUTCHours, "name"); -verifyConfigurable(Date.prototype.setUTCHours, "name"); +verifyProperty(Date.prototype.setUTCHours, "name", { + value: "setUTCHours", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/name.js b/test/built-ins/Date/prototype/setUTCMilliseconds/name.js index abbe9fbdde..3c349b386e 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/name.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCMilliseconds.name, "setUTCMilliseconds"); - -verifyNotEnumerable(Date.prototype.setUTCMilliseconds, "name"); -verifyNotWritable(Date.prototype.setUTCMilliseconds, "name"); -verifyConfigurable(Date.prototype.setUTCMilliseconds, "name"); +verifyProperty(Date.prototype.setUTCMilliseconds, "name", { + value: "setUTCMilliseconds", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setUTCMinutes/name.js b/test/built-ins/Date/prototype/setUTCMinutes/name.js index 3985976210..0a454d177b 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/name.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCMinutes.name, "setUTCMinutes"); - -verifyNotEnumerable(Date.prototype.setUTCMinutes, "name"); -verifyNotWritable(Date.prototype.setUTCMinutes, "name"); -verifyConfigurable(Date.prototype.setUTCMinutes, "name"); +verifyProperty(Date.prototype.setUTCMinutes, "name", { + value: "setUTCMinutes", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setUTCMonth/name.js b/test/built-ins/Date/prototype/setUTCMonth/name.js index 7231b241d0..9c51109f0f 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/name.js +++ b/test/built-ins/Date/prototype/setUTCMonth/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCMonth.name, "setUTCMonth"); - -verifyNotEnumerable(Date.prototype.setUTCMonth, "name"); -verifyNotWritable(Date.prototype.setUTCMonth, "name"); -verifyConfigurable(Date.prototype.setUTCMonth, "name"); +verifyProperty(Date.prototype.setUTCMonth, "name", { + value: "setUTCMonth", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/setUTCSeconds/name.js b/test/built-ins/Date/prototype/setUTCSeconds/name.js index 7eeb7c5be6..caf3a73a62 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/name.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.setUTCSeconds.name, "setUTCSeconds"); - -verifyNotEnumerable(Date.prototype.setUTCSeconds, "name"); -verifyNotWritable(Date.prototype.setUTCSeconds, "name"); -verifyConfigurable(Date.prototype.setUTCSeconds, "name"); +verifyProperty(Date.prototype.setUTCSeconds, "name", { + value: "setUTCSeconds", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/toDateString/name.js b/test/built-ins/Date/prototype/toDateString/name.js index 5ecc7ef1be..84f9b858fa 100644 --- a/test/built-ins/Date/prototype/toDateString/name.js +++ b/test/built-ins/Date/prototype/toDateString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toDateString.name, "toDateString"); - -verifyNotEnumerable(Date.prototype.toDateString, "name"); -verifyNotWritable(Date.prototype.toDateString, "name"); -verifyConfigurable(Date.prototype.toDateString, "name"); +verifyProperty(Date.prototype.toDateString, "name", { + value: "toDateString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/toISOString/name.js b/test/built-ins/Date/prototype/toISOString/name.js index 5a8fd4a87d..7d2848187d 100644 --- a/test/built-ins/Date/prototype/toISOString/name.js +++ b/test/built-ins/Date/prototype/toISOString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toISOString.name, "toISOString"); - -verifyNotEnumerable(Date.prototype.toISOString, "name"); -verifyNotWritable(Date.prototype.toISOString, "name"); -verifyConfigurable(Date.prototype.toISOString, "name"); +verifyProperty(Date.prototype.toISOString, "name", { + value: "toISOString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/toLocaleDateString/name.js b/test/built-ins/Date/prototype/toLocaleDateString/name.js index c1281afc83..9dc0251520 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/name.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toLocaleDateString.name, "toLocaleDateString"); - -verifyNotEnumerable(Date.prototype.toLocaleDateString, "name"); -verifyNotWritable(Date.prototype.toLocaleDateString, "name"); -verifyConfigurable(Date.prototype.toLocaleDateString, "name"); +verifyProperty(Date.prototype.toLocaleDateString, "name", { + value: "toLocaleDateString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/toLocaleString/name.js b/test/built-ins/Date/prototype/toLocaleString/name.js index bb80091f59..f12238058f 100644 --- a/test/built-ins/Date/prototype/toLocaleString/name.js +++ b/test/built-ins/Date/prototype/toLocaleString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toLocaleString.name, "toLocaleString"); - -verifyNotEnumerable(Date.prototype.toLocaleString, "name"); -verifyNotWritable(Date.prototype.toLocaleString, "name"); -verifyConfigurable(Date.prototype.toLocaleString, "name"); +verifyProperty(Date.prototype.toLocaleString, "name", { + value: "toLocaleString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/name.js b/test/built-ins/Date/prototype/toLocaleTimeString/name.js index 58655987d0..e70fcda308 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/name.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toLocaleTimeString.name, "toLocaleTimeString"); - -verifyNotEnumerable(Date.prototype.toLocaleTimeString, "name"); -verifyNotWritable(Date.prototype.toLocaleTimeString, "name"); -verifyConfigurable(Date.prototype.toLocaleTimeString, "name"); +verifyProperty(Date.prototype.toLocaleTimeString, "name", { + value: "toLocaleTimeString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/toString/name.js b/test/built-ins/Date/prototype/toString/name.js index fd9838ef68..a79cdb5c80 100644 --- a/test/built-ins/Date/prototype/toString/name.js +++ b/test/built-ins/Date/prototype/toString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toString.name, "toString"); - -verifyNotEnumerable(Date.prototype.toString, "name"); -verifyNotWritable(Date.prototype.toString, "name"); -verifyConfigurable(Date.prototype.toString, "name"); +verifyProperty(Date.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/toTimeString/name.js b/test/built-ins/Date/prototype/toTimeString/name.js index 6c1101b683..d4f9b171e8 100644 --- a/test/built-ins/Date/prototype/toTimeString/name.js +++ b/test/built-ins/Date/prototype/toTimeString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toTimeString.name, "toTimeString"); - -verifyNotEnumerable(Date.prototype.toTimeString, "name"); -verifyNotWritable(Date.prototype.toTimeString, "name"); -verifyConfigurable(Date.prototype.toTimeString, "name"); +verifyProperty(Date.prototype.toTimeString, "name", { + value: "toTimeString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/toUTCString/name.js b/test/built-ins/Date/prototype/toUTCString/name.js index c61f625dd4..b766ec671a 100644 --- a/test/built-ins/Date/prototype/toUTCString/name.js +++ b/test/built-ins/Date/prototype/toUTCString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.toUTCString.name, "toUTCString"); - -verifyNotEnumerable(Date.prototype.toUTCString, "name"); -verifyNotWritable(Date.prototype.toUTCString, "name"); -verifyConfigurable(Date.prototype.toUTCString, "name"); +verifyProperty(Date.prototype.toUTCString, "name", { + value: "toUTCString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Date/prototype/valueOf/name.js b/test/built-ins/Date/prototype/valueOf/name.js index bc0c7f8b52..c8e785553d 100644 --- a/test/built-ins/Date/prototype/valueOf/name.js +++ b/test/built-ins/Date/prototype/valueOf/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Date.prototype.valueOf.name, "valueOf"); - -verifyNotEnumerable(Date.prototype.valueOf, "name"); -verifyNotWritable(Date.prototype.valueOf, "name"); -verifyConfigurable(Date.prototype.valueOf, "name"); +verifyProperty(Date.prototype.valueOf, "name", { + value: "valueOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Error/prototype/toString/length.js b/test/built-ins/Error/prototype/toString/length.js index c7279a4e52..81a5cab0d7 100644 --- a/test/built-ins/Error/prototype/toString/length.js +++ b/test/built-ins/Error/prototype/toString/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Error.prototype.toString.length, 0); - -verifyNotEnumerable(Error.prototype.toString, "length"); -verifyNotWritable(Error.prototype.toString, "length"); -verifyConfigurable(Error.prototype.toString, "length"); +verifyProperty(Error.prototype.toString, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Error/prototype/toString/name.js b/test/built-ins/Error/prototype/toString/name.js index ff39ffe924..618bad1b26 100644 --- a/test/built-ins/Error/prototype/toString/name.js +++ b/test/built-ins/Error/prototype/toString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Error.prototype.toString.name, "toString"); - -verifyNotEnumerable(Error.prototype.toString, "name"); -verifyNotWritable(Error.prototype.toString, "name"); -verifyConfigurable(Error.prototype.toString, "name"); +verifyProperty(Error.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Function/prototype/Symbol.hasInstance/length.js b/test/built-ins/Function/prototype/Symbol.hasInstance/length.js index a45648e8b9..3b9130bad2 100644 --- a/test/built-ins/Function/prototype/Symbol.hasInstance/length.js +++ b/test/built-ins/Function/prototype/Symbol.hasInstance/length.js @@ -19,8 +19,9 @@ features: [Symbol.hasInstance] includes: [propertyHelper.js] ---*/ -assert.sameValue(Function.prototype[Symbol.hasInstance].length, 1); - -verifyNotEnumerable(Function.prototype[Symbol.hasInstance], 'length'); -verifyNotWritable(Function.prototype[Symbol.hasInstance], 'length'); -verifyConfigurable(Function.prototype[Symbol.hasInstance], 'length'); +verifyProperty(Function.prototype[Symbol.hasInstance], "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Function/prototype/Symbol.hasInstance/name.js b/test/built-ins/Function/prototype/Symbol.hasInstance/name.js index 3a809af577..7ebf59d329 100644 --- a/test/built-ins/Function/prototype/Symbol.hasInstance/name.js +++ b/test/built-ins/Function/prototype/Symbol.hasInstance/name.js @@ -10,10 +10,9 @@ features: [Symbol.hasInstance] includes: [propertyHelper.js] ---*/ -assert.sameValue( - Function.prototype[Symbol.hasInstance].name, '[Symbol.hasInstance]' -); - -verifyNotEnumerable(Function.prototype[Symbol.hasInstance], 'name'); -verifyNotWritable(Function.prototype[Symbol.hasInstance], 'name'); -verifyConfigurable(Function.prototype[Symbol.hasInstance], 'name'); +verifyProperty(Function.prototype[Symbol.hasInstance], "name", { + value: "[Symbol.hasInstance]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Function/prototype/apply/name.js b/test/built-ins/Function/prototype/apply/name.js index 3af31a104a..3ada0789e3 100644 --- a/test/built-ins/Function/prototype/apply/name.js +++ b/test/built-ins/Function/prototype/apply/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Function.prototype.apply.name, "apply"); - -verifyNotEnumerable(Function.prototype.apply, "name"); -verifyNotWritable(Function.prototype.apply, "name"); -verifyConfigurable(Function.prototype.apply, "name"); +verifyProperty(Function.prototype.apply, "name", { + value: "apply", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Function/prototype/bind/name.js b/test/built-ins/Function/prototype/bind/name.js index 2d9bcc74fe..8c49dbb2a5 100644 --- a/test/built-ins/Function/prototype/bind/name.js +++ b/test/built-ins/Function/prototype/bind/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Function.prototype.bind.name, "bind"); - -verifyNotEnumerable(Function.prototype.bind, "name"); -verifyNotWritable(Function.prototype.bind, "name"); -verifyConfigurable(Function.prototype.bind, "name"); +verifyProperty(Function.prototype.bind, "name", { + value: "bind", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Function/prototype/call/name.js b/test/built-ins/Function/prototype/call/name.js index 348c0b4e32..40c7ace39c 100644 --- a/test/built-ins/Function/prototype/call/name.js +++ b/test/built-ins/Function/prototype/call/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Function.prototype.call.name, "call"); - -verifyNotEnumerable(Function.prototype.call, "name"); -verifyNotWritable(Function.prototype.call, "name"); -verifyConfigurable(Function.prototype.call, "name"); +verifyProperty(Function.prototype.call, "name", { + value: "call", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Function/prototype/name.js b/test/built-ins/Function/prototype/name.js index 7f60f4b007..85176634d3 100644 --- a/test/built-ins/Function/prototype/name.js +++ b/test/built-ins/Function/prototype/name.js @@ -16,7 +16,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Function.prototype.name, ''); -verifyNotEnumerable(Function.prototype, 'name'); -verifyNotWritable(Function.prototype, 'name'); -verifyConfigurable(Function.prototype, 'name'); +verifyProperty(Function.prototype, "name", { + value: "", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Function/prototype/toString/name.js b/test/built-ins/Function/prototype/toString/name.js index 939b8ae265..c1fef0bd40 100644 --- a/test/built-ins/Function/prototype/toString/name.js +++ b/test/built-ins/Function/prototype/toString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Function.prototype.toString.name, "toString"); - -verifyNotEnumerable(Function.prototype.toString, "name"); -verifyNotWritable(Function.prototype.toString, "name"); -verifyConfigurable(Function.prototype.toString, "name"); +verifyProperty(Function.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/GeneratorFunction/length.js b/test/built-ins/GeneratorFunction/length.js index bd1c48f15d..bda7446568 100644 --- a/test/built-ins/GeneratorFunction/length.js +++ b/test/built-ins/GeneratorFunction/length.js @@ -11,8 +11,9 @@ features: [generators] var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; -assert.sameValue(GeneratorFunction.length, 1); - -verifyNotEnumerable(GeneratorFunction, 'length'); -verifyNotWritable(GeneratorFunction, 'length'); -verifyConfigurable(GeneratorFunction, 'length'); +verifyProperty(GeneratorFunction, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/GeneratorFunction/name.js b/test/built-ins/GeneratorFunction/name.js index 52f19a66dd..19fd4f2e11 100644 --- a/test/built-ins/GeneratorFunction/name.js +++ b/test/built-ins/GeneratorFunction/name.js @@ -21,8 +21,9 @@ features: [generators] var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; -assert.sameValue(GeneratorFunction.name, 'GeneratorFunction'); - -verifyNotEnumerable(GeneratorFunction, 'name'); -verifyNotWritable(GeneratorFunction, 'name'); -verifyConfigurable(GeneratorFunction, 'name'); +verifyProperty(GeneratorFunction, "name", { + value: "GeneratorFunction", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/GeneratorPrototype/next/length.js b/test/built-ins/GeneratorPrototype/next/length.js index 94630b564d..c096c5fe61 100644 --- a/test/built-ins/GeneratorPrototype/next/length.js +++ b/test/built-ins/GeneratorPrototype/next/length.js @@ -26,8 +26,9 @@ features: [generators] function* g() {} var GeneratorPrototype = Object.getPrototypeOf(g).prototype; -assert.sameValue(GeneratorPrototype.next.length, 1); - -verifyNotEnumerable(GeneratorPrototype.next, "length"); -verifyNotWritable(GeneratorPrototype.next, "length"); -verifyConfigurable(GeneratorPrototype.next, "length"); +verifyProperty(GeneratorPrototype.next, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/GeneratorPrototype/next/name.js b/test/built-ins/GeneratorPrototype/next/name.js index 68ec5b1e40..239ca12398 100644 --- a/test/built-ins/GeneratorPrototype/next/name.js +++ b/test/built-ins/GeneratorPrototype/next/name.js @@ -23,8 +23,9 @@ features: [generators] function* g() {} var GeneratorPrototype = Object.getPrototypeOf(g).prototype; -assert.sameValue(GeneratorPrototype.next.name, "next"); - -verifyNotEnumerable(GeneratorPrototype.next, "name"); -verifyNotWritable(GeneratorPrototype.next, "name"); -verifyConfigurable(GeneratorPrototype.next, "name"); +verifyProperty(GeneratorPrototype.next, "name", { + value: "next", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/GeneratorPrototype/return/length.js b/test/built-ins/GeneratorPrototype/return/length.js index f1565ffe2f..0cd4f033d6 100644 --- a/test/built-ins/GeneratorPrototype/return/length.js +++ b/test/built-ins/GeneratorPrototype/return/length.js @@ -26,8 +26,9 @@ features: [generators] function* g() {} var GeneratorPrototype = Object.getPrototypeOf(g).prototype; -assert.sameValue(GeneratorPrototype.return.length, 1); - -verifyNotEnumerable(GeneratorPrototype.return, "length"); -verifyNotWritable(GeneratorPrototype.return, "length"); -verifyConfigurable(GeneratorPrototype.return, "length"); +verifyProperty(GeneratorPrototype.return, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/GeneratorPrototype/return/name.js b/test/built-ins/GeneratorPrototype/return/name.js index 09464c64c4..3c958bf514 100644 --- a/test/built-ins/GeneratorPrototype/return/name.js +++ b/test/built-ins/GeneratorPrototype/return/name.js @@ -23,8 +23,9 @@ features: [generators] function* g() {} var GeneratorPrototype = Object.getPrototypeOf(g).prototype; -assert.sameValue(GeneratorPrototype.return.name, "return"); - -verifyNotEnumerable(GeneratorPrototype.return, "name"); -verifyNotWritable(GeneratorPrototype.return, "name"); -verifyConfigurable(GeneratorPrototype.return, "name"); +verifyProperty(GeneratorPrototype.return, "name", { + value: "return", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/GeneratorPrototype/throw/length.js b/test/built-ins/GeneratorPrototype/throw/length.js index 74dfa51e81..d57375a4be 100644 --- a/test/built-ins/GeneratorPrototype/throw/length.js +++ b/test/built-ins/GeneratorPrototype/throw/length.js @@ -26,8 +26,9 @@ features: [generators] function* g() {} var GeneratorPrototype = Object.getPrototypeOf(g).prototype; -assert.sameValue(GeneratorPrototype.throw.length, 1); - -verifyNotEnumerable(GeneratorPrototype.throw, "length"); -verifyNotWritable(GeneratorPrototype.throw, "length"); -verifyConfigurable(GeneratorPrototype.throw, "length"); +verifyProperty(GeneratorPrototype.throw, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/GeneratorPrototype/throw/name.js b/test/built-ins/GeneratorPrototype/throw/name.js index c2ed446471..2f7b630f95 100644 --- a/test/built-ins/GeneratorPrototype/throw/name.js +++ b/test/built-ins/GeneratorPrototype/throw/name.js @@ -23,8 +23,9 @@ features: [generators] function* g() {} var GeneratorPrototype = Object.getPrototypeOf(g).prototype; -assert.sameValue(GeneratorPrototype.throw.name, "throw"); - -verifyNotEnumerable(GeneratorPrototype.throw, "name"); -verifyNotWritable(GeneratorPrototype.throw, "name"); -verifyConfigurable(GeneratorPrototype.throw, "name"); +verifyProperty(GeneratorPrototype.throw, "name", { + value: "throw", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/Symbol.species/length.js b/test/built-ins/Map/Symbol.species/length.js index 9838ef984b..3913fa7e3d 100644 --- a/test/built-ins/Map/Symbol.species/length.js +++ b/test/built-ins/Map/Symbol.species/length.js @@ -25,8 +25,9 @@ features: [Symbol.species] var desc = Object.getOwnPropertyDescriptor(Map, Symbol.species); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/length.js b/test/built-ins/Map/length.js index 351b02e79b..334a0f7681 100644 --- a/test/built-ins/Map/length.js +++ b/test/built-ins/Map/length.js @@ -10,8 +10,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Map.length, 0, 'The value of Map.length is 0'); - -verifyNotEnumerable(Map, 'length'); -verifyNotWritable(Map, 'length'); -verifyConfigurable(Map, 'length'); +verifyProperty(Map, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/name.js b/test/built-ins/Map/name.js index d966ca8fd1..c41c5554b6 100644 --- a/test/built-ins/Map/name.js +++ b/test/built-ins/Map/name.js @@ -11,8 +11,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Map.name, 'Map', 'The value of Map.name is "Map"'); - -verifyNotEnumerable(Map, 'name'); -verifyNotWritable(Map, 'name'); -verifyConfigurable(Map, 'name'); +verifyProperty(Map, "name", { + value: "Map", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/clear/length.js b/test/built-ins/Map/prototype/clear/length.js index c23d92afcb..0e585740b7 100644 --- a/test/built-ins/Map/prototype/clear/length.js +++ b/test/built-ins/Map/prototype/clear/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.clear.length, 0, - 'The value of `Map.prototype.clear.length` is `0`' -); - -verifyNotEnumerable(Map.prototype.clear, 'length'); -verifyNotWritable(Map.prototype.clear, 'length'); -verifyConfigurable(Map.prototype.clear, 'length'); +verifyProperty(Map.prototype.clear, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/clear/name.js b/test/built-ins/Map/prototype/clear/name.js index 2c85af18f0..cfe81b7c37 100644 --- a/test/built-ins/Map/prototype/clear/name.js +++ b/test/built-ins/Map/prototype/clear/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.clear.name, 'clear', - 'The value of `Map.prototype.clear.name` is `"clear"`' -); - -verifyNotEnumerable(Map.prototype.clear, 'name'); -verifyNotWritable(Map.prototype.clear, 'name'); -verifyConfigurable(Map.prototype.clear, 'name'); +verifyProperty(Map.prototype.clear, "name", { + value: "clear", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/delete/length.js b/test/built-ins/Map/prototype/delete/length.js index d30bb9e272..9ffd2fa83d 100644 --- a/test/built-ins/Map/prototype/delete/length.js +++ b/test/built-ins/Map/prototype/delete/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.delete.length, 1, - 'The value of `Map.prototype.delete.length` is `1`' -); - -verifyNotEnumerable(Map.prototype.delete, 'length'); -verifyNotWritable(Map.prototype.delete, 'length'); -verifyConfigurable(Map.prototype.delete, 'length'); +verifyProperty(Map.prototype.delete, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/delete/name.js b/test/built-ins/Map/prototype/delete/name.js index 0a756693f8..5874b20b0c 100644 --- a/test/built-ins/Map/prototype/delete/name.js +++ b/test/built-ins/Map/prototype/delete/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.delete.name, 'delete', - 'The value of `Map.prototype.delete.name` is `"delete"`' -); - -verifyNotEnumerable(Map.prototype.delete, 'name'); -verifyNotWritable(Map.prototype.delete, 'name'); -verifyConfigurable(Map.prototype.delete, 'name'); +verifyProperty(Map.prototype.delete, "name", { + value: "delete", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/entries/length.js b/test/built-ins/Map/prototype/entries/length.js index 5428e6cd8c..27ec8f1654 100644 --- a/test/built-ins/Map/prototype/entries/length.js +++ b/test/built-ins/Map/prototype/entries/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.entries.length, 0, - 'The value of `Map.prototype.entries.length` is `0`' -); - -verifyNotEnumerable(Map.prototype.entries, 'length'); -verifyNotWritable(Map.prototype.entries, 'length'); -verifyConfigurable(Map.prototype.entries, 'length'); +verifyProperty(Map.prototype.entries, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/entries/name.js b/test/built-ins/Map/prototype/entries/name.js index 30608b2ad1..1cf92fd8d2 100644 --- a/test/built-ins/Map/prototype/entries/name.js +++ b/test/built-ins/Map/prototype/entries/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.entries.name, 'entries', - 'The value of `Map.prototype.entries.name` is `"entries"`' -); - -verifyNotEnumerable(Map.prototype.entries, 'name'); -verifyNotWritable(Map.prototype.entries, 'name'); -verifyConfigurable(Map.prototype.entries, 'name'); +verifyProperty(Map.prototype.entries, "name", { + value: "entries", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/forEach/length.js b/test/built-ins/Map/prototype/forEach/length.js index 87378bc6bf..1e0dc5c634 100644 --- a/test/built-ins/Map/prototype/forEach/length.js +++ b/test/built-ins/Map/prototype/forEach/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.forEach.length, 1, - 'The value of `Map.prototype.forEach.length` is `1`' -); - -verifyNotEnumerable(Map.prototype.forEach, 'length'); -verifyNotWritable(Map.prototype.forEach, 'length'); -verifyConfigurable(Map.prototype.forEach, 'length'); +verifyProperty(Map.prototype.forEach, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/forEach/name.js b/test/built-ins/Map/prototype/forEach/name.js index 438dcffe55..585f311eb7 100644 --- a/test/built-ins/Map/prototype/forEach/name.js +++ b/test/built-ins/Map/prototype/forEach/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.forEach.name, 'forEach', - 'The value of `Map.prototype.forEach.name` is `"forEach"`' -); - -verifyNotEnumerable(Map.prototype.forEach, 'name'); -verifyNotWritable(Map.prototype.forEach, 'name'); -verifyConfigurable(Map.prototype.forEach, 'name'); +verifyProperty(Map.prototype.forEach, "name", { + value: "forEach", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/get/length.js b/test/built-ins/Map/prototype/get/length.js index d71eaddd23..2f51096ed4 100644 --- a/test/built-ins/Map/prototype/get/length.js +++ b/test/built-ins/Map/prototype/get/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.get.length, 1, - 'The value of `Map.prototype.get.length` is `1`' -); - -verifyNotEnumerable(Map.prototype.get, 'length'); -verifyNotWritable(Map.prototype.get, 'length'); -verifyConfigurable(Map.prototype.get, 'length'); +verifyProperty(Map.prototype.get, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/get/name.js b/test/built-ins/Map/prototype/get/name.js index f4354b606c..9afe88b108 100644 --- a/test/built-ins/Map/prototype/get/name.js +++ b/test/built-ins/Map/prototype/get/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.get.name, 'get', - 'The value of `Map.prototype.get.name` is `"get"`' -); - -verifyNotEnumerable(Map.prototype.get, 'name'); -verifyNotWritable(Map.prototype.get, 'name'); -verifyConfigurable(Map.prototype.get, 'name'); +verifyProperty(Map.prototype.get, "name", { + value: "get", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/has/length.js b/test/built-ins/Map/prototype/has/length.js index 3302c772ef..08b805d410 100644 --- a/test/built-ins/Map/prototype/has/length.js +++ b/test/built-ins/Map/prototype/has/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.has.length, 1, - 'The value of `Map.prototype.has.length` is `1`' -); - -verifyNotEnumerable(Map.prototype.has, 'length'); -verifyNotWritable(Map.prototype.has, 'length'); -verifyConfigurable(Map.prototype.has, 'length'); +verifyProperty(Map.prototype.has, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/has/name.js b/test/built-ins/Map/prototype/has/name.js index 1df76c209d..1aa35b3378 100644 --- a/test/built-ins/Map/prototype/has/name.js +++ b/test/built-ins/Map/prototype/has/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.has.name, 'has', - 'The value of `Map.prototype.has.name` is `"has"`' -); - -verifyNotEnumerable(Map.prototype.has, 'name'); -verifyNotWritable(Map.prototype.has, 'name'); -verifyConfigurable(Map.prototype.has, 'name'); +verifyProperty(Map.prototype.has, "name", { + value: "has", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/keys/length.js b/test/built-ins/Map/prototype/keys/length.js index 8dc6055bcf..3a052a9bb5 100644 --- a/test/built-ins/Map/prototype/keys/length.js +++ b/test/built-ins/Map/prototype/keys/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.keys.length, 0, - 'The value of `Map.prototype.keys.length` is `0`' -); - -verifyNotEnumerable(Map.prototype.keys, 'length'); -verifyNotWritable(Map.prototype.keys, 'length'); -verifyConfigurable(Map.prototype.keys, 'length'); +verifyProperty(Map.prototype.keys, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/keys/name.js b/test/built-ins/Map/prototype/keys/name.js index 34b1cb6a15..fa6e0773a9 100644 --- a/test/built-ins/Map/prototype/keys/name.js +++ b/test/built-ins/Map/prototype/keys/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.keys.name, 'keys', - 'The value of `Map.prototype.keys.name` is `"keys"`' -); - -verifyNotEnumerable(Map.prototype.keys, 'name'); -verifyNotWritable(Map.prototype.keys, 'name'); -verifyConfigurable(Map.prototype.keys, 'name'); +verifyProperty(Map.prototype.keys, "name", { + value: "keys", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/set/length.js b/test/built-ins/Map/prototype/set/length.js index b67f5747d0..bf01f918f8 100644 --- a/test/built-ins/Map/prototype/set/length.js +++ b/test/built-ins/Map/prototype/set/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.set.length, 2, - 'The value of `Map.prototype.set.length` is `2`' -); - -verifyNotEnumerable(Map.prototype.set, 'length'); -verifyNotWritable(Map.prototype.set, 'length'); -verifyConfigurable(Map.prototype.set, 'length'); +verifyProperty(Map.prototype.set, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/set/name.js b/test/built-ins/Map/prototype/set/name.js index 43cfd03bc4..04b05e86fa 100644 --- a/test/built-ins/Map/prototype/set/name.js +++ b/test/built-ins/Map/prototype/set/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.set.name, 'set', - 'The value of `Map.prototype.set.name` is `"set"`' -); - -verifyNotEnumerable(Map.prototype.set, 'name'); -verifyNotWritable(Map.prototype.set, 'name'); -verifyConfigurable(Map.prototype.set, 'name'); +verifyProperty(Map.prototype.set, "name", { + value: "set", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/size/length.js b/test/built-ins/Map/prototype/size/length.js index c92a3d6008..a59ca88417 100644 --- a/test/built-ins/Map/prototype/size/length.js +++ b/test/built-ins/Map/prototype/size/length.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size'); -assert.sameValue( - descriptor.get.length, 0, - 'The value of `Map.prototype.size.length` is `0`' -); - -verifyNotEnumerable(descriptor.get, 'length'); -verifyNotWritable(descriptor.get, 'length'); -verifyConfigurable(descriptor.get, 'length'); +verifyProperty(descriptor.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/size/name.js b/test/built-ins/Map/prototype/size/name.js index f59936a771..4a27a50567 100644 --- a/test/built-ins/Map/prototype/size/name.js +++ b/test/built-ins/Map/prototype/size/name.js @@ -17,11 +17,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size'); -assert.sameValue(descriptor.get.name, - 'get size', - 'The value of `descriptor.get.name` is `get size`' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get size", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/values/length.js b/test/built-ins/Map/prototype/values/length.js index dafa1e06dd..dfe32bd013 100644 --- a/test/built-ins/Map/prototype/values/length.js +++ b/test/built-ins/Map/prototype/values/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.values.length, 0, - 'The value of `Map.prototype.values.length` is `0`' -); - -verifyNotEnumerable(Map.prototype.values, 'length'); -verifyNotWritable(Map.prototype.values, 'length'); -verifyConfigurable(Map.prototype.values, 'length'); +verifyProperty(Map.prototype.values, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Map/prototype/values/name.js b/test/built-ins/Map/prototype/values/name.js index 03aca25e71..906229b82d 100644 --- a/test/built-ins/Map/prototype/values/name.js +++ b/test/built-ins/Map/prototype/values/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - Map.prototype.values.name, 'values', - 'The value of `Map.prototype.values.name` is `"values"`' -); - -verifyNotEnumerable(Map.prototype.values, 'name'); -verifyNotWritable(Map.prototype.values, 'name'); -verifyConfigurable(Map.prototype.values, 'name'); +verifyProperty(Map.prototype.values, "name", { + value: "values", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/MapIteratorPrototype/next/length.js b/test/built-ins/MapIteratorPrototype/next/length.js index 25b61c1463..704e0bcf9a 100644 --- a/test/built-ins/MapIteratorPrototype/next/length.js +++ b/test/built-ins/MapIteratorPrototype/next/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var MapIteratorProto = Object.getPrototypeOf(new Map().values()); -assert.sameValue(MapIteratorProto.next.length, 0); - -verifyNotEnumerable(MapIteratorProto.next, "length"); -verifyNotWritable(MapIteratorProto.next, "length"); -verifyConfigurable(MapIteratorProto.next, "length"); +verifyProperty(MapIteratorProto.next, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/MapIteratorPrototype/next/name.js b/test/built-ins/MapIteratorPrototype/next/name.js index ea491f8c64..d55baf5ae7 100644 --- a/test/built-ins/MapIteratorPrototype/next/name.js +++ b/test/built-ins/MapIteratorPrototype/next/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] var MapIteratorProto = Object.getPrototypeOf(new Map().values()); -assert.sameValue(MapIteratorProto.next.name, "next"); - -verifyNotEnumerable(MapIteratorProto.next, "name"); -verifyNotWritable(MapIteratorProto.next, "name"); -verifyConfigurable(MapIteratorProto.next, "name"); +verifyProperty(MapIteratorProto.next, "name", { + value: "next", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/abs/length.js b/test/built-ins/Math/abs/length.js index 6b0e1933cd..1521a7acc9 100644 --- a/test/built-ins/Math/abs/length.js +++ b/test/built-ins/Math/abs/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.abs.length, 1); - -verifyNotEnumerable(Math.abs, "length"); -verifyNotWritable(Math.abs, "length"); -verifyConfigurable(Math.abs, "length"); +verifyProperty(Math.abs, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/abs/name.js b/test/built-ins/Math/abs/name.js index e62c68d4c5..d6ee637a9a 100644 --- a/test/built-ins/Math/abs/name.js +++ b/test/built-ins/Math/abs/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.abs.name, "abs"); - -verifyNotEnumerable(Math.abs, "name"); -verifyNotWritable(Math.abs, "name"); -verifyConfigurable(Math.abs, "name"); +verifyProperty(Math.abs, "name", { + value: "abs", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/acos/length.js b/test/built-ins/Math/acos/length.js index 69df3dc211..472e10bb77 100644 --- a/test/built-ins/Math/acos/length.js +++ b/test/built-ins/Math/acos/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.acos.length, 1); - -verifyNotEnumerable(Math.acos, "length"); -verifyNotWritable(Math.acos, "length"); -verifyConfigurable(Math.acos, "length"); +verifyProperty(Math.acos, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/acos/name.js b/test/built-ins/Math/acos/name.js index 778c7c8f72..7532df9b44 100644 --- a/test/built-ins/Math/acos/name.js +++ b/test/built-ins/Math/acos/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.acos.name, "acos"); - -verifyNotEnumerable(Math.acos, "name"); -verifyNotWritable(Math.acos, "name"); -verifyConfigurable(Math.acos, "name"); +verifyProperty(Math.acos, "name", { + value: "acos", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/acosh/length.js b/test/built-ins/Math/acosh/length.js index 4e489483c6..49d5fe7ff8 100644 --- a/test/built-ins/Math/acosh/length.js +++ b/test/built-ins/Math/acosh/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.acosh.length, 1); - -verifyNotEnumerable(Math.acosh, "length"); -verifyNotWritable(Math.acosh, "length"); -verifyConfigurable(Math.acosh, "length"); +verifyProperty(Math.acosh, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/acosh/name.js b/test/built-ins/Math/acosh/name.js index bcfe22bd63..3f76b0e097 100644 --- a/test/built-ins/Math/acosh/name.js +++ b/test/built-ins/Math/acosh/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.acosh.name, "acosh"); - -verifyNotEnumerable(Math.acosh, "name"); -verifyNotWritable(Math.acosh, "name"); -verifyConfigurable(Math.acosh, "name"); +verifyProperty(Math.acosh, "name", { + value: "acosh", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/asin/length.js b/test/built-ins/Math/asin/length.js index c54f814395..7264a7153c 100644 --- a/test/built-ins/Math/asin/length.js +++ b/test/built-ins/Math/asin/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.asin.length, 1); - -verifyNotEnumerable(Math.asin, "length"); -verifyNotWritable(Math.asin, "length"); -verifyConfigurable(Math.asin, "length"); +verifyProperty(Math.asin, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/asin/name.js b/test/built-ins/Math/asin/name.js index d8763feb71..af2cf56782 100644 --- a/test/built-ins/Math/asin/name.js +++ b/test/built-ins/Math/asin/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.asin.name, "asin"); - -verifyNotEnumerable(Math.asin, "name"); -verifyNotWritable(Math.asin, "name"); -verifyConfigurable(Math.asin, "name"); +verifyProperty(Math.asin, "name", { + value: "asin", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/asinh/length.js b/test/built-ins/Math/asinh/length.js index 3310cfdacf..776eba23af 100644 --- a/test/built-ins/Math/asinh/length.js +++ b/test/built-ins/Math/asinh/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.asinh.length, 1); - -verifyNotEnumerable(Math.asinh, "length"); -verifyNotWritable(Math.asinh, "length"); -verifyConfigurable(Math.asinh, "length"); +verifyProperty(Math.asinh, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/asinh/name.js b/test/built-ins/Math/asinh/name.js index a3d41a9484..01a7a95f07 100644 --- a/test/built-ins/Math/asinh/name.js +++ b/test/built-ins/Math/asinh/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.asinh.name, "asinh"); - -verifyNotEnumerable(Math.asinh, "name"); -verifyNotWritable(Math.asinh, "name"); -verifyConfigurable(Math.asinh, "name"); +verifyProperty(Math.asinh, "name", { + value: "asinh", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/atan/length.js b/test/built-ins/Math/atan/length.js index aee3c48125..5d204fea38 100644 --- a/test/built-ins/Math/atan/length.js +++ b/test/built-ins/Math/atan/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.atan.length, 1); - -verifyNotEnumerable(Math.atan, "length"); -verifyNotWritable(Math.atan, "length"); -verifyConfigurable(Math.atan, "length"); +verifyProperty(Math.atan, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/atan/name.js b/test/built-ins/Math/atan/name.js index c6a5c6b76c..f2d97cbe02 100644 --- a/test/built-ins/Math/atan/name.js +++ b/test/built-ins/Math/atan/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.atan.name, "atan"); - -verifyNotEnumerable(Math.atan, "name"); -verifyNotWritable(Math.atan, "name"); -verifyConfigurable(Math.atan, "name"); +verifyProperty(Math.atan, "name", { + value: "atan", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/atan2/length.js b/test/built-ins/Math/atan2/length.js index f8ff6ad2fe..2b11fd79da 100644 --- a/test/built-ins/Math/atan2/length.js +++ b/test/built-ins/Math/atan2/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.atan2.length, 2); - -verifyNotEnumerable(Math.atan2, "length"); -verifyNotWritable(Math.atan2, "length"); -verifyConfigurable(Math.atan2, "length"); +verifyProperty(Math.atan2, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/atan2/name.js b/test/built-ins/Math/atan2/name.js index 7333a9a9ba..e7f7b31afd 100644 --- a/test/built-ins/Math/atan2/name.js +++ b/test/built-ins/Math/atan2/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.atan2.name, "atan2"); - -verifyNotEnumerable(Math.atan2, "name"); -verifyNotWritable(Math.atan2, "name"); -verifyConfigurable(Math.atan2, "name"); +verifyProperty(Math.atan2, "name", { + value: "atan2", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/atanh/length.js b/test/built-ins/Math/atanh/length.js index b9c4257c11..f9ae520f4d 100644 --- a/test/built-ins/Math/atanh/length.js +++ b/test/built-ins/Math/atanh/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.atanh.length, 1); - -verifyNotEnumerable(Math.atanh, "length"); -verifyNotWritable(Math.atanh, "length"); -verifyConfigurable(Math.atanh, "length"); +verifyProperty(Math.atanh, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/atanh/name.js b/test/built-ins/Math/atanh/name.js index 17fd9adb29..f112860a14 100644 --- a/test/built-ins/Math/atanh/name.js +++ b/test/built-ins/Math/atanh/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.atanh.name, "atanh"); - -verifyNotEnumerable(Math.atanh, "name"); -verifyNotWritable(Math.atanh, "name"); -verifyConfigurable(Math.atanh, "name"); +verifyProperty(Math.atanh, "name", { + value: "atanh", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/cbrt/length.js b/test/built-ins/Math/cbrt/length.js index f5bdf33566..445f7dd962 100644 --- a/test/built-ins/Math/cbrt/length.js +++ b/test/built-ins/Math/cbrt/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.cbrt.length, 1); - -verifyNotEnumerable(Math.cbrt, "length"); -verifyNotWritable(Math.cbrt, "length"); -verifyConfigurable(Math.cbrt, "length"); +verifyProperty(Math.cbrt, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/cbrt/name.js b/test/built-ins/Math/cbrt/name.js index ffb4050be0..b7d2db4aee 100644 --- a/test/built-ins/Math/cbrt/name.js +++ b/test/built-ins/Math/cbrt/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.cbrt.name, "cbrt"); - -verifyNotEnumerable(Math.cbrt, "name"); -verifyNotWritable(Math.cbrt, "name"); -verifyConfigurable(Math.cbrt, "name"); +verifyProperty(Math.cbrt, "name", { + value: "cbrt", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/ceil/length.js b/test/built-ins/Math/ceil/length.js index 94774cfae7..dc73a2197c 100644 --- a/test/built-ins/Math/ceil/length.js +++ b/test/built-ins/Math/ceil/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.ceil.length, 1); - -verifyNotEnumerable(Math.ceil, "length"); -verifyNotWritable(Math.ceil, "length"); -verifyConfigurable(Math.ceil, "length"); +verifyProperty(Math.ceil, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/ceil/name.js b/test/built-ins/Math/ceil/name.js index 55eb5755da..7fb4a099a0 100644 --- a/test/built-ins/Math/ceil/name.js +++ b/test/built-ins/Math/ceil/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.ceil.name, "ceil"); - -verifyNotEnumerable(Math.ceil, "name"); -verifyNotWritable(Math.ceil, "name"); -verifyConfigurable(Math.ceil, "name"); +verifyProperty(Math.ceil, "name", { + value: "ceil", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/clz32/length.js b/test/built-ins/Math/clz32/length.js index e9ae5dd03e..d0384fb703 100644 --- a/test/built-ins/Math/clz32/length.js +++ b/test/built-ins/Math/clz32/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.clz32.length, 1); - -verifyNotEnumerable(Math.clz32, "length"); -verifyNotWritable(Math.clz32, "length"); -verifyConfigurable(Math.clz32, "length"); +verifyProperty(Math.clz32, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/clz32/name.js b/test/built-ins/Math/clz32/name.js index d7f9c5260f..15f5e8151d 100644 --- a/test/built-ins/Math/clz32/name.js +++ b/test/built-ins/Math/clz32/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.clz32.name, "clz32"); - -verifyNotEnumerable(Math.clz32, "name"); -verifyNotWritable(Math.clz32, "name"); -verifyConfigurable(Math.clz32, "name"); +verifyProperty(Math.clz32, "name", { + value: "clz32", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/cos/length.js b/test/built-ins/Math/cos/length.js index ecb0834566..73be243b76 100644 --- a/test/built-ins/Math/cos/length.js +++ b/test/built-ins/Math/cos/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.cos.length, 1); - -verifyNotEnumerable(Math.cos, "length"); -verifyNotWritable(Math.cos, "length"); -verifyConfigurable(Math.cos, "length"); +verifyProperty(Math.cos, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/cos/name.js b/test/built-ins/Math/cos/name.js index 475dca02aa..7b793f0be7 100644 --- a/test/built-ins/Math/cos/name.js +++ b/test/built-ins/Math/cos/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.cos.name, "cos"); - -verifyNotEnumerable(Math.cos, "name"); -verifyNotWritable(Math.cos, "name"); -verifyConfigurable(Math.cos, "name"); +verifyProperty(Math.cos, "name", { + value: "cos", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/cosh/length.js b/test/built-ins/Math/cosh/length.js index 5c6340a199..0190197e75 100644 --- a/test/built-ins/Math/cosh/length.js +++ b/test/built-ins/Math/cosh/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.cosh.length, 1); - -verifyNotEnumerable(Math.cosh, "length"); -verifyNotWritable(Math.cosh, "length"); -verifyConfigurable(Math.cosh, "length"); +verifyProperty(Math.cosh, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/cosh/name.js b/test/built-ins/Math/cosh/name.js index 969131060f..1c750c8a93 100644 --- a/test/built-ins/Math/cosh/name.js +++ b/test/built-ins/Math/cosh/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.cosh.name, "cosh"); - -verifyNotEnumerable(Math.cosh, "name"); -verifyNotWritable(Math.cosh, "name"); -verifyConfigurable(Math.cosh, "name"); +verifyProperty(Math.cosh, "name", { + value: "cosh", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/exp/length.js b/test/built-ins/Math/exp/length.js index 03a434b255..ca524851e0 100644 --- a/test/built-ins/Math/exp/length.js +++ b/test/built-ins/Math/exp/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.exp.length, 1); - -verifyNotEnumerable(Math.exp, "length"); -verifyNotWritable(Math.exp, "length"); -verifyConfigurable(Math.exp, "length"); +verifyProperty(Math.exp, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/exp/name.js b/test/built-ins/Math/exp/name.js index e0b6037a1d..a15a8a3262 100644 --- a/test/built-ins/Math/exp/name.js +++ b/test/built-ins/Math/exp/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.exp.name, "exp"); - -verifyNotEnumerable(Math.exp, "name"); -verifyNotWritable(Math.exp, "name"); -verifyConfigurable(Math.exp, "name"); +verifyProperty(Math.exp, "name", { + value: "exp", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/expm1/length.js b/test/built-ins/Math/expm1/length.js index cad17cb458..b7eeef729e 100644 --- a/test/built-ins/Math/expm1/length.js +++ b/test/built-ins/Math/expm1/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.expm1.length, 1); - -verifyNotEnumerable(Math.expm1, "length"); -verifyNotWritable(Math.expm1, "length"); -verifyConfigurable(Math.expm1, "length"); +verifyProperty(Math.expm1, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/expm1/name.js b/test/built-ins/Math/expm1/name.js index b71059a83b..6afa7bb78d 100644 --- a/test/built-ins/Math/expm1/name.js +++ b/test/built-ins/Math/expm1/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.expm1.name, "expm1"); - -verifyNotEnumerable(Math.expm1, "name"); -verifyNotWritable(Math.expm1, "name"); -verifyConfigurable(Math.expm1, "name"); +verifyProperty(Math.expm1, "name", { + value: "expm1", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/floor/length.js b/test/built-ins/Math/floor/length.js index e729db3a1c..741ba83f4b 100644 --- a/test/built-ins/Math/floor/length.js +++ b/test/built-ins/Math/floor/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.floor.length, 1); - -verifyNotEnumerable(Math.floor, "length"); -verifyNotWritable(Math.floor, "length"); -verifyConfigurable(Math.floor, "length"); +verifyProperty(Math.floor, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/floor/name.js b/test/built-ins/Math/floor/name.js index 5acdff4ada..6bf6daa614 100644 --- a/test/built-ins/Math/floor/name.js +++ b/test/built-ins/Math/floor/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.floor.name, "floor"); - -verifyNotEnumerable(Math.floor, "name"); -verifyNotWritable(Math.floor, "name"); -verifyConfigurable(Math.floor, "name"); +verifyProperty(Math.floor, "name", { + value: "floor", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/fround/length.js b/test/built-ins/Math/fround/length.js index 0bbe7d0152..4c15264d29 100644 --- a/test/built-ins/Math/fround/length.js +++ b/test/built-ins/Math/fround/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.fround.length, 1); - -verifyNotEnumerable(Math.fround, "length"); -verifyNotWritable(Math.fround, "length"); -verifyConfigurable(Math.fround, "length"); +verifyProperty(Math.fround, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/fround/name.js b/test/built-ins/Math/fround/name.js index a32d540519..48d175f32c 100644 --- a/test/built-ins/Math/fround/name.js +++ b/test/built-ins/Math/fround/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.fround.name, "fround"); - -verifyNotEnumerable(Math.fround, "name"); -verifyNotWritable(Math.fround, "name"); -verifyConfigurable(Math.fround, "name"); +verifyProperty(Math.fround, "name", { + value: "fround", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/hypot/length.js b/test/built-ins/Math/hypot/length.js index 342195dee0..8060fdfe50 100644 --- a/test/built-ins/Math/hypot/length.js +++ b/test/built-ins/Math/hypot/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.hypot.length, 2); - -verifyNotEnumerable(Math.hypot, "length"); -verifyNotWritable(Math.hypot, "length"); -verifyConfigurable(Math.hypot, "length"); +verifyProperty(Math.hypot, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/hypot/name.js b/test/built-ins/Math/hypot/name.js index e7b24de8b8..b5c65e464f 100644 --- a/test/built-ins/Math/hypot/name.js +++ b/test/built-ins/Math/hypot/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.hypot.name, "hypot"); - -verifyNotEnumerable(Math.hypot, "name"); -verifyNotWritable(Math.hypot, "name"); -verifyConfigurable(Math.hypot, "name"); +verifyProperty(Math.hypot, "name", { + value: "hypot", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/imul/length.js b/test/built-ins/Math/imul/length.js index f8f7e66f1c..9c45f2ad0c 100644 --- a/test/built-ins/Math/imul/length.js +++ b/test/built-ins/Math/imul/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.imul.length, 2); - -verifyNotEnumerable(Math.imul, "length"); -verifyNotWritable(Math.imul, "length"); -verifyConfigurable(Math.imul, "length"); +verifyProperty(Math.imul, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/imul/name.js b/test/built-ins/Math/imul/name.js index 88cca3cbe6..f95354f0e0 100644 --- a/test/built-ins/Math/imul/name.js +++ b/test/built-ins/Math/imul/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.imul.name, "imul"); - -verifyNotEnumerable(Math.imul, "name"); -verifyNotWritable(Math.imul, "name"); -verifyConfigurable(Math.imul, "name"); +verifyProperty(Math.imul, "name", { + value: "imul", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/log/length.js b/test/built-ins/Math/log/length.js index 53fd4904a9..dcebf7e49c 100644 --- a/test/built-ins/Math/log/length.js +++ b/test/built-ins/Math/log/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log.length, 1); - -verifyNotEnumerable(Math.log, "length"); -verifyNotWritable(Math.log, "length"); -verifyConfigurable(Math.log, "length"); +verifyProperty(Math.log, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/log/name.js b/test/built-ins/Math/log/name.js index 8149ca6623..20b62ccdc7 100644 --- a/test/built-ins/Math/log/name.js +++ b/test/built-ins/Math/log/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log.name, "log"); - -verifyNotEnumerable(Math.log, "name"); -verifyNotWritable(Math.log, "name"); -verifyConfigurable(Math.log, "name"); +verifyProperty(Math.log, "name", { + value: "log", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/log10/length.js b/test/built-ins/Math/log10/length.js index 606303edd1..77bdea665b 100644 --- a/test/built-ins/Math/log10/length.js +++ b/test/built-ins/Math/log10/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log10.length, 1); - -verifyNotEnumerable(Math.log10, "length"); -verifyNotWritable(Math.log10, "length"); -verifyConfigurable(Math.log10, "length"); +verifyProperty(Math.log10, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/log10/name.js b/test/built-ins/Math/log10/name.js index 248f499a86..4ab1dfbe6c 100644 --- a/test/built-ins/Math/log10/name.js +++ b/test/built-ins/Math/log10/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log10.name, "log10"); - -verifyNotEnumerable(Math.log10, "name"); -verifyNotWritable(Math.log10, "name"); -verifyConfigurable(Math.log10, "name"); +verifyProperty(Math.log10, "name", { + value: "log10", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/log1p/length.js b/test/built-ins/Math/log1p/length.js index 378579813f..0930538045 100644 --- a/test/built-ins/Math/log1p/length.js +++ b/test/built-ins/Math/log1p/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log1p.length, 1); - -verifyNotEnumerable(Math.log1p, "length"); -verifyNotWritable(Math.log1p, "length"); -verifyConfigurable(Math.log1p, "length"); +verifyProperty(Math.log1p, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/log1p/name.js b/test/built-ins/Math/log1p/name.js index 84af7a6199..7bfe91de07 100644 --- a/test/built-ins/Math/log1p/name.js +++ b/test/built-ins/Math/log1p/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log1p.name, "log1p"); - -verifyNotEnumerable(Math.log1p, "name"); -verifyNotWritable(Math.log1p, "name"); -verifyConfigurable(Math.log1p, "name"); +verifyProperty(Math.log1p, "name", { + value: "log1p", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/log2/length.js b/test/built-ins/Math/log2/length.js index 8f881ce3b7..bd70c34a21 100644 --- a/test/built-ins/Math/log2/length.js +++ b/test/built-ins/Math/log2/length.js @@ -21,8 +21,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log2.length, 1); - -verifyNotEnumerable(Math.log2, "length"); -verifyNotWritable(Math.log2, "length"); -verifyConfigurable(Math.log2, "length"); +verifyProperty(Math.log2, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/log2/name.js b/test/built-ins/Math/log2/name.js index 78fa506e04..8cc645b00b 100644 --- a/test/built-ins/Math/log2/name.js +++ b/test/built-ins/Math/log2/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.log2.name, "log2"); - -verifyNotEnumerable(Math.log2, "name"); -verifyNotWritable(Math.log2, "name"); -verifyConfigurable(Math.log2, "name"); +verifyProperty(Math.log2, "name", { + value: "log2", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/max/length.js b/test/built-ins/Math/max/length.js index 4cb729d17b..f9de35131e 100644 --- a/test/built-ins/Math/max/length.js +++ b/test/built-ins/Math/max/length.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.max.length, 2); - -verifyNotEnumerable(Math.max, "length"); -verifyNotWritable(Math.max, "length"); -verifyConfigurable(Math.max, "length"); +verifyProperty(Math.max, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/max/name.js b/test/built-ins/Math/max/name.js index 5c5cb59c59..e08a65684b 100644 --- a/test/built-ins/Math/max/name.js +++ b/test/built-ins/Math/max/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.max.name, "max"); - -verifyNotEnumerable(Math.max, "name"); -verifyNotWritable(Math.max, "name"); -verifyConfigurable(Math.max, "name"); +verifyProperty(Math.max, "name", { + value: "max", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/min/length.js b/test/built-ins/Math/min/length.js index 5ef655a0f1..1ba5b45543 100644 --- a/test/built-ins/Math/min/length.js +++ b/test/built-ins/Math/min/length.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.min.length, 2); - -verifyNotEnumerable(Math.min, "length"); -verifyNotWritable(Math.min, "length"); -verifyConfigurable(Math.min, "length"); +verifyProperty(Math.min, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/min/name.js b/test/built-ins/Math/min/name.js index 283a0cc958..4118bc8bdf 100644 --- a/test/built-ins/Math/min/name.js +++ b/test/built-ins/Math/min/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.min.name, "min"); - -verifyNotEnumerable(Math.min, "name"); -verifyNotWritable(Math.min, "name"); -verifyConfigurable(Math.min, "name"); +verifyProperty(Math.min, "name", { + value: "min", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/pow/length.js b/test/built-ins/Math/pow/length.js index 7c8d23f4f2..89078363b2 100644 --- a/test/built-ins/Math/pow/length.js +++ b/test/built-ins/Math/pow/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.pow.length, 2); - -verifyNotEnumerable(Math.pow, "length"); -verifyNotWritable(Math.pow, "length"); -verifyConfigurable(Math.pow, "length"); +verifyProperty(Math.pow, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/pow/name.js b/test/built-ins/Math/pow/name.js index 6aab1c6e6e..ad20e1cf97 100644 --- a/test/built-ins/Math/pow/name.js +++ b/test/built-ins/Math/pow/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.pow.name, "pow"); - -verifyNotEnumerable(Math.pow, "name"); -verifyNotWritable(Math.pow, "name"); -verifyConfigurable(Math.pow, "name"); +verifyProperty(Math.pow, "name", { + value: "pow", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/random/length.js b/test/built-ins/Math/random/length.js index 011d4bb151..eaa44d3b63 100644 --- a/test/built-ins/Math/random/length.js +++ b/test/built-ins/Math/random/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.random.length, 0); - -verifyNotEnumerable(Math.random, "length"); -verifyNotWritable(Math.random, "length"); -verifyConfigurable(Math.random, "length"); +verifyProperty(Math.random, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/random/name.js b/test/built-ins/Math/random/name.js index 3caadf5630..64bc1cea43 100644 --- a/test/built-ins/Math/random/name.js +++ b/test/built-ins/Math/random/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.random.name, "random"); - -verifyNotEnumerable(Math.random, "name"); -verifyNotWritable(Math.random, "name"); -verifyConfigurable(Math.random, "name"); +verifyProperty(Math.random, "name", { + value: "random", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/round/length.js b/test/built-ins/Math/round/length.js index b35f42fb91..77881babf0 100644 --- a/test/built-ins/Math/round/length.js +++ b/test/built-ins/Math/round/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.round.length, 1); - -verifyNotEnumerable(Math.round, "length"); -verifyNotWritable(Math.round, "length"); -verifyConfigurable(Math.round, "length"); +verifyProperty(Math.round, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/round/name.js b/test/built-ins/Math/round/name.js index 3b8793ad68..f88d47a6ad 100644 --- a/test/built-ins/Math/round/name.js +++ b/test/built-ins/Math/round/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.round.name, "round"); - -verifyNotEnumerable(Math.round, "name"); -verifyNotWritable(Math.round, "name"); -verifyConfigurable(Math.round, "name"); +verifyProperty(Math.round, "name", { + value: "round", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/sign/length.js b/test/built-ins/Math/sign/length.js index f8b59f7229..390e604804 100644 --- a/test/built-ins/Math/sign/length.js +++ b/test/built-ins/Math/sign/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sign.length, 1); - -verifyNotEnumerable(Math.sign, "length"); -verifyNotWritable(Math.sign, "length"); -verifyConfigurable(Math.sign, "length"); +verifyProperty(Math.sign, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/sign/name.js b/test/built-ins/Math/sign/name.js index 92bf979a77..f61db571a2 100644 --- a/test/built-ins/Math/sign/name.js +++ b/test/built-ins/Math/sign/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sign.name, "sign"); - -verifyNotEnumerable(Math.sign, "name"); -verifyNotWritable(Math.sign, "name"); -verifyConfigurable(Math.sign, "name"); +verifyProperty(Math.sign, "name", { + value: "sign", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/sin/length.js b/test/built-ins/Math/sin/length.js index a898c48344..15b355dc85 100644 --- a/test/built-ins/Math/sin/length.js +++ b/test/built-ins/Math/sin/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sin.length, 1); - -verifyNotEnumerable(Math.sin, "length"); -verifyNotWritable(Math.sin, "length"); -verifyConfigurable(Math.sin, "length"); +verifyProperty(Math.sin, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/sin/name.js b/test/built-ins/Math/sin/name.js index f73d01a010..ef4ce59b87 100644 --- a/test/built-ins/Math/sin/name.js +++ b/test/built-ins/Math/sin/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sin.name, "sin"); - -verifyNotEnumerable(Math.sin, "name"); -verifyNotWritable(Math.sin, "name"); -verifyConfigurable(Math.sin, "name"); +verifyProperty(Math.sin, "name", { + value: "sin", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/sinh/length.js b/test/built-ins/Math/sinh/length.js index 67a44f935a..0c658e2ace 100644 --- a/test/built-ins/Math/sinh/length.js +++ b/test/built-ins/Math/sinh/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sinh.length, 1); - -verifyNotEnumerable(Math.sinh, "length"); -verifyNotWritable(Math.sinh, "length"); -verifyConfigurable(Math.sinh, "length"); +verifyProperty(Math.sinh, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/sinh/name.js b/test/built-ins/Math/sinh/name.js index d9695b387e..4eb1673b8c 100644 --- a/test/built-ins/Math/sinh/name.js +++ b/test/built-ins/Math/sinh/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sinh.name, "sinh"); - -verifyNotEnumerable(Math.sinh, "name"); -verifyNotWritable(Math.sinh, "name"); -verifyConfigurable(Math.sinh, "name"); +verifyProperty(Math.sinh, "name", { + value: "sinh", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/sqrt/length.js b/test/built-ins/Math/sqrt/length.js index 496902434d..270f7d2d0a 100644 --- a/test/built-ins/Math/sqrt/length.js +++ b/test/built-ins/Math/sqrt/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sqrt.length, 1); - -verifyNotEnumerable(Math.sqrt, "length"); -verifyNotWritable(Math.sqrt, "length"); -verifyConfigurable(Math.sqrt, "length"); +verifyProperty(Math.sqrt, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/sqrt/name.js b/test/built-ins/Math/sqrt/name.js index 5e63a72120..c892a216df 100644 --- a/test/built-ins/Math/sqrt/name.js +++ b/test/built-ins/Math/sqrt/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.sqrt.name, "sqrt"); - -verifyNotEnumerable(Math.sqrt, "name"); -verifyNotWritable(Math.sqrt, "name"); -verifyConfigurable(Math.sqrt, "name"); +verifyProperty(Math.sqrt, "name", { + value: "sqrt", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/tan/length.js b/test/built-ins/Math/tan/length.js index d31894aa18..6e9e147d3e 100644 --- a/test/built-ins/Math/tan/length.js +++ b/test/built-ins/Math/tan/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.tan.length, 1); - -verifyNotEnumerable(Math.tan, "length"); -verifyNotWritable(Math.tan, "length"); -verifyConfigurable(Math.tan, "length"); +verifyProperty(Math.tan, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/tan/name.js b/test/built-ins/Math/tan/name.js index c531b0e198..007cbbd385 100644 --- a/test/built-ins/Math/tan/name.js +++ b/test/built-ins/Math/tan/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.tan.name, "tan"); - -verifyNotEnumerable(Math.tan, "name"); -verifyNotWritable(Math.tan, "name"); -verifyConfigurable(Math.tan, "name"); +verifyProperty(Math.tan, "name", { + value: "tan", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/tanh/length.js b/test/built-ins/Math/tanh/length.js index 4c512c8bbd..515c08cda3 100644 --- a/test/built-ins/Math/tanh/length.js +++ b/test/built-ins/Math/tanh/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.tanh.length, 1); - -verifyNotEnumerable(Math.tanh, "length"); -verifyNotWritable(Math.tanh, "length"); -verifyConfigurable(Math.tanh, "length"); +verifyProperty(Math.tanh, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/tanh/name.js b/test/built-ins/Math/tanh/name.js index 8df7318e6c..8c174184cd 100644 --- a/test/built-ins/Math/tanh/name.js +++ b/test/built-ins/Math/tanh/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.tanh.name, "tanh"); - -verifyNotEnumerable(Math.tanh, "name"); -verifyNotWritable(Math.tanh, "name"); -verifyConfigurable(Math.tanh, "name"); +verifyProperty(Math.tanh, "name", { + value: "tanh", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/trunc/length.js b/test/built-ins/Math/trunc/length.js index c9be5b51e0..311671cc77 100644 --- a/test/built-ins/Math/trunc/length.js +++ b/test/built-ins/Math/trunc/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.trunc.length, 1); - -verifyNotEnumerable(Math.trunc, "length"); -verifyNotWritable(Math.trunc, "length"); -verifyConfigurable(Math.trunc, "length"); +verifyProperty(Math.trunc, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Math/trunc/name.js b/test/built-ins/Math/trunc/name.js index e7058c2c18..69d245b2dc 100644 --- a/test/built-ins/Math/trunc/name.js +++ b/test/built-ins/Math/trunc/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Math.trunc.name, "trunc"); - -verifyNotEnumerable(Math.trunc, "name"); -verifyNotWritable(Math.trunc, "name"); -verifyConfigurable(Math.trunc, "name"); +verifyProperty(Math.trunc, "name", { + value: "trunc", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/EvalError/length.js b/test/built-ins/NativeErrors/EvalError/length.js index 70b3370321..52c729d767 100644 --- a/test/built-ins/NativeErrors/EvalError/length.js +++ b/test/built-ins/NativeErrors/EvalError/length.js @@ -25,8 +25,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(EvalError.length, 1); - -verifyNotEnumerable(EvalError, "length"); -verifyNotWritable(EvalError, "length"); -verifyConfigurable(EvalError, "length"); +verifyProperty(EvalError, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/EvalError/name.js b/test/built-ins/NativeErrors/EvalError/name.js index 31b3ec1928..299df8f2e9 100644 --- a/test/built-ins/NativeErrors/EvalError/name.js +++ b/test/built-ins/NativeErrors/EvalError/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(EvalError.name, "EvalError"); - -verifyNotEnumerable(EvalError, "name"); -verifyNotWritable(EvalError, "name"); -verifyConfigurable(EvalError, "name"); +verifyProperty(EvalError, "name", { + value: "EvalError", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/EvalError/prototype/name.js b/test/built-ins/NativeErrors/EvalError/prototype/name.js index 8dada4fab7..fc0574667e 100644 --- a/test/built-ins/NativeErrors/EvalError/prototype/name.js +++ b/test/built-ins/NativeErrors/EvalError/prototype/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(EvalError.prototype.name, "EvalError"); - -verifyNotEnumerable(EvalError.prototype, "name"); -verifyWritable(EvalError.prototype, "name"); -verifyConfigurable(EvalError.prototype, "name"); +verifyProperty(EvalError.prototype, "name", { + value: "EvalError", + writable: true, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/RangeError/length.js b/test/built-ins/NativeErrors/RangeError/length.js index 46fd2bbe33..891ce44348 100644 --- a/test/built-ins/NativeErrors/RangeError/length.js +++ b/test/built-ins/NativeErrors/RangeError/length.js @@ -25,8 +25,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(RangeError.length, 1); - -verifyNotEnumerable(RangeError, "length"); -verifyNotWritable(RangeError, "length"); -verifyConfigurable(RangeError, "length"); +verifyProperty(RangeError, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/RangeError/name.js b/test/built-ins/NativeErrors/RangeError/name.js index 08e144eab0..8a02c0b93f 100644 --- a/test/built-ins/NativeErrors/RangeError/name.js +++ b/test/built-ins/NativeErrors/RangeError/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(RangeError.name, "RangeError"); - -verifyNotEnumerable(RangeError, "name"); -verifyNotWritable(RangeError, "name"); -verifyConfigurable(RangeError, "name"); +verifyProperty(RangeError, "name", { + value: "RangeError", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/RangeError/prototype/name.js b/test/built-ins/NativeErrors/RangeError/prototype/name.js index 547e71663a..433a8b7aba 100644 --- a/test/built-ins/NativeErrors/RangeError/prototype/name.js +++ b/test/built-ins/NativeErrors/RangeError/prototype/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(RangeError.prototype.name, "RangeError"); - -verifyNotEnumerable(RangeError.prototype, "name"); -verifyWritable(RangeError.prototype, "name"); -verifyConfigurable(RangeError.prototype, "name"); +verifyProperty(RangeError.prototype, "name", { + value: "RangeError", + writable: true, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/ReferenceError/length.js b/test/built-ins/NativeErrors/ReferenceError/length.js index 080f4b3edb..27dbee8181 100644 --- a/test/built-ins/NativeErrors/ReferenceError/length.js +++ b/test/built-ins/NativeErrors/ReferenceError/length.js @@ -25,8 +25,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(ReferenceError.length, 1); - -verifyNotEnumerable(ReferenceError, "length"); -verifyNotWritable(ReferenceError, "length"); -verifyConfigurable(ReferenceError, "length"); +verifyProperty(ReferenceError, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/ReferenceError/name.js b/test/built-ins/NativeErrors/ReferenceError/name.js index 7ffcc4b5a6..a972e14d19 100644 --- a/test/built-ins/NativeErrors/ReferenceError/name.js +++ b/test/built-ins/NativeErrors/ReferenceError/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(ReferenceError.name, "ReferenceError"); - -verifyNotEnumerable(ReferenceError, "name"); -verifyNotWritable(ReferenceError, "name"); -verifyConfigurable(ReferenceError, "name"); +verifyProperty(ReferenceError, "name", { + value: "ReferenceError", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/ReferenceError/prototype/name.js b/test/built-ins/NativeErrors/ReferenceError/prototype/name.js index 9bc9f8866a..1d5df72725 100644 --- a/test/built-ins/NativeErrors/ReferenceError/prototype/name.js +++ b/test/built-ins/NativeErrors/ReferenceError/prototype/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(ReferenceError.prototype.name, "ReferenceError"); - -verifyNotEnumerable(ReferenceError.prototype, "name"); -verifyWritable(ReferenceError.prototype, "name"); -verifyConfigurable(ReferenceError.prototype, "name"); +verifyProperty(ReferenceError.prototype, "name", { + value: "ReferenceError", + writable: true, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/SyntaxError/length.js b/test/built-ins/NativeErrors/SyntaxError/length.js index a4dea32c1a..793663d23c 100644 --- a/test/built-ins/NativeErrors/SyntaxError/length.js +++ b/test/built-ins/NativeErrors/SyntaxError/length.js @@ -25,8 +25,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(SyntaxError.length, 1); - -verifyNotEnumerable(SyntaxError, "length"); -verifyNotWritable(SyntaxError, "length"); -verifyConfigurable(SyntaxError, "length"); +verifyProperty(SyntaxError, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/SyntaxError/name.js b/test/built-ins/NativeErrors/SyntaxError/name.js index 3642c43974..f7bf7f6f16 100644 --- a/test/built-ins/NativeErrors/SyntaxError/name.js +++ b/test/built-ins/NativeErrors/SyntaxError/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(SyntaxError.name, "SyntaxError"); - -verifyNotEnumerable(SyntaxError, "name"); -verifyNotWritable(SyntaxError, "name"); -verifyConfigurable(SyntaxError, "name"); +verifyProperty(SyntaxError, "name", { + value: "SyntaxError", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/SyntaxError/prototype/name.js b/test/built-ins/NativeErrors/SyntaxError/prototype/name.js index 8a1ff5f8a7..d570cda579 100644 --- a/test/built-ins/NativeErrors/SyntaxError/prototype/name.js +++ b/test/built-ins/NativeErrors/SyntaxError/prototype/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(SyntaxError.prototype.name, "SyntaxError"); - -verifyNotEnumerable(SyntaxError.prototype, "name"); -verifyWritable(SyntaxError.prototype, "name"); -verifyConfigurable(SyntaxError.prototype, "name"); +verifyProperty(SyntaxError.prototype, "name", { + value: "SyntaxError", + writable: true, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/TypeError/length.js b/test/built-ins/NativeErrors/TypeError/length.js index bd287c740d..2ca3de4d00 100644 --- a/test/built-ins/NativeErrors/TypeError/length.js +++ b/test/built-ins/NativeErrors/TypeError/length.js @@ -25,8 +25,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(TypeError.length, 1); - -verifyNotEnumerable(TypeError, "length"); -verifyNotWritable(TypeError, "length"); -verifyConfigurable(TypeError, "length"); +verifyProperty(TypeError, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/TypeError/name.js b/test/built-ins/NativeErrors/TypeError/name.js index 56a6df4872..a48362a4f6 100644 --- a/test/built-ins/NativeErrors/TypeError/name.js +++ b/test/built-ins/NativeErrors/TypeError/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(TypeError.name, "TypeError"); - -verifyNotEnumerable(TypeError, "name"); -verifyNotWritable(TypeError, "name"); -verifyConfigurable(TypeError, "name"); +verifyProperty(TypeError, "name", { + value: "TypeError", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/TypeError/prototype/name.js b/test/built-ins/NativeErrors/TypeError/prototype/name.js index 2546e52e9c..d03428f10e 100644 --- a/test/built-ins/NativeErrors/TypeError/prototype/name.js +++ b/test/built-ins/NativeErrors/TypeError/prototype/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(TypeError.prototype.name, "TypeError"); - -verifyNotEnumerable(TypeError.prototype, "name"); -verifyWritable(TypeError.prototype, "name"); -verifyConfigurable(TypeError.prototype, "name"); +verifyProperty(TypeError.prototype, "name", { + value: "TypeError", + writable: true, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/URIError/length.js b/test/built-ins/NativeErrors/URIError/length.js index 123dd769fb..93011e88d4 100644 --- a/test/built-ins/NativeErrors/URIError/length.js +++ b/test/built-ins/NativeErrors/URIError/length.js @@ -25,8 +25,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(URIError.length, 1); - -verifyNotEnumerable(URIError, "length"); -verifyNotWritable(URIError, "length"); -verifyConfigurable(URIError, "length"); +verifyProperty(URIError, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/URIError/name.js b/test/built-ins/NativeErrors/URIError/name.js index 2826b75916..d442286b53 100644 --- a/test/built-ins/NativeErrors/URIError/name.js +++ b/test/built-ins/NativeErrors/URIError/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(URIError.name, "URIError"); - -verifyNotEnumerable(URIError, "name"); -verifyNotWritable(URIError, "name"); -verifyConfigurable(URIError, "name"); +verifyProperty(URIError, "name", { + value: "URIError", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/NativeErrors/URIError/prototype/name.js b/test/built-ins/NativeErrors/URIError/prototype/name.js index c5295c38e1..4add9825e1 100644 --- a/test/built-ins/NativeErrors/URIError/prototype/name.js +++ b/test/built-ins/NativeErrors/URIError/prototype/name.js @@ -17,8 +17,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(URIError.prototype.name, "URIError"); - -verifyNotEnumerable(URIError.prototype, "name"); -verifyWritable(URIError.prototype, "name"); -verifyConfigurable(URIError.prototype, "name"); +verifyProperty(URIError.prototype, "name", { + value: "URIError", + writable: true, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/isFinite/length.js b/test/built-ins/Number/isFinite/length.js index 422afa9fe3..f48c960eb5 100644 --- a/test/built-ins/Number/isFinite/length.js +++ b/test/built-ins/Number/isFinite/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.isFinite.length, 1); - -verifyNotEnumerable(Number.isFinite, "length"); -verifyNotWritable(Number.isFinite, "length"); -verifyConfigurable(Number.isFinite, "length"); +verifyProperty(Number.isFinite, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/isFinite/name.js b/test/built-ins/Number/isFinite/name.js index 6069bce950..51ef8b19c9 100644 --- a/test/built-ins/Number/isFinite/name.js +++ b/test/built-ins/Number/isFinite/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.isFinite.name, "isFinite"); - -verifyNotEnumerable(Number.isFinite, "name"); -verifyNotWritable(Number.isFinite, "name"); -verifyConfigurable(Number.isFinite, "name"); +verifyProperty(Number.isFinite, "name", { + value: "isFinite", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/isInteger/length.js b/test/built-ins/Number/isInteger/length.js index ca37aedfef..858209dea1 100644 --- a/test/built-ins/Number/isInteger/length.js +++ b/test/built-ins/Number/isInteger/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.isInteger.length, 1); - -verifyNotEnumerable(Number.isInteger, "length"); -verifyNotWritable(Number.isInteger, "length"); -verifyConfigurable(Number.isInteger, "length"); +verifyProperty(Number.isInteger, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/isInteger/name.js b/test/built-ins/Number/isInteger/name.js index df98cf01d4..f9e4fe0def 100644 --- a/test/built-ins/Number/isInteger/name.js +++ b/test/built-ins/Number/isInteger/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.isInteger.name, "isInteger"); - -verifyNotEnumerable(Number.isInteger, "name"); -verifyNotWritable(Number.isInteger, "name"); -verifyConfigurable(Number.isInteger, "name"); +verifyProperty(Number.isInteger, "name", { + value: "isInteger", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/isNaN/length.js b/test/built-ins/Number/isNaN/length.js index 68f2584cac..69914a2469 100644 --- a/test/built-ins/Number/isNaN/length.js +++ b/test/built-ins/Number/isNaN/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.isNaN.length, 1); - -verifyNotEnumerable(Number.isNaN, "length"); -verifyNotWritable(Number.isNaN, "length"); -verifyConfigurable(Number.isNaN, "length"); +verifyProperty(Number.isNaN, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/isNaN/name.js b/test/built-ins/Number/isNaN/name.js index fee4602a92..1f57ac357b 100644 --- a/test/built-ins/Number/isNaN/name.js +++ b/test/built-ins/Number/isNaN/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.isNaN.name, "isNaN"); - -verifyNotEnumerable(Number.isNaN, "name"); -verifyNotWritable(Number.isNaN, "name"); -verifyConfigurable(Number.isNaN, "name"); +verifyProperty(Number.isNaN, "name", { + value: "isNaN", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/isSafeInteger/length.js b/test/built-ins/Number/isSafeInteger/length.js index 23e23e6c80..ab73312e4a 100644 --- a/test/built-ins/Number/isSafeInteger/length.js +++ b/test/built-ins/Number/isSafeInteger/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.isSafeInteger.length, 1); - -verifyNotEnumerable(Number.isSafeInteger, "length"); -verifyNotWritable(Number.isSafeInteger, "length"); -verifyConfigurable(Number.isSafeInteger, "length"); +verifyProperty(Number.isSafeInteger, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/isSafeInteger/name.js b/test/built-ins/Number/isSafeInteger/name.js index 808120077c..0ef1237b8b 100644 --- a/test/built-ins/Number/isSafeInteger/name.js +++ b/test/built-ins/Number/isSafeInteger/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.isSafeInteger.name, "isSafeInteger"); - -verifyNotEnumerable(Number.isSafeInteger, "name"); -verifyNotWritable(Number.isSafeInteger, "name"); -verifyConfigurable(Number.isSafeInteger, "name"); +verifyProperty(Number.isSafeInteger, "name", { + value: "isSafeInteger", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toExponential/length.js b/test/built-ins/Number/prototype/toExponential/length.js index 679171af2d..b38e7b94a8 100644 --- a/test/built-ins/Number/prototype/toExponential/length.js +++ b/test/built-ins/Number/prototype/toExponential/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toExponential.length, 1); - -verifyNotEnumerable(Number.prototype.toExponential, "length"); -verifyNotWritable(Number.prototype.toExponential, "length"); -verifyConfigurable(Number.prototype.toExponential, "length"); +verifyProperty(Number.prototype.toExponential, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toExponential/name.js b/test/built-ins/Number/prototype/toExponential/name.js index ae937b6a05..127c89adc7 100644 --- a/test/built-ins/Number/prototype/toExponential/name.js +++ b/test/built-ins/Number/prototype/toExponential/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toExponential.name, "toExponential"); - -verifyNotEnumerable(Number.prototype.toExponential, "name"); -verifyNotWritable(Number.prototype.toExponential, "name"); -verifyConfigurable(Number.prototype.toExponential, "name"); +verifyProperty(Number.prototype.toExponential, "name", { + value: "toExponential", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toFixed/length.js b/test/built-ins/Number/prototype/toFixed/length.js index f5f9745ede..0ff44dc64a 100644 --- a/test/built-ins/Number/prototype/toFixed/length.js +++ b/test/built-ins/Number/prototype/toFixed/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toFixed.length, 1); - -verifyNotEnumerable(Number.prototype.toFixed, "length"); -verifyNotWritable(Number.prototype.toFixed, "length"); -verifyConfigurable(Number.prototype.toFixed, "length"); +verifyProperty(Number.prototype.toFixed, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toFixed/name.js b/test/built-ins/Number/prototype/toFixed/name.js index df63ee0b79..3eb7bd7b53 100644 --- a/test/built-ins/Number/prototype/toFixed/name.js +++ b/test/built-ins/Number/prototype/toFixed/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toFixed.name, "toFixed"); - -verifyNotEnumerable(Number.prototype.toFixed, "name"); -verifyNotWritable(Number.prototype.toFixed, "name"); -verifyConfigurable(Number.prototype.toFixed, "name"); +verifyProperty(Number.prototype.toFixed, "name", { + value: "toFixed", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toLocaleString/length.js b/test/built-ins/Number/prototype/toLocaleString/length.js index 2f3e2a4c80..a07cc5ef79 100644 --- a/test/built-ins/Number/prototype/toLocaleString/length.js +++ b/test/built-ins/Number/prototype/toLocaleString/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toLocaleString.length, 0); - -verifyNotEnumerable(Number.prototype.toLocaleString, "length"); -verifyNotWritable(Number.prototype.toLocaleString, "length"); -verifyConfigurable(Number.prototype.toLocaleString, "length"); +verifyProperty(Number.prototype.toLocaleString, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toLocaleString/name.js b/test/built-ins/Number/prototype/toLocaleString/name.js index 9654fad6ed..faa9fba00c 100644 --- a/test/built-ins/Number/prototype/toLocaleString/name.js +++ b/test/built-ins/Number/prototype/toLocaleString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toLocaleString.name, "toLocaleString"); - -verifyNotEnumerable(Number.prototype.toLocaleString, "name"); -verifyNotWritable(Number.prototype.toLocaleString, "name"); -verifyConfigurable(Number.prototype.toLocaleString, "name"); +verifyProperty(Number.prototype.toLocaleString, "name", { + value: "toLocaleString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toPrecision/length.js b/test/built-ins/Number/prototype/toPrecision/length.js index 231f9b15cb..240c1dd360 100644 --- a/test/built-ins/Number/prototype/toPrecision/length.js +++ b/test/built-ins/Number/prototype/toPrecision/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toPrecision.length, 1); - -verifyNotEnumerable(Number.prototype.toPrecision, "length"); -verifyNotWritable(Number.prototype.toPrecision, "length"); -verifyConfigurable(Number.prototype.toPrecision, "length"); +verifyProperty(Number.prototype.toPrecision, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toPrecision/name.js b/test/built-ins/Number/prototype/toPrecision/name.js index 953919eed4..22624249ba 100644 --- a/test/built-ins/Number/prototype/toPrecision/name.js +++ b/test/built-ins/Number/prototype/toPrecision/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toPrecision.name, "toPrecision"); - -verifyNotEnumerable(Number.prototype.toPrecision, "name"); -verifyNotWritable(Number.prototype.toPrecision, "name"); -verifyConfigurable(Number.prototype.toPrecision, "name"); +verifyProperty(Number.prototype.toPrecision, "name", { + value: "toPrecision", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toString/length.js b/test/built-ins/Number/prototype/toString/length.js index 529d854a06..c21a5a717f 100644 --- a/test/built-ins/Number/prototype/toString/length.js +++ b/test/built-ins/Number/prototype/toString/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toString.length, 1); - -verifyNotEnumerable(Number.prototype.toString, "length"); -verifyNotWritable(Number.prototype.toString, "length"); -verifyConfigurable(Number.prototype.toString, "length"); +verifyProperty(Number.prototype.toString, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/toString/name.js b/test/built-ins/Number/prototype/toString/name.js index f8396ad957..aa72ee558c 100644 --- a/test/built-ins/Number/prototype/toString/name.js +++ b/test/built-ins/Number/prototype/toString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toString.name, "toString"); - -verifyNotEnumerable(Number.prototype.toString, "name"); -verifyNotWritable(Number.prototype.toString, "name"); -verifyConfigurable(Number.prototype.toString, "name"); +verifyProperty(Number.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/valueOf/length.js b/test/built-ins/Number/prototype/valueOf/length.js index 7e44ab4cb4..d126b87418 100644 --- a/test/built-ins/Number/prototype/valueOf/length.js +++ b/test/built-ins/Number/prototype/valueOf/length.js @@ -22,8 +22,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.valueOf.length, 0); - -verifyNotEnumerable(Number.prototype.valueOf, "length"); -verifyNotWritable(Number.prototype.valueOf, "length"); -verifyConfigurable(Number.prototype.valueOf, "length"); +verifyProperty(Number.prototype.valueOf, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Number/prototype/valueOf/name.js b/test/built-ins/Number/prototype/valueOf/name.js index 0ed0cd7de6..7d9c9a1824 100644 --- a/test/built-ins/Number/prototype/valueOf/name.js +++ b/test/built-ins/Number/prototype/valueOf/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.valueOf.name, "valueOf"); - -verifyNotEnumerable(Number.prototype.valueOf, "name"); -verifyNotWritable(Number.prototype.valueOf, "name"); -verifyConfigurable(Number.prototype.valueOf, "name"); +verifyProperty(Number.prototype.valueOf, "name", { + value: "valueOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/Symbol.species/length.js b/test/built-ins/Promise/Symbol.species/length.js index a18d5d68df..345e28f994 100644 --- a/test/built-ins/Promise/Symbol.species/length.js +++ b/test/built-ins/Promise/Symbol.species/length.js @@ -25,8 +25,9 @@ features: [Symbol.species] var desc = Object.getOwnPropertyDescriptor(Promise, Symbol.species); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/all/length.js b/test/built-ins/Promise/all/length.js index e47b77119d..2fdd0bf113 100644 --- a/test/built-ins/Promise/all/length.js +++ b/test/built-ins/Promise/all/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.all.length, 1); - -verifyNotEnumerable(Promise.all, 'length'); -verifyNotWritable(Promise.all, 'length'); -verifyConfigurable(Promise.all, 'length'); +verifyProperty(Promise.all, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/all/name.js b/test/built-ins/Promise/all/name.js index 74ea807e14..03efaff90f 100644 --- a/test/built-ins/Promise/all/name.js +++ b/test/built-ins/Promise/all/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.all.name, 'all'); - -verifyNotEnumerable(Promise.all, 'name'); -verifyNotWritable(Promise.all, 'name'); -verifyConfigurable(Promise.all, 'name'); +verifyProperty(Promise.all, "name", { + value: "all", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/all/resolve-element-function-length.js b/test/built-ins/Promise/all/resolve-element-function-length.js index 87938eb4de..34a9b087f5 100644 --- a/test/built-ins/Promise/all/resolve-element-function-length.js +++ b/test/built-ins/Promise/all/resolve-element-function-length.js @@ -29,8 +29,9 @@ NotPromise.resolve = function(v) { }; Promise.all.call(NotPromise, [thenable]); -assert.sameValue(resolveElementFunction.length, 1); - -verifyNotEnumerable(resolveElementFunction, "length"); -verifyNotWritable(resolveElementFunction, "length"); -verifyConfigurable(resolveElementFunction, "length"); +verifyProperty(resolveElementFunction, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/executor-function-length.js b/test/built-ins/Promise/executor-function-length.js index 0558e97b55..e0be9d8b76 100644 --- a/test/built-ins/Promise/executor-function-length.js +++ b/test/built-ins/Promise/executor-function-length.js @@ -22,8 +22,9 @@ function NotPromise(executor) { } Promise.resolve.call(NotPromise); -assert.sameValue(executorFunction.length, 2); - -verifyNotEnumerable(executorFunction, "length"); -verifyNotWritable(executorFunction, "length"); -verifyConfigurable(executorFunction, "length"); +verifyProperty(executorFunction, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/length.js b/test/built-ins/Promise/length.js index f9a41ff1d2..4c74150599 100644 --- a/test/built-ins/Promise/length.js +++ b/test/built-ins/Promise/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.length, 1); - -verifyNotEnumerable(Promise, 'length'); -verifyNotWritable(Promise, 'length'); -verifyConfigurable(Promise, 'length'); +verifyProperty(Promise, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/name.js b/test/built-ins/Promise/name.js index 41475fc2fb..c7b2d0fccb 100644 --- a/test/built-ins/Promise/name.js +++ b/test/built-ins/Promise/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.name, 'Promise'); - -verifyNotEnumerable(Promise, 'name'); -verifyNotWritable(Promise, 'name'); -verifyConfigurable(Promise, 'name'); +verifyProperty(Promise, "name", { + value: "Promise", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/prototype/catch/length.js b/test/built-ins/Promise/prototype/catch/length.js index 7b60157d36..56769ad9fc 100644 --- a/test/built-ins/Promise/prototype/catch/length.js +++ b/test/built-ins/Promise/prototype/catch/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.prototype.catch.length, 1); - -verifyNotEnumerable(Promise.prototype.catch, 'length'); -verifyNotWritable(Promise.prototype.catch, 'length'); -verifyConfigurable(Promise.prototype.catch, 'length'); +verifyProperty(Promise.prototype.catch, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/prototype/catch/name.js b/test/built-ins/Promise/prototype/catch/name.js index a8c7c5a086..bd7ad24d39 100644 --- a/test/built-ins/Promise/prototype/catch/name.js +++ b/test/built-ins/Promise/prototype/catch/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.prototype.catch.name, 'catch'); - -verifyNotEnumerable(Promise.prototype.catch, 'name'); -verifyNotWritable(Promise.prototype.catch, 'name'); -verifyConfigurable(Promise.prototype.catch, 'name'); +verifyProperty(Promise.prototype.catch, "name", { + value: "catch", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/prototype/finally/name.js b/test/built-ins/Promise/prototype/finally/name.js index 682d3d0adf..092c888b66 100644 --- a/test/built-ins/Promise/prototype/finally/name.js +++ b/test/built-ins/Promise/prototype/finally/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [Promise.prototype.finally] ---*/ -assert.sameValue(Promise.prototype.finally.name, 'finally'); - -verifyNotEnumerable(Promise.prototype.finally, 'name'); -verifyNotWritable(Promise.prototype.finally, 'name'); -verifyConfigurable(Promise.prototype.finally, 'name'); +verifyProperty(Promise.prototype.finally, "name", { + value: "finally", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/prototype/then/length.js b/test/built-ins/Promise/prototype/then/length.js index ba659566ab..05e02aee1b 100644 --- a/test/built-ins/Promise/prototype/then/length.js +++ b/test/built-ins/Promise/prototype/then/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.prototype.then.length, 2); - -verifyNotEnumerable(Promise.prototype.then, 'length'); -verifyNotWritable(Promise.prototype.then, 'length'); -verifyConfigurable(Promise.prototype.then, 'length'); +verifyProperty(Promise.prototype.then, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/prototype/then/name.js b/test/built-ins/Promise/prototype/then/name.js index 79ff08844d..cef4fe356d 100644 --- a/test/built-ins/Promise/prototype/then/name.js +++ b/test/built-ins/Promise/prototype/then/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.prototype.then.name, 'then'); - -verifyNotEnumerable(Promise.prototype.then, 'name'); -verifyNotWritable(Promise.prototype.then, 'name'); -verifyConfigurable(Promise.prototype.then, 'name'); +verifyProperty(Promise.prototype.then, "name", { + value: "then", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/race/length.js b/test/built-ins/Promise/race/length.js index 5e560c906a..b484757a7e 100644 --- a/test/built-ins/Promise/race/length.js +++ b/test/built-ins/Promise/race/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.race.length, 1); - -verifyNotEnumerable(Promise.race, 'length'); -verifyNotWritable(Promise.race, 'length'); -verifyConfigurable(Promise.race, 'length'); +verifyProperty(Promise.race, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/race/name.js b/test/built-ins/Promise/race/name.js index 9c374931a4..6f894f06d2 100644 --- a/test/built-ins/Promise/race/name.js +++ b/test/built-ins/Promise/race/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.race.name, 'race'); - -verifyNotEnumerable(Promise.race, 'name'); -verifyNotWritable(Promise.race, 'name'); -verifyConfigurable(Promise.race, 'name'); +verifyProperty(Promise.race, "name", { + value: "race", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/reject-function-length.js b/test/built-ins/Promise/reject-function-length.js index 96bcc748e8..439b06d516 100644 --- a/test/built-ins/Promise/reject-function-length.js +++ b/test/built-ins/Promise/reject-function-length.js @@ -19,8 +19,9 @@ new Promise(function(resolve, reject) { rejectFunction = reject; }); -assert.sameValue(rejectFunction.length, 1); - -verifyNotEnumerable(rejectFunction, "length"); -verifyNotWritable(rejectFunction, "length"); -verifyConfigurable(rejectFunction, "length"); +verifyProperty(rejectFunction, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/reject/length.js b/test/built-ins/Promise/reject/length.js index 098d73f28f..d804df8b19 100644 --- a/test/built-ins/Promise/reject/length.js +++ b/test/built-ins/Promise/reject/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.reject.length, 1); - -verifyNotEnumerable(Promise.reject, 'length'); -verifyNotWritable(Promise.reject, 'length'); -verifyConfigurable(Promise.reject, 'length'); +verifyProperty(Promise.reject, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/reject/name.js b/test/built-ins/Promise/reject/name.js index ab60b167f6..c468c55e95 100644 --- a/test/built-ins/Promise/reject/name.js +++ b/test/built-ins/Promise/reject/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.reject.name, 'reject'); - -verifyNotEnumerable(Promise.reject, 'name'); -verifyNotWritable(Promise.reject, 'name'); -verifyConfigurable(Promise.reject, 'name'); +verifyProperty(Promise.reject, "name", { + value: "reject", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/resolve-function-length.js b/test/built-ins/Promise/resolve-function-length.js index 04cec79d15..ee9214a3d1 100644 --- a/test/built-ins/Promise/resolve-function-length.js +++ b/test/built-ins/Promise/resolve-function-length.js @@ -19,8 +19,9 @@ new Promise(function(resolve, reject) { resolveFunction = resolve; }); -assert.sameValue(resolveFunction.length, 1); - -verifyNotEnumerable(resolveFunction, "length"); -verifyNotWritable(resolveFunction, "length"); -verifyConfigurable(resolveFunction, "length"); +verifyProperty(resolveFunction, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/resolve/length.js b/test/built-ins/Promise/resolve/length.js index 95c361dc7c..048a79d93e 100644 --- a/test/built-ins/Promise/resolve/length.js +++ b/test/built-ins/Promise/resolve/length.js @@ -18,8 +18,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.resolve.length, 1); - -verifyNotEnumerable(Promise.resolve, 'length'); -verifyNotWritable(Promise.resolve, 'length'); -verifyConfigurable(Promise.resolve, 'length'); +verifyProperty(Promise.resolve, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Promise/resolve/name.js b/test/built-ins/Promise/resolve/name.js index 26ac23a608..1841e28bde 100644 --- a/test/built-ins/Promise/resolve/name.js +++ b/test/built-ins/Promise/resolve/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Promise.resolve.name, 'resolve'); - -verifyNotEnumerable(Promise.resolve, 'name'); -verifyNotWritable(Promise.resolve, 'name'); -verifyConfigurable(Promise.resolve, 'name'); +verifyProperty(Promise.resolve, "name", { + value: "resolve", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Proxy/length.js b/test/built-ins/Proxy/length.js index 3f4ca5a95b..1c12550207 100644 --- a/test/built-ins/Proxy/length.js +++ b/test/built-ins/Proxy/length.js @@ -11,8 +11,9 @@ includes: [propertyHelper.js] features: [Proxy] ---*/ -assert.sameValue(Proxy.length, 2, "The value of `Proxy.length` is `2`"); - -verifyNotEnumerable(Proxy, "length"); -verifyNotWritable(Proxy, "length"); -verifyConfigurable(Proxy, "length"); +verifyProperty(Proxy, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Proxy/name.js b/test/built-ins/Proxy/name.js index 14aaeb5851..96aa1ab59f 100644 --- a/test/built-ins/Proxy/name.js +++ b/test/built-ins/Proxy/name.js @@ -11,8 +11,9 @@ includes: [propertyHelper.js] features: [Proxy] ---*/ -assert.sameValue(Proxy.name, "Proxy", "The value of `Proxy.name` is `'Proxy'`"); - -verifyNotEnumerable(Proxy, "name"); -verifyNotWritable(Proxy, "name"); -verifyConfigurable(Proxy, "name"); +verifyProperty(Proxy, "name", { + value: "Proxy", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Proxy/revocable/length.js b/test/built-ins/Proxy/revocable/length.js index 3033b979e7..718a10115a 100644 --- a/test/built-ins/Proxy/revocable/length.js +++ b/test/built-ins/Proxy/revocable/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js] features: [Proxy] ---*/ -assert.sameValue(Proxy.revocable.length, 2); - -verifyNotEnumerable(Proxy.revocable, "length"); -verifyNotWritable(Proxy.revocable, "length"); -verifyConfigurable(Proxy.revocable, "length"); +verifyProperty(Proxy.revocable, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Proxy/revocable/name.js b/test/built-ins/Proxy/revocable/name.js index 5d3c844c24..b39abfd043 100644 --- a/test/built-ins/Proxy/revocable/name.js +++ b/test/built-ins/Proxy/revocable/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js] features: [Proxy] ---*/ -assert.sameValue(Proxy.revocable.name, "revocable"); - -verifyNotEnumerable(Proxy.revocable, "name"); -verifyNotWritable(Proxy.revocable, "name"); -verifyConfigurable(Proxy.revocable, "name"); +verifyProperty(Proxy.revocable, "name", { + value: "revocable", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Proxy/revocable/revocation-function-length.js b/test/built-ins/Proxy/revocable/revocation-function-length.js index 5ef5dbc332..6a489deef4 100644 --- a/test/built-ins/Proxy/revocable/revocation-function-length.js +++ b/test/built-ins/Proxy/revocable/revocation-function-length.js @@ -17,8 +17,9 @@ features: [Proxy] var revocationFunction = Proxy.revocable({}, {}).revoke; -assert.sameValue(revocationFunction.length, 0); - -verifyNotEnumerable(revocationFunction, "length"); -verifyNotWritable(revocationFunction, "length"); -verifyConfigurable(revocationFunction, "length"); +verifyProperty(revocationFunction, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/apply/length.js b/test/built-ins/Reflect/apply/length.js index 8c66edfa96..04895b48ae 100644 --- a/test/built-ins/Reflect/apply/length.js +++ b/test/built-ins/Reflect/apply/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.apply.length, 3, - 'The value of `Reflect.apply.length` is `3`' -); - -verifyNotEnumerable(Reflect.apply, 'length'); -verifyNotWritable(Reflect.apply, 'length'); -verifyConfigurable(Reflect.apply, 'length'); +verifyProperty(Reflect.apply, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/apply/name.js b/test/built-ins/Reflect/apply/name.js index 7d71677f76..164e965c46 100644 --- a/test/built-ins/Reflect/apply/name.js +++ b/test/built-ins/Reflect/apply/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.apply.name, 'apply', - 'The value of `Reflect.apply.name` is `"apply"`' -); - -verifyNotEnumerable(Reflect.apply, 'name'); -verifyNotWritable(Reflect.apply, 'name'); -verifyConfigurable(Reflect.apply, 'name'); +verifyProperty(Reflect.apply, "name", { + value: "apply", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/construct/length.js b/test/built-ins/Reflect/construct/length.js index eec78e35d8..fd97e8c785 100644 --- a/test/built-ins/Reflect/construct/length.js +++ b/test/built-ins/Reflect/construct/length.js @@ -12,11 +12,9 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.construct] ---*/ -assert.sameValue( - Reflect.construct.length, 2, - 'The value of `Reflect.construct.length` is `2`' -); - -verifyNotEnumerable(Reflect.construct, 'length'); -verifyNotWritable(Reflect.construct, 'length'); -verifyConfigurable(Reflect.construct, 'length'); +verifyProperty(Reflect.construct, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/construct/name.js b/test/built-ins/Reflect/construct/name.js index 56b8b7651f..3bad54b369 100644 --- a/test/built-ins/Reflect/construct/name.js +++ b/test/built-ins/Reflect/construct/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.construct] ---*/ -assert.sameValue( - Reflect.construct.name, 'construct', - 'The value of `Reflect.construct.name` is `"construct"`' -); - -verifyNotEnumerable(Reflect.construct, 'name'); -verifyNotWritable(Reflect.construct, 'name'); -verifyConfigurable(Reflect.construct, 'name'); +verifyProperty(Reflect.construct, "name", { + value: "construct", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/defineProperty/length.js b/test/built-ins/Reflect/defineProperty/length.js index e5f137a6d9..3b0cf36d47 100644 --- a/test/built-ins/Reflect/defineProperty/length.js +++ b/test/built-ins/Reflect/defineProperty/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.defineProperty.length, 3, - 'The value of `Reflect.defineProperty.length` is `3`' -); - -verifyNotEnumerable(Reflect.defineProperty, 'length'); -verifyNotWritable(Reflect.defineProperty, 'length'); -verifyConfigurable(Reflect.defineProperty, 'length'); +verifyProperty(Reflect.defineProperty, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/defineProperty/name.js b/test/built-ins/Reflect/defineProperty/name.js index 5979335806..24754c2f06 100644 --- a/test/built-ins/Reflect/defineProperty/name.js +++ b/test/built-ins/Reflect/defineProperty/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.defineProperty.name, 'defineProperty', - 'The value of `Reflect.defineProperty.name` is `"defineProperty"`' -); - -verifyNotEnumerable(Reflect.defineProperty, 'name'); -verifyNotWritable(Reflect.defineProperty, 'name'); -verifyConfigurable(Reflect.defineProperty, 'name'); +verifyProperty(Reflect.defineProperty, "name", { + value: "defineProperty", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/deleteProperty/length.js b/test/built-ins/Reflect/deleteProperty/length.js index 2a0be6e69b..f3b72ae4c3 100644 --- a/test/built-ins/Reflect/deleteProperty/length.js +++ b/test/built-ins/Reflect/deleteProperty/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.deleteProperty.length, 2, - 'The value of `Reflect.deleteProperty.length` is `2`' -); - -verifyNotEnumerable(Reflect.deleteProperty, 'length'); -verifyNotWritable(Reflect.deleteProperty, 'length'); -verifyConfigurable(Reflect.deleteProperty, 'length'); +verifyProperty(Reflect.deleteProperty, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/deleteProperty/name.js b/test/built-ins/Reflect/deleteProperty/name.js index dd8e155802..337f2dc61f 100644 --- a/test/built-ins/Reflect/deleteProperty/name.js +++ b/test/built-ins/Reflect/deleteProperty/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.deleteProperty.name, 'deleteProperty', - 'The value of `Reflect.deleteProperty.name` is `"deleteProperty"`' -); - -verifyNotEnumerable(Reflect.deleteProperty, 'name'); -verifyNotWritable(Reflect.deleteProperty, 'name'); -verifyConfigurable(Reflect.deleteProperty, 'name'); +verifyProperty(Reflect.deleteProperty, "name", { + value: "deleteProperty", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/get/length.js b/test/built-ins/Reflect/get/length.js index 957d0bff80..5902df3019 100644 --- a/test/built-ins/Reflect/get/length.js +++ b/test/built-ins/Reflect/get/length.js @@ -12,11 +12,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.get.length, 2, - 'The value of `Reflect.get.length` is `2`' -); - -verifyNotEnumerable(Reflect.get, 'length'); -verifyNotWritable(Reflect.get, 'length'); -verifyConfigurable(Reflect.get, 'length'); +verifyProperty(Reflect.get, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/get/name.js b/test/built-ins/Reflect/get/name.js index 0913bfdd77..811d875cb9 100644 --- a/test/built-ins/Reflect/get/name.js +++ b/test/built-ins/Reflect/get/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.get.name, 'get', - 'The value of `Reflect.get.name` is `"get"`' -); - -verifyNotEnumerable(Reflect.get, 'name'); -verifyNotWritable(Reflect.get, 'name'); -verifyConfigurable(Reflect.get, 'name'); +verifyProperty(Reflect.get, "name", { + value: "get", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/length.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/length.js index a5eb0a1144..ec78d558d1 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/length.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.getOwnPropertyDescriptor.length, 2, - 'The value of `Reflect.getOwnPropertyDescriptor.length` is `2`' -); - -verifyNotEnumerable(Reflect.getOwnPropertyDescriptor, 'length'); -verifyNotWritable(Reflect.getOwnPropertyDescriptor, 'length'); -verifyConfigurable(Reflect.getOwnPropertyDescriptor, 'length'); +verifyProperty(Reflect.getOwnPropertyDescriptor, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/name.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/name.js index 6d487eeafb..03d111b78d 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/name.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.getOwnPropertyDescriptor.name, 'getOwnPropertyDescriptor', - 'The value of `Reflect.getOwnPropertyDescriptor.name` is `"getOwnPropertyDescriptor"`' -); - -verifyNotEnumerable(Reflect.getOwnPropertyDescriptor, 'name'); -verifyNotWritable(Reflect.getOwnPropertyDescriptor, 'name'); -verifyConfigurable(Reflect.getOwnPropertyDescriptor, 'name'); +verifyProperty(Reflect.getOwnPropertyDescriptor, "name", { + value: "getOwnPropertyDescriptor", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/getPrototypeOf/length.js b/test/built-ins/Reflect/getPrototypeOf/length.js index 2c9335e8ca..e930c71640 100644 --- a/test/built-ins/Reflect/getPrototypeOf/length.js +++ b/test/built-ins/Reflect/getPrototypeOf/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.getPrototypeOf.length, 1, - 'The value of `Reflect.getPrototypeOf.length` is `1`' -); - -verifyNotEnumerable(Reflect.getPrototypeOf, 'length'); -verifyNotWritable(Reflect.getPrototypeOf, 'length'); -verifyConfigurable(Reflect.getPrototypeOf, 'length'); +verifyProperty(Reflect.getPrototypeOf, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/getPrototypeOf/name.js b/test/built-ins/Reflect/getPrototypeOf/name.js index 49c5d033a1..ed81349fc3 100644 --- a/test/built-ins/Reflect/getPrototypeOf/name.js +++ b/test/built-ins/Reflect/getPrototypeOf/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.getPrototypeOf.name, 'getPrototypeOf', - 'The value of `Reflect.getPrototypeOf.name` is `"getPrototypeOf"`' -); - -verifyNotEnumerable(Reflect.getPrototypeOf, 'name'); -verifyNotWritable(Reflect.getPrototypeOf, 'name'); -verifyConfigurable(Reflect.getPrototypeOf, 'name'); +verifyProperty(Reflect.getPrototypeOf, "name", { + value: "getPrototypeOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/has/length.js b/test/built-ins/Reflect/has/length.js index aaa7f74613..290603a67c 100644 --- a/test/built-ins/Reflect/has/length.js +++ b/test/built-ins/Reflect/has/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.has.length, 2, - 'The value of `Reflect.has.length` is `2`' -); - -verifyNotEnumerable(Reflect.has, 'length'); -verifyNotWritable(Reflect.has, 'length'); -verifyConfigurable(Reflect.has, 'length'); +verifyProperty(Reflect.has, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/has/name.js b/test/built-ins/Reflect/has/name.js index c735a600f6..b05e37d8ef 100644 --- a/test/built-ins/Reflect/has/name.js +++ b/test/built-ins/Reflect/has/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.has.name, 'has', - 'The value of `Reflect.has.name` is `"has"`' -); - -verifyNotEnumerable(Reflect.has, 'name'); -verifyNotWritable(Reflect.has, 'name'); -verifyConfigurable(Reflect.has, 'name'); +verifyProperty(Reflect.has, "name", { + value: "has", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/isExtensible/length.js b/test/built-ins/Reflect/isExtensible/length.js index 5b8d6e1e1c..aaaba4964d 100644 --- a/test/built-ins/Reflect/isExtensible/length.js +++ b/test/built-ins/Reflect/isExtensible/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.isExtensible.length, 1, - 'The value of `Reflect.isExtensible.length` is `1`' -); - -verifyNotEnumerable(Reflect.isExtensible, 'length'); -verifyNotWritable(Reflect.isExtensible, 'length'); -verifyConfigurable(Reflect.isExtensible, 'length'); +verifyProperty(Reflect.isExtensible, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/isExtensible/name.js b/test/built-ins/Reflect/isExtensible/name.js index f1d4cf62ae..dbca505c14 100644 --- a/test/built-ins/Reflect/isExtensible/name.js +++ b/test/built-ins/Reflect/isExtensible/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.isExtensible.name, 'isExtensible', - 'The value of `Reflect.isExtensible.name` is `"isExtensible"`' -); - -verifyNotEnumerable(Reflect.isExtensible, 'name'); -verifyNotWritable(Reflect.isExtensible, 'name'); -verifyConfigurable(Reflect.isExtensible, 'name'); +verifyProperty(Reflect.isExtensible, "name", { + value: "isExtensible", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/ownKeys/length.js b/test/built-ins/Reflect/ownKeys/length.js index 51b8877fb0..c269647829 100644 --- a/test/built-ins/Reflect/ownKeys/length.js +++ b/test/built-ins/Reflect/ownKeys/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.ownKeys.length, 1, - 'The value of `Reflect.ownKeys.length` is `1`' -); - -verifyNotEnumerable(Reflect.ownKeys, 'length'); -verifyNotWritable(Reflect.ownKeys, 'length'); -verifyConfigurable(Reflect.ownKeys, 'length'); +verifyProperty(Reflect.ownKeys, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/ownKeys/name.js b/test/built-ins/Reflect/ownKeys/name.js index 0bf2efd66d..8fd178825e 100644 --- a/test/built-ins/Reflect/ownKeys/name.js +++ b/test/built-ins/Reflect/ownKeys/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.ownKeys.name, 'ownKeys', - 'The value of `Reflect.ownKeys.name` is `"ownKeys"`' -); - -verifyNotEnumerable(Reflect.ownKeys, 'name'); -verifyNotWritable(Reflect.ownKeys, 'name'); -verifyConfigurable(Reflect.ownKeys, 'name'); +verifyProperty(Reflect.ownKeys, "name", { + value: "ownKeys", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/preventExtensions/length.js b/test/built-ins/Reflect/preventExtensions/length.js index 6d26c92e85..7c0cf8f35d 100644 --- a/test/built-ins/Reflect/preventExtensions/length.js +++ b/test/built-ins/Reflect/preventExtensions/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.preventExtensions.length, 1, - 'The value of `Reflect.preventExtensions.length` is `1`' -); - -verifyNotEnumerable(Reflect.preventExtensions, 'length'); -verifyNotWritable(Reflect.preventExtensions, 'length'); -verifyConfigurable(Reflect.preventExtensions, 'length'); +verifyProperty(Reflect.preventExtensions, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/preventExtensions/name.js b/test/built-ins/Reflect/preventExtensions/name.js index 2a93f7de95..8c814d51fd 100644 --- a/test/built-ins/Reflect/preventExtensions/name.js +++ b/test/built-ins/Reflect/preventExtensions/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect] ---*/ -assert.sameValue( - Reflect.preventExtensions.name, 'preventExtensions', - 'The value of `Reflect.preventExtensions.name` is `"preventExtensions"`' -); - -verifyNotEnumerable(Reflect.preventExtensions, 'name'); -verifyNotWritable(Reflect.preventExtensions, 'name'); -verifyConfigurable(Reflect.preventExtensions, 'name'); +verifyProperty(Reflect.preventExtensions, "name", { + value: "preventExtensions", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/set/length.js b/test/built-ins/Reflect/set/length.js index 7efa3e4ae7..fe67712bd9 100644 --- a/test/built-ins/Reflect/set/length.js +++ b/test/built-ins/Reflect/set/length.js @@ -12,11 +12,9 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.set] ---*/ -assert.sameValue( - Reflect.set.length, 3, - 'The value of `Reflect.set.length` is `3`' -); - -verifyNotEnumerable(Reflect.set, 'length'); -verifyNotWritable(Reflect.set, 'length'); -verifyConfigurable(Reflect.set, 'length'); +verifyProperty(Reflect.set, "length", { + value: 3, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/set/name.js b/test/built-ins/Reflect/set/name.js index eea8c69399..22fbcdcd01 100644 --- a/test/built-ins/Reflect/set/name.js +++ b/test/built-ins/Reflect/set/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.set] ---*/ -assert.sameValue( - Reflect.set.name, 'set', - 'The value of `Reflect.set.name` is `"set"`' -); - -verifyNotEnumerable(Reflect.set, 'name'); -verifyNotWritable(Reflect.set, 'name'); -verifyConfigurable(Reflect.set, 'name'); +verifyProperty(Reflect.set, "name", { + value: "set", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/setPrototypeOf/length.js b/test/built-ins/Reflect/setPrototypeOf/length.js index d7c2b0ec47..794f2fcbc5 100644 --- a/test/built-ins/Reflect/setPrototypeOf/length.js +++ b/test/built-ins/Reflect/setPrototypeOf/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.setPrototypeOf] ---*/ -assert.sameValue( - Reflect.setPrototypeOf.length, 2, - 'The value of `Reflect.setPrototypeOf.length` is `2`' -); - -verifyNotEnumerable(Reflect.setPrototypeOf, 'length'); -verifyNotWritable(Reflect.setPrototypeOf, 'length'); -verifyConfigurable(Reflect.setPrototypeOf, 'length'); +verifyProperty(Reflect.setPrototypeOf, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Reflect/setPrototypeOf/name.js b/test/built-ins/Reflect/setPrototypeOf/name.js index 6adf018317..b83b671274 100644 --- a/test/built-ins/Reflect/setPrototypeOf/name.js +++ b/test/built-ins/Reflect/setPrototypeOf/name.js @@ -12,11 +12,9 @@ includes: [propertyHelper.js] features: [Reflect, Reflect.setPrototypeOf] ---*/ -assert.sameValue( - Reflect.setPrototypeOf.name, 'setPrototypeOf', - 'The value of `Reflect.setPrototypeOf.name` is `"setPrototypeOf"`' -); - -verifyNotEnumerable(Reflect.setPrototypeOf, 'name'); -verifyNotWritable(Reflect.setPrototypeOf, 'name'); -verifyConfigurable(Reflect.setPrototypeOf, 'name'); +verifyProperty(Reflect.setPrototypeOf, "name", { + value: "setPrototypeOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/Symbol.species/length.js b/test/built-ins/RegExp/Symbol.species/length.js index a89f5ceedc..b0b8d5ac15 100644 --- a/test/built-ins/RegExp/Symbol.species/length.js +++ b/test/built-ins/RegExp/Symbol.species/length.js @@ -25,8 +25,9 @@ features: [Symbol.species] var desc = Object.getOwnPropertyDescriptor(RegExp, Symbol.species); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/Symbol.species/symbol-species-name.js b/test/built-ins/RegExp/Symbol.species/symbol-species-name.js index cb144b948c..aa05f99b1f 100644 --- a/test/built-ins/RegExp/Symbol.species/symbol-species-name.js +++ b/test/built-ins/RegExp/Symbol.species/symbol-species-name.js @@ -15,11 +15,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(RegExp, Symbol.species); -assert.sameValue( - descriptor.get.name, - 'get [Symbol.species]' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get [Symbol.species]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/length.js b/test/built-ins/RegExp/prototype/Symbol.match/length.js index f0a2a5cc66..3452be6449 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/length.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/length.js @@ -19,8 +19,9 @@ includes: [propertyHelper.js] features: [Symbol.match] ---*/ -assert.sameValue(RegExp.prototype[Symbol.match].length, 1); - -verifyNotEnumerable(RegExp.prototype[Symbol.match], 'length'); -verifyNotWritable(RegExp.prototype[Symbol.match], 'length'); -verifyConfigurable(RegExp.prototype[Symbol.match], 'length'); +verifyProperty(RegExp.prototype[Symbol.match], "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/name.js b/test/built-ins/RegExp/prototype/Symbol.match/name.js index d6ef6926cd..2e18b520cd 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/name.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/name.js @@ -17,8 +17,9 @@ includes: [propertyHelper.js] features: [Symbol.match] ---*/ -assert.sameValue(RegExp.prototype[Symbol.match].name, '[Symbol.match]'); - -verifyNotEnumerable(RegExp.prototype[Symbol.match], 'name'); -verifyNotWritable(RegExp.prototype[Symbol.match], 'name'); -verifyConfigurable(RegExp.prototype[Symbol.match], 'name'); +verifyProperty(RegExp.prototype[Symbol.match], "name", { + value: "[Symbol.match]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.matchAll/length.js b/test/built-ins/RegExp/prototype/Symbol.matchAll/length.js index 7aee38c0cb..7edf2306eb 100644 --- a/test/built-ins/RegExp/prototype/Symbol.matchAll/length.js +++ b/test/built-ins/RegExp/prototype/Symbol.matchAll/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js] features: [Symbol.matchAll] ---*/ -assert.sameValue(RegExp.prototype[Symbol.matchAll].length, 1); - -verifyNotEnumerable(RegExp.prototype[Symbol.matchAll], 'length'); -verifyNotWritable(RegExp.prototype[Symbol.matchAll], 'length'); -verifyConfigurable(RegExp.prototype[Symbol.matchAll], 'length'); +verifyProperty(RegExp.prototype[Symbol.matchAll], "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.matchAll/name.js b/test/built-ins/RegExp/prototype/Symbol.matchAll/name.js index b603021642..859219059a 100644 --- a/test/built-ins/RegExp/prototype/Symbol.matchAll/name.js +++ b/test/built-ins/RegExp/prototype/Symbol.matchAll/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [Symbol.matchAll] ---*/ -assert.sameValue(RegExp.prototype[Symbol.matchAll].name, '[Symbol.matchAll]'); - -verifyNotEnumerable(RegExp.prototype[Symbol.matchAll], 'name'); -verifyNotWritable(RegExp.prototype[Symbol.matchAll], 'name'); -verifyConfigurable(RegExp.prototype[Symbol.matchAll], 'name'); +verifyProperty(RegExp.prototype[Symbol.matchAll], "name", { + value: "[Symbol.matchAll]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/length.js b/test/built-ins/RegExp/prototype/Symbol.replace/length.js index 272d1dc7bf..b840213275 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/length.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/length.js @@ -19,8 +19,9 @@ includes: [propertyHelper.js] features: [Symbol.replace] ---*/ -assert.sameValue(RegExp.prototype[Symbol.replace].length, 2); - -verifyNotEnumerable(RegExp.prototype[Symbol.replace], 'length'); -verifyNotWritable(RegExp.prototype[Symbol.replace], 'length'); -verifyConfigurable(RegExp.prototype[Symbol.replace], 'length'); +verifyProperty(RegExp.prototype[Symbol.replace], "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/name.js b/test/built-ins/RegExp/prototype/Symbol.replace/name.js index 2629a552d5..99696b9eb5 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/name.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/name.js @@ -17,8 +17,9 @@ includes: [propertyHelper.js] features: [Symbol.replace] ---*/ -assert.sameValue(RegExp.prototype[Symbol.replace].name, '[Symbol.replace]'); - -verifyNotEnumerable(RegExp.prototype[Symbol.replace], 'name'); -verifyNotWritable(RegExp.prototype[Symbol.replace], 'name'); -verifyConfigurable(RegExp.prototype[Symbol.replace], 'name'); +verifyProperty(RegExp.prototype[Symbol.replace], "name", { + value: "[Symbol.replace]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.search/length.js b/test/built-ins/RegExp/prototype/Symbol.search/length.js index 54e314382b..3996718700 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/length.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/length.js @@ -20,8 +20,9 @@ features: [Symbol.search] includes: [propertyHelper.js] ---*/ -assert.sameValue(RegExp.prototype[Symbol.search].length, 1); - -verifyNotEnumerable(RegExp.prototype[Symbol.search], 'length'); -verifyNotWritable(RegExp.prototype[Symbol.search], 'length'); -verifyConfigurable(RegExp.prototype[Symbol.search], 'length'); +verifyProperty(RegExp.prototype[Symbol.search], "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.search/name.js b/test/built-ins/RegExp/prototype/Symbol.search/name.js index d0f53a12d5..ca2f69ad3c 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/name.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/name.js @@ -17,8 +17,9 @@ features: [Symbol.search] includes: [propertyHelper.js] ---*/ -assert.sameValue(RegExp.prototype[Symbol.search].name, '[Symbol.search]'); - -verifyNotEnumerable(RegExp.prototype[Symbol.search], 'name'); -verifyNotWritable(RegExp.prototype[Symbol.search], 'name'); -verifyConfigurable(RegExp.prototype[Symbol.search], 'name'); +verifyProperty(RegExp.prototype[Symbol.search], "name", { + value: "[Symbol.search]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/length.js b/test/built-ins/RegExp/prototype/Symbol.split/length.js index 483287280d..e320034e3a 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/length.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/length.js @@ -17,8 +17,9 @@ includes: [propertyHelper.js] features: [Symbol.split] ---*/ -assert.sameValue(RegExp.prototype[Symbol.split].length, 2); - -verifyNotEnumerable(RegExp.prototype[Symbol.split], 'length'); -verifyNotWritable(RegExp.prototype[Symbol.split], 'length'); -verifyConfigurable(RegExp.prototype[Symbol.split], 'length'); +verifyProperty(RegExp.prototype[Symbol.split], "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/name.js b/test/built-ins/RegExp/prototype/Symbol.split/name.js index 2f505e7760..c754d335f5 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/name.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/name.js @@ -17,8 +17,9 @@ includes: [propertyHelper.js] features: [Symbol.split] ---*/ -assert.sameValue(RegExp.prototype[Symbol.split].name, '[Symbol.split]'); - -verifyNotEnumerable(RegExp.prototype[Symbol.split], 'name'); -verifyNotWritable(RegExp.prototype[Symbol.split], 'name'); -verifyConfigurable(RegExp.prototype[Symbol.split], 'name'); +verifyProperty(RegExp.prototype[Symbol.split], "name", { + value: "[Symbol.split]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/exec/name.js b/test/built-ins/RegExp/prototype/exec/name.js index d43dc59c46..bdd95eb6a2 100644 --- a/test/built-ins/RegExp/prototype/exec/name.js +++ b/test/built-ins/RegExp/prototype/exec/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(RegExp.prototype.exec.name, "exec"); - -verifyNotEnumerable(RegExp.prototype.exec, "name"); -verifyNotWritable(RegExp.prototype.exec, "name"); -verifyConfigurable(RegExp.prototype.exec, "name"); +verifyProperty(RegExp.prototype.exec, "name", { + value: "exec", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/global/length.js b/test/built-ins/RegExp/prototype/global/length.js index 00986d42fe..39461412c3 100644 --- a/test/built-ins/RegExp/prototype/global/length.js +++ b/test/built-ins/RegExp/prototype/global/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "global"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/global/name.js b/test/built-ins/RegExp/prototype/global/name.js index 13e88d2420..0f8815916e 100644 --- a/test/built-ins/RegExp/prototype/global/name.js +++ b/test/built-ins/RegExp/prototype/global/name.js @@ -14,11 +14,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global'); -assert.sameValue( - descriptor.get.name, - 'get global' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get global", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/ignoreCase/length.js b/test/built-ins/RegExp/prototype/ignoreCase/length.js index 3f61bfbbd5..01c4c473ac 100644 --- a/test/built-ins/RegExp/prototype/ignoreCase/length.js +++ b/test/built-ins/RegExp/prototype/ignoreCase/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/ignoreCase/name.js b/test/built-ins/RegExp/prototype/ignoreCase/name.js index a47066f68e..f777f1f3bb 100644 --- a/test/built-ins/RegExp/prototype/ignoreCase/name.js +++ b/test/built-ins/RegExp/prototype/ignoreCase/name.js @@ -14,11 +14,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(RegExp.prototype, 'ignoreCase'); -assert.sameValue( - descriptor.get.name, - 'get ignoreCase' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get ignoreCase", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/multiline/length.js b/test/built-ins/RegExp/prototype/multiline/length.js index 01f129d5eb..2f4caccad8 100644 --- a/test/built-ins/RegExp/prototype/multiline/length.js +++ b/test/built-ins/RegExp/prototype/multiline/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "multiline"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/multiline/name.js b/test/built-ins/RegExp/prototype/multiline/name.js index 62db16be0f..763b0ab432 100644 --- a/test/built-ins/RegExp/prototype/multiline/name.js +++ b/test/built-ins/RegExp/prototype/multiline/name.js @@ -14,11 +14,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(RegExp.prototype, 'multiline'); -assert.sameValue( - descriptor.get.name, - 'get multiline' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get multiline", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/sticky/length.js b/test/built-ins/RegExp/prototype/sticky/length.js index 7dcb8a833e..644b060f77 100644 --- a/test/built-ins/RegExp/prototype/sticky/length.js +++ b/test/built-ins/RegExp/prototype/sticky/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "sticky"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/sticky/name.js b/test/built-ins/RegExp/prototype/sticky/name.js index 7c271ba056..6769b8b640 100644 --- a/test/built-ins/RegExp/prototype/sticky/name.js +++ b/test/built-ins/RegExp/prototype/sticky/name.js @@ -14,11 +14,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(RegExp.prototype, 'sticky'); -assert.sameValue( - descriptor.get.name, - 'get sticky' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get sticky", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/test/name.js b/test/built-ins/RegExp/prototype/test/name.js index 31ddb29c7a..87859a58fd 100644 --- a/test/built-ins/RegExp/prototype/test/name.js +++ b/test/built-ins/RegExp/prototype/test/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(RegExp.prototype.test.name, "test"); - -verifyNotEnumerable(RegExp.prototype.test, "name"); -verifyNotWritable(RegExp.prototype.test, "name"); -verifyConfigurable(RegExp.prototype.test, "name"); +verifyProperty(RegExp.prototype.test, "name", { + value: "test", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/toString/name.js b/test/built-ins/RegExp/prototype/toString/name.js index a64faa4ae6..9261824422 100644 --- a/test/built-ins/RegExp/prototype/toString/name.js +++ b/test/built-ins/RegExp/prototype/toString/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(RegExp.prototype.toString.name, "toString"); - -verifyNotEnumerable(RegExp.prototype.toString, "name"); -verifyNotWritable(RegExp.prototype.toString, "name"); -verifyConfigurable(RegExp.prototype.toString, "name"); +verifyProperty(RegExp.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/unicode/length.js b/test/built-ins/RegExp/prototype/unicode/length.js index 4276cfcd64..3cb4c3d63c 100644 --- a/test/built-ins/RegExp/prototype/unicode/length.js +++ b/test/built-ins/RegExp/prototype/unicode/length.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] var getter = Object.getOwnPropertyDescriptor(RegExp.prototype, 'unicode').get; -assert.sameValue(getter.length, 0); - -verifyNotEnumerable(getter, 'length'); -verifyNotWritable(getter, 'length'); -verifyConfigurable(getter, 'length'); +verifyProperty(getter, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExp/prototype/unicode/name.js b/test/built-ins/RegExp/prototype/unicode/name.js index a4fb62cc6b..4b9d6af029 100644 --- a/test/built-ins/RegExp/prototype/unicode/name.js +++ b/test/built-ins/RegExp/prototype/unicode/name.js @@ -28,8 +28,9 @@ includes: [propertyHelper.js] var getter = Object.getOwnPropertyDescriptor(RegExp.prototype, 'unicode').get; -assert.sameValue(getter.name, 'get unicode'); - -verifyNotEnumerable(getter, 'name'); -verifyNotWritable(getter, 'name'); -verifyConfigurable(getter, 'name'); +verifyProperty(getter, "name", { + value: "get unicode", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExpStringIteratorPrototype/next/length.js b/test/built-ins/RegExpStringIteratorPrototype/next/length.js index b9ae0f0099..1b0f91e034 100644 --- a/test/built-ins/RegExpStringIteratorPrototype/next/length.js +++ b/test/built-ins/RegExpStringIteratorPrototype/next/length.js @@ -26,8 +26,9 @@ features: [Symbol.matchAll] var RegExpStringIteratorProto = Object.getPrototypeOf(/./[Symbol.matchAll]('')); -assert.sameValue(RegExpStringIteratorProto.next.length, 0); - -verifyNotEnumerable(RegExpStringIteratorProto.next, 'length'); -verifyNotWritable(RegExpStringIteratorProto.next, 'length'); -verifyConfigurable(RegExpStringIteratorProto.next, 'length'); +verifyProperty(RegExpStringIteratorProto.next, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/RegExpStringIteratorPrototype/next/name.js b/test/built-ins/RegExpStringIteratorPrototype/next/name.js index d9f275fbfe..762e013a8d 100644 --- a/test/built-ins/RegExpStringIteratorPrototype/next/name.js +++ b/test/built-ins/RegExpStringIteratorPrototype/next/name.js @@ -24,8 +24,9 @@ features: [Symbol.matchAll] var RegExpStringIteratorProto = Object.getPrototypeOf(/./[Symbol.matchAll]('')); -assert.sameValue(RegExpStringIteratorProto.next.name, 'next'); - -verifyNotEnumerable(RegExpStringIteratorProto.next, 'name'); -verifyNotWritable(RegExpStringIteratorProto.next, 'name'); -verifyConfigurable(RegExpStringIteratorProto.next, 'name'); +verifyProperty(RegExpStringIteratorProto.next, "name", { + value: "next", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/Symbol.species/length.js b/test/built-ins/Set/Symbol.species/length.js index b51de1b0f8..6e14e3fd52 100644 --- a/test/built-ins/Set/Symbol.species/length.js +++ b/test/built-ins/Set/Symbol.species/length.js @@ -25,8 +25,9 @@ features: [Symbol.species] var desc = Object.getOwnPropertyDescriptor(Set, Symbol.species); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/length.js b/test/built-ins/Set/length.js index 312a5a27fb..a5391984d0 100644 --- a/test/built-ins/Set/length.js +++ b/test/built-ins/Set/length.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.length, 0, "The value of `Set.length` is `0`"); - -verifyNotEnumerable(Set, "length"); -verifyNotWritable(Set, "length"); -verifyConfigurable(Set, "length"); +verifyProperty(Set, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/name.js b/test/built-ins/Set/name.js index f044fe9fcb..6db65798ca 100644 --- a/test/built-ins/Set/name.js +++ b/test/built-ins/Set/name.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.name, "Set", "The value of `Set.name` is `'Set'`"); - -verifyNotEnumerable(Set, "name"); -verifyNotWritable(Set, "name"); -verifyConfigurable(Set, "name"); +verifyProperty(Set, "name", { + value: "Set", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/add/length.js b/test/built-ins/Set/prototype/add/length.js index aca4d25270..6b99e9fe47 100644 --- a/test/built-ins/Set/prototype/add/length.js +++ b/test/built-ins/Set/prototype/add/length.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.add.length, 1, "The value of `Set.prototype.add.length` is `1`"); - -verifyNotEnumerable(Set.prototype.add, "length"); -verifyNotWritable(Set.prototype.add, "length"); -verifyConfigurable(Set.prototype.add, "length"); +verifyProperty(Set.prototype.add, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/add/name.js b/test/built-ins/Set/prototype/add/name.js index b926f46a9b..712ff7c2f9 100644 --- a/test/built-ins/Set/prototype/add/name.js +++ b/test/built-ins/Set/prototype/add/name.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.add.name, "add", "The value of `Set.prototype.add.name` is `'add'`"); - -verifyNotEnumerable(Set.prototype.add, "name"); -verifyNotWritable(Set.prototype.add, "name"); -verifyConfigurable(Set.prototype.add, "name"); +verifyProperty(Set.prototype.add, "name", { + value: "add", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/clear/length.js b/test/built-ins/Set/prototype/clear/length.js index 49f7e70650..4ce3bef157 100644 --- a/test/built-ins/Set/prototype/clear/length.js +++ b/test/built-ins/Set/prototype/clear/length.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.clear.length, 0, "The value of `Set.prototype.clear.length` is `0`"); - -verifyNotEnumerable(Set.prototype.clear, "length"); -verifyNotWritable(Set.prototype.clear, "length"); -verifyConfigurable(Set.prototype.clear, "length"); +verifyProperty(Set.prototype.clear, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/clear/name.js b/test/built-ins/Set/prototype/clear/name.js index f22f8a5d84..d5edcfa1c4 100644 --- a/test/built-ins/Set/prototype/clear/name.js +++ b/test/built-ins/Set/prototype/clear/name.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.clear.name, "clear", "The value of `Set.prototype.clear.name` is `'clear'`"); - -verifyNotEnumerable(Set.prototype.clear, "name"); -verifyNotWritable(Set.prototype.clear, "name"); -verifyConfigurable(Set.prototype.clear, "name"); +verifyProperty(Set.prototype.clear, "name", { + value: "clear", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/delete/length.js b/test/built-ins/Set/prototype/delete/length.js index a9b0008902..a335b8ae32 100644 --- a/test/built-ins/Set/prototype/delete/length.js +++ b/test/built-ins/Set/prototype/delete/length.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.delete.length, 1, "The value of `Set.prototype.delete.length` is `1`"); - -verifyNotEnumerable(Set.prototype.delete, "length"); -verifyNotWritable(Set.prototype.delete, "length"); -verifyConfigurable(Set.prototype.delete, "length"); +verifyProperty(Set.prototype.delete, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/delete/name.js b/test/built-ins/Set/prototype/delete/name.js index 4d9fc1dc58..8a45469408 100644 --- a/test/built-ins/Set/prototype/delete/name.js +++ b/test/built-ins/Set/prototype/delete/name.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.delete.name, "delete", "The value of `Set.prototype.delete.name` is `'delete'`"); - -verifyNotEnumerable(Set.prototype.delete, "name"); -verifyNotWritable(Set.prototype.delete, "name"); -verifyConfigurable(Set.prototype.delete, "name"); +verifyProperty(Set.prototype.delete, "name", { + value: "delete", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/entries/length.js b/test/built-ins/Set/prototype/entries/length.js index 2dc1c47ea6..8df4fedc5c 100644 --- a/test/built-ins/Set/prototype/entries/length.js +++ b/test/built-ins/Set/prototype/entries/length.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.entries.length, 0, "The value of `Set.prototype.entries.length` is `0`"); - -verifyNotEnumerable(Set.prototype.entries, "length"); -verifyNotWritable(Set.prototype.entries, "length"); -verifyConfigurable(Set.prototype.entries, "length"); +verifyProperty(Set.prototype.entries, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/entries/name.js b/test/built-ins/Set/prototype/entries/name.js index b03ff21ed1..005dd347a2 100644 --- a/test/built-ins/Set/prototype/entries/name.js +++ b/test/built-ins/Set/prototype/entries/name.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.entries.name, "entries", "The value of `Set.prototype.entries.name` is `'entries'`"); - -verifyNotEnumerable(Set.prototype.entries, "name"); -verifyNotWritable(Set.prototype.entries, "name"); -verifyConfigurable(Set.prototype.entries, "name"); +verifyProperty(Set.prototype.entries, "name", { + value: "entries", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/forEach/length.js b/test/built-ins/Set/prototype/forEach/length.js index 4f525e3564..a0692f9a68 100644 --- a/test/built-ins/Set/prototype/forEach/length.js +++ b/test/built-ins/Set/prototype/forEach/length.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.forEach.length, 1, "The value of `Set.prototype.forEach.length` is `1`"); - -verifyNotEnumerable(Set.prototype.forEach, "length"); -verifyNotWritable(Set.prototype.forEach, "length"); -verifyConfigurable(Set.prototype.forEach, "length"); +verifyProperty(Set.prototype.forEach, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/forEach/name.js b/test/built-ins/Set/prototype/forEach/name.js index dd547d8cda..307eab32e4 100644 --- a/test/built-ins/Set/prototype/forEach/name.js +++ b/test/built-ins/Set/prototype/forEach/name.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.forEach.name, "forEach", "The value of `Set.prototype.forEach.name` is `'forEach'`"); - -verifyNotEnumerable(Set.prototype.forEach, "name"); -verifyNotWritable(Set.prototype.forEach, "name"); -verifyConfigurable(Set.prototype.forEach, "name"); +verifyProperty(Set.prototype.forEach, "name", { + value: "forEach", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/has/length.js b/test/built-ins/Set/prototype/has/length.js index 48f7495155..d7635a6d3a 100644 --- a/test/built-ins/Set/prototype/has/length.js +++ b/test/built-ins/Set/prototype/has/length.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.has.length, 1, "The value of `Set.prototype.has.length` is `1`"); - -verifyNotEnumerable(Set.prototype.has, "length"); -verifyNotWritable(Set.prototype.has, "length"); -verifyConfigurable(Set.prototype.has, "length"); +verifyProperty(Set.prototype.has, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/has/name.js b/test/built-ins/Set/prototype/has/name.js index c6a5412edc..e43e644e63 100644 --- a/test/built-ins/Set/prototype/has/name.js +++ b/test/built-ins/Set/prototype/has/name.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.has.name, "has", "The value of `Set.prototype.has.name` is `'has'`"); - -verifyNotEnumerable(Set.prototype.has, "name"); -verifyNotWritable(Set.prototype.has, "name"); -verifyConfigurable(Set.prototype.has, "name"); +verifyProperty(Set.prototype.has, "name", { + value: "has", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/size/length.js b/test/built-ins/Set/prototype/size/length.js index aeadc6bd17..6b92372dea 100644 --- a/test/built-ins/Set/prototype/size/length.js +++ b/test/built-ins/Set/prototype/size/length.js @@ -13,8 +13,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(Set.prototype, "size"); -assert.sameValue(descriptor.get.length, 0, "The value of `Set.prototype.size.length` is `0`"); - -verifyNotEnumerable(descriptor.get, "length"); -verifyNotWritable(descriptor.get, "length"); -verifyConfigurable(descriptor.get, "length"); +verifyProperty(descriptor.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/size/name.js b/test/built-ins/Set/prototype/size/name.js index ced76d3189..1f9d46c948 100644 --- a/test/built-ins/Set/prototype/size/name.js +++ b/test/built-ins/Set/prototype/size/name.js @@ -16,8 +16,9 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(Set.prototype, "size"); -assert.sameValue(descriptor.get.name, "get size", "The value of `descriptor.get.name` is `'get size'`"); - -verifyNotEnumerable(descriptor.get, "name"); -verifyNotWritable(descriptor.get, "name"); -verifyConfigurable(descriptor.get, "name"); +verifyProperty(descriptor.get, "name", { + value: "get size", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/values/length.js b/test/built-ins/Set/prototype/values/length.js index 3d89d09f32..d7f800fc29 100644 --- a/test/built-ins/Set/prototype/values/length.js +++ b/test/built-ins/Set/prototype/values/length.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.values.length, 0, "The value of `Set.prototype.values.length` is `0`"); - -verifyNotEnumerable(Set.prototype.values, "length"); -verifyNotWritable(Set.prototype.values, "length"); -verifyConfigurable(Set.prototype.values, "length"); +verifyProperty(Set.prototype.values, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Set/prototype/values/name.js b/test/built-ins/Set/prototype/values/name.js index e0cc04bda4..b3dc1cfa78 100644 --- a/test/built-ins/Set/prototype/values/name.js +++ b/test/built-ins/Set/prototype/values/name.js @@ -10,8 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(Set.prototype.values.name, "values", "The value of `Set.prototype.values.name` is `'values'`"); - -verifyNotEnumerable(Set.prototype.values, "name"); -verifyNotWritable(Set.prototype.values, "name"); -verifyConfigurable(Set.prototype.values, "name"); +verifyProperty(Set.prototype.values, "name", { + value: "values", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/SetIteratorPrototype/next/length.js b/test/built-ins/SetIteratorPrototype/next/length.js index 94b0c9c0b6..542304b457 100644 --- a/test/built-ins/SetIteratorPrototype/next/length.js +++ b/test/built-ins/SetIteratorPrototype/next/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js] var SetIteratorProto = Object.getPrototypeOf(new Set().values()); -assert.sameValue(SetIteratorProto.next.length, 0); - -verifyNotEnumerable(SetIteratorProto.next, "length"); -verifyNotWritable(SetIteratorProto.next, "length"); -verifyConfigurable(SetIteratorProto.next, "length"); +verifyProperty(SetIteratorProto.next, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/SetIteratorPrototype/next/name.js b/test/built-ins/SetIteratorPrototype/next/name.js index 27fe463fa2..41e8e95a2d 100644 --- a/test/built-ins/SetIteratorPrototype/next/name.js +++ b/test/built-ins/SetIteratorPrototype/next/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] var SetIteratorProto = Object.getPrototypeOf(new Set().values()); -assert.sameValue(SetIteratorProto.next.name, "next"); - -verifyNotEnumerable(SetIteratorProto.next, "name"); -verifyNotWritable(SetIteratorProto.next, "name"); -verifyConfigurable(SetIteratorProto.next, "name"); +verifyProperty(SetIteratorProto.next, "name", { + value: "next", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/SharedArrayBuffer/prototype/byteLength/length.js b/test/built-ins/SharedArrayBuffer/prototype/byteLength/length.js index bb469e9394..94cb2a8bb2 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/byteLength/length.js +++ b/test/built-ins/SharedArrayBuffer/prototype/byteLength/length.js @@ -11,8 +11,9 @@ features: [SharedArrayBuffer] var desc = Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "byteLength"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/SharedArrayBuffer/prototype/byteLength/name.js b/test/built-ins/SharedArrayBuffer/prototype/byteLength/name.js index 307c495871..5c4b87b17e 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/byteLength/name.js +++ b/test/built-ins/SharedArrayBuffer/prototype/byteLength/name.js @@ -13,11 +13,9 @@ var descriptor = Object.getOwnPropertyDescriptor( SharedArrayBuffer.prototype, 'byteLength' ); -assert.sameValue( - descriptor.get.name, 'get byteLength', - 'The value of `descriptor.get.name` is `"get byteLength"`' -); - -verifyNotEnumerable(descriptor.get, 'name'); -verifyNotWritable(descriptor.get, 'name'); -verifyConfigurable(descriptor.get, 'name'); +verifyProperty(descriptor.get, "name", { + value: "get byteLength", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/length.js b/test/built-ins/SharedArrayBuffer/prototype/slice/length.js index 54c521e7b4..6363facd7f 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/length.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js] features: [SharedArrayBuffer] ---*/ -assert.sameValue(SharedArrayBuffer.prototype.slice.length, 2); - -verifyNotEnumerable(SharedArrayBuffer.prototype.slice, "length"); -verifyNotWritable(SharedArrayBuffer.prototype.slice, "length"); -verifyConfigurable(SharedArrayBuffer.prototype.slice, "length"); +verifyProperty(SharedArrayBuffer.prototype.slice, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/name.js b/test/built-ins/SharedArrayBuffer/prototype/slice/name.js index 88928a0163..ee0d0d0df7 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/name.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js] features: [SharedArrayBuffer] ---*/ -assert.sameValue(SharedArrayBuffer.prototype.slice.name, "slice"); - -verifyNotEnumerable(SharedArrayBuffer.prototype.slice, "name"); -verifyNotWritable(SharedArrayBuffer.prototype.slice, "name"); -verifyConfigurable(SharedArrayBuffer.prototype.slice, "name"); +verifyProperty(SharedArrayBuffer.prototype.slice, "name", { + value: "slice", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/fromCharCode/name.js b/test/built-ins/String/fromCharCode/name.js index ac5f38c54e..00d437a758 100644 --- a/test/built-ins/String/fromCharCode/name.js +++ b/test/built-ins/String/fromCharCode/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.fromCharCode.name, "fromCharCode"); - -verifyNotEnumerable(String.fromCharCode, "name"); -verifyNotWritable(String.fromCharCode, "name"); -verifyConfigurable(String.fromCharCode, "name"); +verifyProperty(String.fromCharCode, "name", { + value: "fromCharCode", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/fromCodePoint/length.js b/test/built-ins/String/fromCodePoint/length.js index 28a154c4d6..0acb820333 100644 --- a/test/built-ins/String/fromCodePoint/length.js +++ b/test/built-ins/String/fromCodePoint/length.js @@ -8,11 +8,9 @@ includes: [propertyHelper.js] features: [String.fromCodePoint] ---*/ -assert.sameValue( - String.fromCodePoint.length, 1, - 'The value of `String.fromCodePoint.length` is `1`' -); - -verifyNotEnumerable(String.fromCodePoint, 'length'); -verifyNotWritable(String.fromCodePoint, 'length'); -verifyConfigurable(String.fromCodePoint, 'length'); +verifyProperty(String.fromCodePoint, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/fromCodePoint/name.js b/test/built-ins/String/fromCodePoint/name.js index be0f98a800..6d82a67884 100644 --- a/test/built-ins/String/fromCodePoint/name.js +++ b/test/built-ins/String/fromCodePoint/name.js @@ -12,11 +12,9 @@ includes: [propertyHelper.js] features: [String.fromCodePoint] ---*/ -assert.sameValue( - String.fromCodePoint.name, 'fromCodePoint', - 'The value of `String.fromCodePoint.name` is "fromCodePoint"' -); - -verifyNotEnumerable(String.fromCodePoint, 'name'); -verifyNotWritable(String.fromCodePoint, 'name'); -verifyConfigurable(String.fromCodePoint, 'name'); +verifyProperty(String.fromCodePoint, "name", { + value: "fromCodePoint", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/Symbol.iterator/length.js b/test/built-ins/String/prototype/Symbol.iterator/length.js index 7dfe2774f9..9bdc4da1d9 100644 --- a/test/built-ins/String/prototype/Symbol.iterator/length.js +++ b/test/built-ins/String/prototype/Symbol.iterator/length.js @@ -19,8 +19,9 @@ features: [Symbol.iterator] includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype[Symbol.iterator].length, 0); - -verifyNotEnumerable(String.prototype[Symbol.iterator], 'length'); -verifyNotWritable(String.prototype[Symbol.iterator], 'length'); -verifyConfigurable(String.prototype[Symbol.iterator], 'length'); +verifyProperty(String.prototype[Symbol.iterator], "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/Symbol.iterator/name.js b/test/built-ins/String/prototype/Symbol.iterator/name.js index c07a90f926..67b4291fff 100644 --- a/test/built-ins/String/prototype/Symbol.iterator/name.js +++ b/test/built-ins/String/prototype/Symbol.iterator/name.js @@ -22,8 +22,9 @@ features: [Symbol.iterator] includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype[Symbol.iterator].name, '[Symbol.iterator]'); - -verifyNotEnumerable(String.prototype[Symbol.iterator], 'name'); -verifyNotWritable(String.prototype[Symbol.iterator], 'name'); -verifyConfigurable(String.prototype[Symbol.iterator], 'name'); +verifyProperty(String.prototype[Symbol.iterator], "name", { + value: "[Symbol.iterator]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/at/length.js b/test/built-ins/String/prototype/at/length.js index ff5029ed5f..2a0e3ab311 100644 --- a/test/built-ins/String/prototype/at/length.js +++ b/test/built-ins/String/prototype/at/length.js @@ -14,11 +14,9 @@ features: [String.prototype.at] ---*/ assert.sameValue(typeof String.prototype.at, 'function'); -assert.sameValue( - String.prototype.at.length, 1, - 'The value of String.prototype.at.length is 1' -); - -verifyNotEnumerable(String.prototype.at, 'length'); -verifyNotWritable(String.prototype.at, 'length'); -verifyConfigurable(String.prototype.at, 'length'); +verifyProperty(String.prototype.at, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/charAt/name.js b/test/built-ins/String/prototype/charAt/name.js index 61df98148d..605bc56a96 100644 --- a/test/built-ins/String/prototype/charAt/name.js +++ b/test/built-ins/String/prototype/charAt/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.charAt.name, "charAt"); - -verifyNotEnumerable(String.prototype.charAt, "name"); -verifyNotWritable(String.prototype.charAt, "name"); -verifyConfigurable(String.prototype.charAt, "name"); +verifyProperty(String.prototype.charAt, "name", { + value: "charAt", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/charCodeAt/name.js b/test/built-ins/String/prototype/charCodeAt/name.js index 054b152d84..f9da2d6d86 100644 --- a/test/built-ins/String/prototype/charCodeAt/name.js +++ b/test/built-ins/String/prototype/charCodeAt/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.charCodeAt.name, "charCodeAt"); - -verifyNotEnumerable(String.prototype.charCodeAt, "name"); -verifyNotWritable(String.prototype.charCodeAt, "name"); -verifyConfigurable(String.prototype.charCodeAt, "name"); +verifyProperty(String.prototype.charCodeAt, "name", { + value: "charCodeAt", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/codePointAt/length.js b/test/built-ins/String/prototype/codePointAt/length.js index 5f8b7b3645..e2bedc7598 100644 --- a/test/built-ins/String/prototype/codePointAt/length.js +++ b/test/built-ins/String/prototype/codePointAt/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.codePointAt.length, 1, - 'The value of `String.prototype.codePointAt.length` is `1`' -); - -verifyNotEnumerable(String.prototype.codePointAt, 'length'); -verifyNotWritable(String.prototype.codePointAt, 'length'); -verifyConfigurable(String.prototype.codePointAt, 'length'); +verifyProperty(String.prototype.codePointAt, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/codePointAt/name.js b/test/built-ins/String/prototype/codePointAt/name.js index 79b4e237a6..da9f7fed76 100644 --- a/test/built-ins/String/prototype/codePointAt/name.js +++ b/test/built-ins/String/prototype/codePointAt/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.codePointAt.name, 'codePointAt', - 'The value of `String.prototype.codePointAt.name` is `"codePointAt"`' -); - -verifyNotEnumerable(String.prototype.codePointAt, 'name'); -verifyNotWritable(String.prototype.codePointAt, 'name'); -verifyConfigurable(String.prototype.codePointAt, 'name'); +verifyProperty(String.prototype.codePointAt, "name", { + value: "codePointAt", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/concat/name.js b/test/built-ins/String/prototype/concat/name.js index a85996d90d..d98d6a3398 100644 --- a/test/built-ins/String/prototype/concat/name.js +++ b/test/built-ins/String/prototype/concat/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.concat.name, "concat"); - -verifyNotEnumerable(String.prototype.concat, "name"); -verifyNotWritable(String.prototype.concat, "name"); -verifyConfigurable(String.prototype.concat, "name"); +verifyProperty(String.prototype.concat, "name", { + value: "concat", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/endsWith/length.js b/test/built-ins/String/prototype/endsWith/length.js index 2ff907603a..ca3970b5e0 100644 --- a/test/built-ins/String/prototype/endsWith/length.js +++ b/test/built-ins/String/prototype/endsWith/length.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [String.prototype.endsWith] ---*/ -assert.sameValue( - String.prototype.endsWith.length, 1, - 'The value of `String.prototype.endsWith.length` is `1`' -); - -verifyNotEnumerable(String.prototype.endsWith, 'length'); -verifyNotWritable(String.prototype.endsWith, 'length'); -verifyConfigurable(String.prototype.endsWith, 'length'); +verifyProperty(String.prototype.endsWith, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/endsWith/name.js b/test/built-ins/String/prototype/endsWith/name.js index 1e5f7b407b..d847e9e512 100644 --- a/test/built-ins/String/prototype/endsWith/name.js +++ b/test/built-ins/String/prototype/endsWith/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [String.prototype.endsWith] ---*/ -assert.sameValue( - String.prototype.endsWith.name, 'endsWith', - 'The value of `String.prototype.endsWith.name` is `"endsWith"`' -); - -verifyNotEnumerable(String.prototype.endsWith, 'name'); -verifyNotWritable(String.prototype.endsWith, 'name'); -verifyConfigurable(String.prototype.endsWith, 'name'); +verifyProperty(String.prototype.endsWith, "name", { + value: "endsWith", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/includes/length.js b/test/built-ins/String/prototype/includes/length.js index 1aa4b40952..c2b4cb34df 100644 --- a/test/built-ins/String/prototype/includes/length.js +++ b/test/built-ins/String/prototype/includes/length.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [String.prototype.includes] ---*/ -assert.sameValue( - String.prototype.includes.length, 1, - 'The value of `String.prototype.includes.length` is `1`' -); - -verifyNotEnumerable(String.prototype.includes, 'length'); -verifyNotWritable(String.prototype.includes, 'length'); -verifyConfigurable(String.prototype.includes, 'length'); +verifyProperty(String.prototype.includes, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/includes/name.js b/test/built-ins/String/prototype/includes/name.js index 73bca903c6..069c0db1fb 100644 --- a/test/built-ins/String/prototype/includes/name.js +++ b/test/built-ins/String/prototype/includes/name.js @@ -13,11 +13,9 @@ includes: [propertyHelper.js] features: [String.prototype.includes] ---*/ -assert.sameValue( - String.prototype.includes.name, 'includes', - 'The value of `String.prototype.includes.name` is `"includes"`' -); - -verifyNotEnumerable(String.prototype.includes, 'name'); -verifyNotWritable(String.prototype.includes, 'name'); -verifyConfigurable(String.prototype.includes, 'name'); +verifyProperty(String.prototype.includes, "name", { + value: "includes", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/indexOf/name.js b/test/built-ins/String/prototype/indexOf/name.js index 6a0705c14b..689ee03e0b 100644 --- a/test/built-ins/String/prototype/indexOf/name.js +++ b/test/built-ins/String/prototype/indexOf/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.indexOf.name, "indexOf"); - -verifyNotEnumerable(String.prototype.indexOf, "name"); -verifyNotWritable(String.prototype.indexOf, "name"); -verifyConfigurable(String.prototype.indexOf, "name"); +verifyProperty(String.prototype.indexOf, "name", { + value: "indexOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/lastIndexOf/name.js b/test/built-ins/String/prototype/lastIndexOf/name.js index b77010cc83..1745800c08 100644 --- a/test/built-ins/String/prototype/lastIndexOf/name.js +++ b/test/built-ins/String/prototype/lastIndexOf/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.lastIndexOf.name, "lastIndexOf"); - -verifyNotEnumerable(String.prototype.lastIndexOf, "name"); -verifyNotWritable(String.prototype.lastIndexOf, "name"); -verifyConfigurable(String.prototype.lastIndexOf, "name"); +verifyProperty(String.prototype.lastIndexOf, "name", { + value: "lastIndexOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/localeCompare/name.js b/test/built-ins/String/prototype/localeCompare/name.js index 6c1c69bd5c..42621fa0b5 100644 --- a/test/built-ins/String/prototype/localeCompare/name.js +++ b/test/built-ins/String/prototype/localeCompare/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.localeCompare.name, "localeCompare"); - -verifyNotEnumerable(String.prototype.localeCompare, "name"); -verifyNotWritable(String.prototype.localeCompare, "name"); -verifyConfigurable(String.prototype.localeCompare, "name"); +verifyProperty(String.prototype.localeCompare, "name", { + value: "localeCompare", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/match/name.js b/test/built-ins/String/prototype/match/name.js index 845638656f..79c1855c7c 100644 --- a/test/built-ins/String/prototype/match/name.js +++ b/test/built-ins/String/prototype/match/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.match.name, "match"); - -verifyNotEnumerable(String.prototype.match, "name"); -verifyNotWritable(String.prototype.match, "name"); -verifyConfigurable(String.prototype.match, "name"); +verifyProperty(String.prototype.match, "name", { + value: "match", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/matchAll/length.js b/test/built-ins/String/prototype/matchAll/length.js index 101d8bbf2e..4a969807c4 100644 --- a/test/built-ins/String/prototype/matchAll/length.js +++ b/test/built-ins/String/prototype/matchAll/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js] features: [String.prototype.matchAll] ---*/ -assert.sameValue(String.prototype.matchAll.length, 1); - -verifyNotEnumerable(String.prototype.matchAll, 'length'); -verifyNotWritable(String.prototype.matchAll, 'length'); -verifyConfigurable(String.prototype.matchAll, 'length'); +verifyProperty(String.prototype.matchAll, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/matchAll/name.js b/test/built-ins/String/prototype/matchAll/name.js index cef87994c1..ca5d97bf03 100644 --- a/test/built-ins/String/prototype/matchAll/name.js +++ b/test/built-ins/String/prototype/matchAll/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [String.prototype.matchAll] ---*/ -assert.sameValue(String.prototype.matchAll.name, 'matchAll'); - -verifyNotEnumerable(String.prototype.matchAll, 'name'); -verifyNotWritable(String.prototype.matchAll, 'name'); -verifyConfigurable(String.prototype.matchAll, 'name'); +verifyProperty(String.prototype.matchAll, "name", { + value: "matchAll", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/normalize/length.js b/test/built-ins/String/prototype/normalize/length.js index a356ba5f53..f819813566 100644 --- a/test/built-ins/String/prototype/normalize/length.js +++ b/test/built-ins/String/prototype/normalize/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.normalize.length, 0, - 'The value of `String.prototype.normalize.length` is `0`' -); - -verifyNotEnumerable(String.prototype.normalize, 'length'); -verifyNotWritable(String.prototype.normalize, 'length'); -verifyConfigurable(String.prototype.normalize, 'length'); +verifyProperty(String.prototype.normalize, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/normalize/name.js b/test/built-ins/String/prototype/normalize/name.js index 309aa91d09..af8f877c64 100644 --- a/test/built-ins/String/prototype/normalize/name.js +++ b/test/built-ins/String/prototype/normalize/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.normalize.name, 'normalize', - 'The value of `String.prototype.normalize.name` is `"normalize"`' -); - -verifyNotEnumerable(String.prototype.normalize, 'name'); -verifyNotWritable(String.prototype.normalize, 'name'); -verifyConfigurable(String.prototype.normalize, 'name'); +verifyProperty(String.prototype.normalize, "name", { + value: "normalize", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/padEnd/function-length.js b/test/built-ins/String/prototype/padEnd/function-length.js index 37ea2a27e9..97188e59c7 100644 --- a/test/built-ins/String/prototype/padEnd/function-length.js +++ b/test/built-ins/String/prototype/padEnd/function-length.js @@ -8,8 +8,9 @@ author: Jordan Harband includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.padEnd.length, 1, 'Expected String#padEnd.length to be 1'); - -verifyNotEnumerable(String.prototype.padEnd, 'length'); -verifyNotWritable(String.prototype.padEnd, 'length'); -verifyConfigurable(String.prototype.padEnd, 'length'); +verifyProperty(String.prototype.padEnd, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/padEnd/function-name.js b/test/built-ins/String/prototype/padEnd/function-name.js index d37b167d96..2cf3e0758a 100644 --- a/test/built-ins/String/prototype/padEnd/function-name.js +++ b/test/built-ins/String/prototype/padEnd/function-name.js @@ -8,12 +8,9 @@ author: Jordan Harband includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.padEnd.name, - 'padEnd', - 'Expected String#padEnd.name to be "padEnd"' -); - -verifyNotEnumerable(String.prototype.padEnd, 'name'); -verifyNotWritable(String.prototype.padEnd, 'name'); -verifyConfigurable(String.prototype.padEnd, 'name'); +verifyProperty(String.prototype.padEnd, "name", { + value: "padEnd", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/padStart/function-length.js b/test/built-ins/String/prototype/padStart/function-length.js index a096add5ed..94927e9400 100644 --- a/test/built-ins/String/prototype/padStart/function-length.js +++ b/test/built-ins/String/prototype/padStart/function-length.js @@ -8,8 +8,9 @@ author: Jordan Harband includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.padStart.length, 1, 'Expected String#padStart.length to be 1'); - -verifyNotEnumerable(String.prototype.padStart, 'length'); -verifyNotWritable(String.prototype.padStart, 'length'); -verifyConfigurable(String.prototype.padStart, 'length'); +verifyProperty(String.prototype.padStart, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/padStart/function-name.js b/test/built-ins/String/prototype/padStart/function-name.js index 824978a804..25df490bd4 100644 --- a/test/built-ins/String/prototype/padStart/function-name.js +++ b/test/built-ins/String/prototype/padStart/function-name.js @@ -8,12 +8,9 @@ author: Jordan Harband includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.padStart.name, - 'padStart', - 'Expected String#padStart.name to be "padStart"' -); - -verifyNotEnumerable(String.prototype.padStart, 'name'); -verifyNotWritable(String.prototype.padStart, 'name'); -verifyConfigurable(String.prototype.padStart, 'name'); +verifyProperty(String.prototype.padStart, "name", { + value: "padStart", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/repeat/length.js b/test/built-ins/String/prototype/repeat/length.js index 8d757930f7..3fa83dbf40 100644 --- a/test/built-ins/String/prototype/repeat/length.js +++ b/test/built-ins/String/prototype/repeat/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.repeat.length, 1, - 'The value of `String.prototype.repeat.length` is `1`' -); - -verifyNotEnumerable(String.prototype.repeat, 'length'); -verifyNotWritable(String.prototype.repeat, 'length'); -verifyConfigurable(String.prototype.repeat, 'length'); +verifyProperty(String.prototype.repeat, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/repeat/name.js b/test/built-ins/String/prototype/repeat/name.js index 08ebab09d8..92924228db 100644 --- a/test/built-ins/String/prototype/repeat/name.js +++ b/test/built-ins/String/prototype/repeat/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.repeat.name, 'repeat', - 'The value of `String.prototype.repeat.name` is `"repeat"`' -); - -verifyNotEnumerable(String.prototype.repeat, 'name'); -verifyNotWritable(String.prototype.repeat, 'name'); -verifyConfigurable(String.prototype.repeat, 'name'); +verifyProperty(String.prototype.repeat, "name", { + value: "repeat", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/replace/name.js b/test/built-ins/String/prototype/replace/name.js index 99e9852bbf..cce8f6ea39 100644 --- a/test/built-ins/String/prototype/replace/name.js +++ b/test/built-ins/String/prototype/replace/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.replace.name, "replace"); - -verifyNotEnumerable(String.prototype.replace, "name"); -verifyNotWritable(String.prototype.replace, "name"); -verifyConfigurable(String.prototype.replace, "name"); +verifyProperty(String.prototype.replace, "name", { + value: "replace", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/search/name.js b/test/built-ins/String/prototype/search/name.js index d22dfbad7b..88a42ddc87 100644 --- a/test/built-ins/String/prototype/search/name.js +++ b/test/built-ins/String/prototype/search/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.search.name, "search"); - -verifyNotEnumerable(String.prototype.search, "name"); -verifyNotWritable(String.prototype.search, "name"); -verifyConfigurable(String.prototype.search, "name"); +verifyProperty(String.prototype.search, "name", { + value: "search", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/slice/name.js b/test/built-ins/String/prototype/slice/name.js index 19ecea0cf7..934c3d1690 100644 --- a/test/built-ins/String/prototype/slice/name.js +++ b/test/built-ins/String/prototype/slice/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.slice.name, "slice"); - -verifyNotEnumerable(String.prototype.slice, "name"); -verifyNotWritable(String.prototype.slice, "name"); -verifyConfigurable(String.prototype.slice, "name"); +verifyProperty(String.prototype.slice, "name", { + value: "slice", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/split/name.js b/test/built-ins/String/prototype/split/name.js index c4015329c2..8be55fbce6 100644 --- a/test/built-ins/String/prototype/split/name.js +++ b/test/built-ins/String/prototype/split/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.split.name, "split"); - -verifyNotEnumerable(String.prototype.split, "name"); -verifyNotWritable(String.prototype.split, "name"); -verifyConfigurable(String.prototype.split, "name"); +verifyProperty(String.prototype.split, "name", { + value: "split", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/startsWith/length.js b/test/built-ins/String/prototype/startsWith/length.js index f81bccb4f5..4e6542f946 100644 --- a/test/built-ins/String/prototype/startsWith/length.js +++ b/test/built-ins/String/prototype/startsWith/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.startsWith.length, 1, - 'The value of `String.prototype.startsWith.length` is `1`' -); - -verifyNotEnumerable(String.prototype.startsWith, 'length'); -verifyNotWritable(String.prototype.startsWith, 'length'); -verifyConfigurable(String.prototype.startsWith, 'length'); +verifyProperty(String.prototype.startsWith, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/startsWith/name.js b/test/built-ins/String/prototype/startsWith/name.js index 4003a07fd5..b525e68a83 100644 --- a/test/built-ins/String/prototype/startsWith/name.js +++ b/test/built-ins/String/prototype/startsWith/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.prototype.startsWith.name, 'startsWith', - 'The value of `String.prototype.startsWith.name` is `"startsWith"`' -); - -verifyNotEnumerable(String.prototype.startsWith, 'name'); -verifyNotWritable(String.prototype.startsWith, 'name'); -verifyConfigurable(String.prototype.startsWith, 'name'); +verifyProperty(String.prototype.startsWith, "name", { + value: "startsWith", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/substring/name.js b/test/built-ins/String/prototype/substring/name.js index 85afdf1cd1..427c26db12 100644 --- a/test/built-ins/String/prototype/substring/name.js +++ b/test/built-ins/String/prototype/substring/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.substring.name, "substring"); - -verifyNotEnumerable(String.prototype.substring, "name"); -verifyNotWritable(String.prototype.substring, "name"); -verifyConfigurable(String.prototype.substring, "name"); +verifyProperty(String.prototype.substring, "name", { + value: "substring", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/name.js b/test/built-ins/String/prototype/toLocaleLowerCase/name.js index 23f45aeb64..30e722f9b4 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/name.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.toLocaleLowerCase.name, "toLocaleLowerCase"); - -verifyNotEnumerable(String.prototype.toLocaleLowerCase, "name"); -verifyNotWritable(String.prototype.toLocaleLowerCase, "name"); -verifyConfigurable(String.prototype.toLocaleLowerCase, "name"); +verifyProperty(String.prototype.toLocaleLowerCase, "name", { + value: "toLocaleLowerCase", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/name.js b/test/built-ins/String/prototype/toLocaleUpperCase/name.js index 878d966a3b..961f5866e4 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/name.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.toLocaleUpperCase.name, "toLocaleUpperCase"); - -verifyNotEnumerable(String.prototype.toLocaleUpperCase, "name"); -verifyNotWritable(String.prototype.toLocaleUpperCase, "name"); -verifyConfigurable(String.prototype.toLocaleUpperCase, "name"); +verifyProperty(String.prototype.toLocaleUpperCase, "name", { + value: "toLocaleUpperCase", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/toLowerCase/name.js b/test/built-ins/String/prototype/toLowerCase/name.js index 84e04f9c55..467e22d920 100644 --- a/test/built-ins/String/prototype/toLowerCase/name.js +++ b/test/built-ins/String/prototype/toLowerCase/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.toLowerCase.name, "toLowerCase"); - -verifyNotEnumerable(String.prototype.toLowerCase, "name"); -verifyNotWritable(String.prototype.toLowerCase, "name"); -verifyConfigurable(String.prototype.toLowerCase, "name"); +verifyProperty(String.prototype.toLowerCase, "name", { + value: "toLowerCase", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/toUpperCase/name.js b/test/built-ins/String/prototype/toUpperCase/name.js index 6945e1a6e2..f0051bbd0d 100644 --- a/test/built-ins/String/prototype/toUpperCase/name.js +++ b/test/built-ins/String/prototype/toUpperCase/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.toUpperCase.name, "toUpperCase"); - -verifyNotEnumerable(String.prototype.toUpperCase, "name"); -verifyNotWritable(String.prototype.toUpperCase, "name"); -verifyConfigurable(String.prototype.toUpperCase, "name"); +verifyProperty(String.prototype.toUpperCase, "name", { + value: "toUpperCase", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/prototype/trim/name.js b/test/built-ins/String/prototype/trim/name.js index aac24986f3..458ab692f5 100644 --- a/test/built-ins/String/prototype/trim/name.js +++ b/test/built-ins/String/prototype/trim/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype.trim.name, "trim"); - -verifyNotEnumerable(String.prototype.trim, "name"); -verifyNotWritable(String.prototype.trim, "name"); -verifyConfigurable(String.prototype.trim, "name"); +verifyProperty(String.prototype.trim, "name", { + value: "trim", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/raw/length.js b/test/built-ins/String/raw/length.js index fc1ce655fd..812759faa7 100644 --- a/test/built-ins/String/raw/length.js +++ b/test/built-ins/String/raw/length.js @@ -11,11 +11,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.raw.length, 1, - 'The value of `String.raw.length` is `1`' -); - -verifyNotEnumerable(String.raw, 'length'); -verifyNotWritable(String.raw, 'length'); -verifyConfigurable(String.raw, 'length'); +verifyProperty(String.raw, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/String/raw/name.js b/test/built-ins/String/raw/name.js index 58fc649c2a..ae237c7ec7 100644 --- a/test/built-ins/String/raw/name.js +++ b/test/built-ins/String/raw/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.raw.name, 'raw', - 'The value of `String.raw.name` is `"raw"`' -); - -verifyNotEnumerable(String.raw, 'name'); -verifyNotWritable(String.raw, 'name'); -verifyConfigurable(String.raw, 'name'); +verifyProperty(String.raw, "name", { + value: "raw", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/StringIteratorPrototype/next/length.js b/test/built-ins/StringIteratorPrototype/next/length.js index 423adfae11..03004b9674 100644 --- a/test/built-ins/StringIteratorPrototype/next/length.js +++ b/test/built-ins/StringIteratorPrototype/next/length.js @@ -25,8 +25,9 @@ features: [Symbol.iterator] var StringIteratorProto = Object.getPrototypeOf(new String()[Symbol.iterator]()); -assert.sameValue(StringIteratorProto.next.length, 0); - -verifyNotEnumerable(StringIteratorProto.next, "length"); -verifyNotWritable(StringIteratorProto.next, "length"); -verifyConfigurable(StringIteratorProto.next, "length"); +verifyProperty(StringIteratorProto.next, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/StringIteratorPrototype/next/name.js b/test/built-ins/StringIteratorPrototype/next/name.js index 5d0d22e6d3..d642fd2fe4 100644 --- a/test/built-ins/StringIteratorPrototype/next/name.js +++ b/test/built-ins/StringIteratorPrototype/next/name.js @@ -22,8 +22,9 @@ features: [Symbol.iterator] var StringIteratorProto = Object.getPrototypeOf(new String()[Symbol.iterator]()); -assert.sameValue(StringIteratorProto.next.name, "next"); - -verifyNotEnumerable(StringIteratorProto.next, "name"); -verifyNotWritable(StringIteratorProto.next, "name"); -verifyConfigurable(StringIteratorProto.next, "name"); +verifyProperty(StringIteratorProto.next, "name", { + value: "next", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/for/length.js b/test/built-ins/Symbol/for/length.js index 5bf2f1167d..1d9083d7be 100644 --- a/test/built-ins/Symbol/for/length.js +++ b/test/built-ins/Symbol/for/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.for.length, 1); - -verifyNotEnumerable(Symbol.for, "length"); -verifyNotWritable(Symbol.for, "length"); -verifyConfigurable(Symbol.for, "length"); +verifyProperty(Symbol.for, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/for/name.js b/test/built-ins/Symbol/for/name.js index 3ff2c3062e..64c154557f 100644 --- a/test/built-ins/Symbol/for/name.js +++ b/test/built-ins/Symbol/for/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.for.name, "for"); - -verifyNotEnumerable(Symbol.for, "name"); -verifyNotWritable(Symbol.for, "name"); -verifyConfigurable(Symbol.for, "name"); +verifyProperty(Symbol.for, "name", { + value: "for", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/keyFor/length.js b/test/built-ins/Symbol/keyFor/length.js index 7755b4954e..1ddd8af1e4 100644 --- a/test/built-ins/Symbol/keyFor/length.js +++ b/test/built-ins/Symbol/keyFor/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.keyFor.length, 1); - -verifyNotEnumerable(Symbol.keyFor, "length"); -verifyNotWritable(Symbol.keyFor, "length"); -verifyConfigurable(Symbol.keyFor, "length"); +verifyProperty(Symbol.keyFor, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/keyFor/name.js b/test/built-ins/Symbol/keyFor/name.js index 4f9476f566..369fa5b61a 100644 --- a/test/built-ins/Symbol/keyFor/name.js +++ b/test/built-ins/Symbol/keyFor/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.keyFor.name, "keyFor"); - -verifyNotEnumerable(Symbol.keyFor, "name"); -verifyNotWritable(Symbol.keyFor, "name"); -verifyConfigurable(Symbol.keyFor, "name"); +verifyProperty(Symbol.keyFor, "name", { + value: "keyFor", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/length.js b/test/built-ins/Symbol/length.js index cf37ad8595..0c4824c6e3 100644 --- a/test/built-ins/Symbol/length.js +++ b/test/built-ins/Symbol/length.js @@ -12,8 +12,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.length, 0, "The value of `Symbol.length` is `0`"); - -verifyNotEnumerable(Symbol, "length"); -verifyNotWritable(Symbol, "length"); -verifyConfigurable(Symbol, "length"); +verifyProperty(Symbol, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/name.js b/test/built-ins/Symbol/name.js index 2ef83010aa..72b792aefd 100644 --- a/test/built-ins/Symbol/name.js +++ b/test/built-ins/Symbol/name.js @@ -10,8 +10,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.name, "Symbol", "The value of `Symbol.name` is `'Symbol'`"); - -verifyNotEnumerable(Symbol, "name"); -verifyNotWritable(Symbol, "name"); -verifyConfigurable(Symbol, "name"); +verifyProperty(Symbol, "name", { + value: "Symbol", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/prototype/Symbol.toPrimitive/length.js b/test/built-ins/Symbol/prototype/Symbol.toPrimitive/length.js index 44e3be0d0a..9f7d108fb3 100644 --- a/test/built-ins/Symbol/prototype/Symbol.toPrimitive/length.js +++ b/test/built-ins/Symbol/prototype/Symbol.toPrimitive/length.js @@ -20,8 +20,9 @@ features: [Symbol.toPrimitive] includes: [propertyHelper.js] ---*/ -assert.sameValue(Symbol.prototype[Symbol.toPrimitive].length, 1); - -verifyNotEnumerable(Symbol.prototype[Symbol.toPrimitive], 'length'); -verifyNotWritable(Symbol.prototype[Symbol.toPrimitive], 'length'); -verifyConfigurable(Symbol.prototype[Symbol.toPrimitive], 'length'); +verifyProperty(Symbol.prototype[Symbol.toPrimitive], "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/prototype/Symbol.toPrimitive/name.js b/test/built-ins/Symbol/prototype/Symbol.toPrimitive/name.js index 3fb1e197e1..a8d96a6ea0 100644 --- a/test/built-ins/Symbol/prototype/Symbol.toPrimitive/name.js +++ b/test/built-ins/Symbol/prototype/Symbol.toPrimitive/name.js @@ -17,10 +17,9 @@ features: [Symbol.toPrimitive] includes: [propertyHelper.js] ---*/ -assert.sameValue( - Symbol.prototype[Symbol.toPrimitive].name, '[Symbol.toPrimitive]' -); - -verifyNotEnumerable(Symbol.prototype[Symbol.toPrimitive], 'name'); -verifyNotWritable(Symbol.prototype[Symbol.toPrimitive], 'name'); -verifyConfigurable(Symbol.prototype[Symbol.toPrimitive], 'name'); +verifyProperty(Symbol.prototype[Symbol.toPrimitive], "name", { + value: "[Symbol.toPrimitive]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/prototype/toString/length.js b/test/built-ins/Symbol/prototype/toString/length.js index 4c3db4e938..d206f181ce 100644 --- a/test/built-ins/Symbol/prototype/toString/length.js +++ b/test/built-ins/Symbol/prototype/toString/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.prototype.toString.length, 0); - -verifyNotEnumerable(Symbol.prototype.toString, "length"); -verifyNotWritable(Symbol.prototype.toString, "length"); -verifyConfigurable(Symbol.prototype.toString, "length"); +verifyProperty(Symbol.prototype.toString, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/prototype/toString/name.js b/test/built-ins/Symbol/prototype/toString/name.js index ec2b63d830..6106514958 100644 --- a/test/built-ins/Symbol/prototype/toString/name.js +++ b/test/built-ins/Symbol/prototype/toString/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.prototype.toString.name, "toString"); - -verifyNotEnumerable(Symbol.prototype.toString, "name"); -verifyNotWritable(Symbol.prototype.toString, "name"); -verifyConfigurable(Symbol.prototype.toString, "name"); +verifyProperty(Symbol.prototype.toString, "name", { + value: "toString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/prototype/valueOf/length.js b/test/built-ins/Symbol/prototype/valueOf/length.js index 5f53692f37..93007bdfc3 100644 --- a/test/built-ins/Symbol/prototype/valueOf/length.js +++ b/test/built-ins/Symbol/prototype/valueOf/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.prototype.valueOf.length, 0); - -verifyNotEnumerable(Symbol.prototype.valueOf, "length"); -verifyNotWritable(Symbol.prototype.valueOf, "length"); -verifyConfigurable(Symbol.prototype.valueOf, "length"); +verifyProperty(Symbol.prototype.valueOf, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/Symbol/prototype/valueOf/name.js b/test/built-ins/Symbol/prototype/valueOf/name.js index 11b27f65ba..a2632153cc 100644 --- a/test/built-ins/Symbol/prototype/valueOf/name.js +++ b/test/built-ins/Symbol/prototype/valueOf/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.prototype.valueOf.name, "valueOf"); - -verifyNotEnumerable(Symbol.prototype.valueOf, "name"); -verifyNotWritable(Symbol.prototype.valueOf, "name"); -verifyConfigurable(Symbol.prototype.valueOf, "name"); +verifyProperty(Symbol.prototype.valueOf, "name", { + value: "valueOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/ThrowTypeError/length.js b/test/built-ins/ThrowTypeError/length.js index 5a14e231b8..1071e1eef6 100644 --- a/test/built-ins/ThrowTypeError/length.js +++ b/test/built-ins/ThrowTypeError/length.js @@ -18,8 +18,9 @@ var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { return arguments; }(), "callee").get; -assert.sameValue(ThrowTypeError.length, 0); - -verifyNotEnumerable(ThrowTypeError, "length"); -verifyNotWritable(ThrowTypeError, "length"); -verifyNotConfigurable(ThrowTypeError, "length"); +verifyProperty(ThrowTypeError, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: false +}); diff --git a/test/built-ins/TypedArray/Symbol.species/length.js b/test/built-ins/TypedArray/Symbol.species/length.js index 4cc3343c8e..a516163d01 100644 --- a/test/built-ins/TypedArray/Symbol.species/length.js +++ b/test/built-ins/TypedArray/Symbol.species/length.js @@ -25,8 +25,9 @@ features: [Symbol.species] var desc = Object.getOwnPropertyDescriptor(TypedArray, Symbol.species); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/Symbol.species/name.js b/test/built-ins/TypedArray/Symbol.species/name.js index 091d0a70a7..cf0ce5c889 100644 --- a/test/built-ins/TypedArray/Symbol.species/name.js +++ b/test/built-ins/TypedArray/Symbol.species/name.js @@ -22,8 +22,9 @@ features: [Symbol.species] var desc = Object.getOwnPropertyDescriptor(TypedArray, Symbol.species); -assert.sameValue(desc.get.name, "get [Symbol.species]"); - -verifyNotEnumerable(desc.get, "name"); -verifyNotWritable(desc.get, "name"); -verifyConfigurable(desc.get, "name"); +verifyProperty(desc.get, "name", { + value: "get [Symbol.species]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/from/length.js b/test/built-ins/TypedArray/from/length.js index 45306875f9..15b981f71e 100644 --- a/test/built-ins/TypedArray/from/length.js +++ b/test/built-ins/TypedArray/from/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.from.length, 1); - -verifyNotEnumerable(TypedArray.from, "length"); -verifyNotWritable(TypedArray.from, "length"); -verifyConfigurable(TypedArray.from, "length"); +verifyProperty(TypedArray.from, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/from/name.js b/test/built-ins/TypedArray/from/name.js index dbcba77c34..9268a54fc2 100644 --- a/test/built-ins/TypedArray/from/name.js +++ b/test/built-ins/TypedArray/from/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.from.name, "from"); - -verifyNotEnumerable(TypedArray.from, "name"); -verifyNotWritable(TypedArray.from, "name"); -verifyConfigurable(TypedArray.from, "name"); +verifyProperty(TypedArray.from, "name", { + value: "from", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/name.js b/test/built-ins/TypedArray/name.js index 6c9581d140..6d21d8ae9e 100644 --- a/test/built-ins/TypedArray/name.js +++ b/test/built-ins/TypedArray/name.js @@ -18,8 +18,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.name, 'TypedArray'); - -verifyNotEnumerable(TypedArray, 'name'); -verifyNotWritable(TypedArray, 'name'); -verifyConfigurable(TypedArray, 'name'); +verifyProperty(TypedArray, "name", { + value: "TypedArray", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/of/length.js b/test/built-ins/TypedArray/of/length.js index a26827e18a..25848e93ca 100644 --- a/test/built-ins/TypedArray/of/length.js +++ b/test/built-ins/TypedArray/of/length.js @@ -24,8 +24,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.of.length, 0); - -verifyNotEnumerable(TypedArray.of, "length"); -verifyNotWritable(TypedArray.of, "length"); -verifyConfigurable(TypedArray.of, "length"); +verifyProperty(TypedArray.of, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/of/name.js b/test/built-ins/TypedArray/of/name.js index eed607fe20..4074102024 100644 --- a/test/built-ins/TypedArray/of/name.js +++ b/test/built-ins/TypedArray/of/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.of.name, "of"); - -verifyNotEnumerable(TypedArray.of, "name"); -verifyNotWritable(TypedArray.of, "name"); -verifyConfigurable(TypedArray.of, "name"); +verifyProperty(TypedArray.of, "name", { + value: "of", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/BigInt/length.js b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/BigInt/length.js index 13e4e9e177..c1c2df6329 100644 --- a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/BigInt/length.js +++ b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/BigInt/length.js @@ -25,8 +25,9 @@ features: [BigInt, Symbol.toStringTag] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/BigInt/name.js b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/BigInt/name.js index 1004ce4631..96c6069c93 100644 --- a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/BigInt/name.js +++ b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/BigInt/name.js @@ -22,8 +22,9 @@ features: [BigInt, Symbol.toStringTag] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag); -assert.sameValue(desc.get.name, "get [Symbol.toStringTag]"); - -verifyNotEnumerable(desc.get, "name"); -verifyNotWritable(desc.get, "name"); -verifyConfigurable(desc.get, "name"); +verifyProperty(desc.get, "name", { + value: "get [Symbol.toStringTag]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/length.js b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/length.js index 37b6d2aaf3..6291c302ca 100644 --- a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/length.js +++ b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/length.js @@ -25,8 +25,9 @@ features: [Symbol.toStringTag] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/name.js b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/name.js index fef03e767a..13b4fffe0b 100644 --- a/test/built-ins/TypedArray/prototype/Symbol.toStringTag/name.js +++ b/test/built-ins/TypedArray/prototype/Symbol.toStringTag/name.js @@ -22,8 +22,9 @@ features: [Symbol.toStringTag] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag); -assert.sameValue(desc.get.name, "get [Symbol.toStringTag]"); - -verifyNotEnumerable(desc.get, "name"); -verifyNotWritable(desc.get, "name"); -verifyConfigurable(desc.get, "name"); +verifyProperty(desc.get, "name", { + value: "get [Symbol.toStringTag]", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/at/length.js b/test/built-ins/TypedArray/prototype/at/length.js index db895a2206..a1f983ab71 100644 --- a/test/built-ins/TypedArray/prototype/at/length.js +++ b/test/built-ins/TypedArray/prototype/at/length.js @@ -18,11 +18,9 @@ assert.sameValue( 'The value of `typeof TypedArray.prototype.at` is "function"' ); -assert.sameValue( - TypedArray.prototype.at.length, 1, - 'The value of TypedArray.prototype.at.length is 1' -); - -verifyNotEnumerable(TypedArray.prototype.at, 'length'); -verifyNotWritable(TypedArray.prototype.at, 'length'); -verifyConfigurable(TypedArray.prototype.at, 'length'); +verifyProperty(TypedArray.prototype.at, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/buffer/length.js b/test/built-ins/TypedArray/prototype/buffer/length.js index 1ddb20c4e5..02d1e29600 100644 --- a/test/built-ins/TypedArray/prototype/buffer/length.js +++ b/test/built-ins/TypedArray/prototype/buffer/length.js @@ -25,8 +25,9 @@ features: [TypedArray] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "buffer"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/buffer/name.js b/test/built-ins/TypedArray/prototype/buffer/name.js index d52454a7f6..f71ecfb369 100644 --- a/test/built-ins/TypedArray/prototype/buffer/name.js +++ b/test/built-ins/TypedArray/prototype/buffer/name.js @@ -22,8 +22,9 @@ features: [TypedArray] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "buffer"); -assert.sameValue(desc.get.name, "get buffer"); - -verifyNotEnumerable(desc.get, "name"); -verifyNotWritable(desc.get, "name"); -verifyConfigurable(desc.get, "name"); +verifyProperty(desc.get, "name", { + value: "get buffer", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/byteLength/length.js b/test/built-ins/TypedArray/prototype/byteLength/length.js index 4252cd5d9e..b153bbc6d2 100644 --- a/test/built-ins/TypedArray/prototype/byteLength/length.js +++ b/test/built-ins/TypedArray/prototype/byteLength/length.js @@ -25,8 +25,9 @@ features: [TypedArray] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteLength"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/byteLength/name.js b/test/built-ins/TypedArray/prototype/byteLength/name.js index a70cc87bbe..292d1c0a82 100644 --- a/test/built-ins/TypedArray/prototype/byteLength/name.js +++ b/test/built-ins/TypedArray/prototype/byteLength/name.js @@ -22,8 +22,9 @@ features: [TypedArray] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteLength"); -assert.sameValue(desc.get.name, "get byteLength"); - -verifyNotEnumerable(desc.get, "name"); -verifyNotWritable(desc.get, "name"); -verifyConfigurable(desc.get, "name"); +verifyProperty(desc.get, "name", { + value: "get byteLength", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/byteOffset/length.js b/test/built-ins/TypedArray/prototype/byteOffset/length.js index 71c9b31c82..a70f29ee2f 100644 --- a/test/built-ins/TypedArray/prototype/byteOffset/length.js +++ b/test/built-ins/TypedArray/prototype/byteOffset/length.js @@ -25,8 +25,9 @@ features: [TypedArray] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteOffset"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/byteOffset/name.js b/test/built-ins/TypedArray/prototype/byteOffset/name.js index 5b5a2ecab3..e93fcbe7cb 100644 --- a/test/built-ins/TypedArray/prototype/byteOffset/name.js +++ b/test/built-ins/TypedArray/prototype/byteOffset/name.js @@ -22,8 +22,9 @@ features: [TypedArray] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteOffset"); -assert.sameValue(desc.get.name, "get byteOffset"); - -verifyNotEnumerable(desc.get, "name"); -verifyNotWritable(desc.get, "name"); -verifyConfigurable(desc.get, "name"); +verifyProperty(desc.get, "name", { + value: "get byteOffset", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/length.js b/test/built-ins/TypedArray/prototype/copyWithin/length.js index 63c37c4ff3..6e00ec8c35 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/length.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.copyWithin.length, 2); - -verifyNotEnumerable(TypedArray.prototype.copyWithin, "length"); -verifyNotWritable(TypedArray.prototype.copyWithin, "length"); -verifyConfigurable(TypedArray.prototype.copyWithin, "length"); +verifyProperty(TypedArray.prototype.copyWithin, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/name.js b/test/built-ins/TypedArray/prototype/copyWithin/name.js index 068057df3c..8a5361d7b4 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/name.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.copyWithin.name, "copyWithin"); - -verifyNotEnumerable(TypedArray.prototype.copyWithin, "name"); -verifyNotWritable(TypedArray.prototype.copyWithin, "name"); -verifyConfigurable(TypedArray.prototype.copyWithin, "name"); +verifyProperty(TypedArray.prototype.copyWithin, "name", { + value: "copyWithin", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/entries/length.js b/test/built-ins/TypedArray/prototype/entries/length.js index a72e7706cf..78c7677caf 100644 --- a/test/built-ins/TypedArray/prototype/entries/length.js +++ b/test/built-ins/TypedArray/prototype/entries/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.entries.length, 0); - -verifyNotEnumerable(TypedArray.prototype.entries, "length"); -verifyNotWritable(TypedArray.prototype.entries, "length"); -verifyConfigurable(TypedArray.prototype.entries, "length"); +verifyProperty(TypedArray.prototype.entries, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/entries/name.js b/test/built-ins/TypedArray/prototype/entries/name.js index 9647c66c58..d781cf07b0 100644 --- a/test/built-ins/TypedArray/prototype/entries/name.js +++ b/test/built-ins/TypedArray/prototype/entries/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.entries.name, "entries"); - -verifyNotEnumerable(TypedArray.prototype.entries, "name"); -verifyNotWritable(TypedArray.prototype.entries, "name"); -verifyConfigurable(TypedArray.prototype.entries, "name"); +verifyProperty(TypedArray.prototype.entries, "name", { + value: "entries", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/every/length.js b/test/built-ins/TypedArray/prototype/every/length.js index 2f5bf8961b..11e3c44a82 100644 --- a/test/built-ins/TypedArray/prototype/every/length.js +++ b/test/built-ins/TypedArray/prototype/every/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.every.length, 1); - -verifyNotEnumerable(TypedArray.prototype.every, "length"); -verifyNotWritable(TypedArray.prototype.every, "length"); -verifyConfigurable(TypedArray.prototype.every, "length"); +verifyProperty(TypedArray.prototype.every, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/every/name.js b/test/built-ins/TypedArray/prototype/every/name.js index 4d216dd9d4..9c1b7c0168 100644 --- a/test/built-ins/TypedArray/prototype/every/name.js +++ b/test/built-ins/TypedArray/prototype/every/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.every.name, "every"); - -verifyNotEnumerable(TypedArray.prototype.every, "name"); -verifyNotWritable(TypedArray.prototype.every, "name"); -verifyConfigurable(TypedArray.prototype.every, "name"); +verifyProperty(TypedArray.prototype.every, "name", { + value: "every", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/fill/length.js b/test/built-ins/TypedArray/prototype/fill/length.js index b6c7375355..6b23085efd 100644 --- a/test/built-ins/TypedArray/prototype/fill/length.js +++ b/test/built-ins/TypedArray/prototype/fill/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.fill.length, 1); - -verifyNotEnumerable(TypedArray.prototype.fill, "length"); -verifyNotWritable(TypedArray.prototype.fill, "length"); -verifyConfigurable(TypedArray.prototype.fill, "length"); +verifyProperty(TypedArray.prototype.fill, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/fill/name.js b/test/built-ins/TypedArray/prototype/fill/name.js index 69820f96a7..065824ef2d 100644 --- a/test/built-ins/TypedArray/prototype/fill/name.js +++ b/test/built-ins/TypedArray/prototype/fill/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.fill.name, "fill"); - -verifyNotEnumerable(TypedArray.prototype.fill, "name"); -verifyNotWritable(TypedArray.prototype.fill, "name"); -verifyConfigurable(TypedArray.prototype.fill, "name"); +verifyProperty(TypedArray.prototype.fill, "name", { + value: "fill", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/filter/length.js b/test/built-ins/TypedArray/prototype/filter/length.js index 62a72cfa9c..e9939b978e 100644 --- a/test/built-ins/TypedArray/prototype/filter/length.js +++ b/test/built-ins/TypedArray/prototype/filter/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.filter.length, 1); - -verifyNotEnumerable(TypedArray.prototype.filter, "length"); -verifyNotWritable(TypedArray.prototype.filter, "length"); -verifyConfigurable(TypedArray.prototype.filter, "length"); +verifyProperty(TypedArray.prototype.filter, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/filter/name.js b/test/built-ins/TypedArray/prototype/filter/name.js index 069c0adc60..1e260f60ea 100644 --- a/test/built-ins/TypedArray/prototype/filter/name.js +++ b/test/built-ins/TypedArray/prototype/filter/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.filter.name, "filter"); - -verifyNotEnumerable(TypedArray.prototype.filter, "name"); -verifyNotWritable(TypedArray.prototype.filter, "name"); -verifyConfigurable(TypedArray.prototype.filter, "name"); +verifyProperty(TypedArray.prototype.filter, "name", { + value: "filter", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/find/length.js b/test/built-ins/TypedArray/prototype/find/length.js index 15607315f4..b353c4fedb 100644 --- a/test/built-ins/TypedArray/prototype/find/length.js +++ b/test/built-ins/TypedArray/prototype/find/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.find.length, 1); - -verifyNotEnumerable(TypedArray.prototype.find, "length"); -verifyNotWritable(TypedArray.prototype.find, "length"); -verifyConfigurable(TypedArray.prototype.find, "length"); +verifyProperty(TypedArray.prototype.find, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/find/name.js b/test/built-ins/TypedArray/prototype/find/name.js index c1636fc13e..11dcbf5584 100644 --- a/test/built-ins/TypedArray/prototype/find/name.js +++ b/test/built-ins/TypedArray/prototype/find/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.find.name, "find"); - -verifyNotEnumerable(TypedArray.prototype.find, "name"); -verifyNotWritable(TypedArray.prototype.find, "name"); -verifyConfigurable(TypedArray.prototype.find, "name"); +verifyProperty(TypedArray.prototype.find, "name", { + value: "find", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/findIndex/length.js b/test/built-ins/TypedArray/prototype/findIndex/length.js index 0ec6d4a5f4..73985d1faa 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/length.js +++ b/test/built-ins/TypedArray/prototype/findIndex/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.findIndex.length, 1); - -verifyNotEnumerable(TypedArray.prototype.findIndex, "length"); -verifyNotWritable(TypedArray.prototype.findIndex, "length"); -verifyConfigurable(TypedArray.prototype.findIndex, "length"); +verifyProperty(TypedArray.prototype.findIndex, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/findIndex/name.js b/test/built-ins/TypedArray/prototype/findIndex/name.js index deb8c73a9b..4afbf2b6ca 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/name.js +++ b/test/built-ins/TypedArray/prototype/findIndex/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.findIndex.name, "findIndex"); - -verifyNotEnumerable(TypedArray.prototype.findIndex, "name"); -verifyNotWritable(TypedArray.prototype.findIndex, "name"); -verifyConfigurable(TypedArray.prototype.findIndex, "name"); +verifyProperty(TypedArray.prototype.findIndex, "name", { + value: "findIndex", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/forEach/length.js b/test/built-ins/TypedArray/prototype/forEach/length.js index 48bdb6a258..4b75570f1b 100644 --- a/test/built-ins/TypedArray/prototype/forEach/length.js +++ b/test/built-ins/TypedArray/prototype/forEach/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.forEach.length, 1); - -verifyNotEnumerable(TypedArray.prototype.forEach, "length"); -verifyNotWritable(TypedArray.prototype.forEach, "length"); -verifyConfigurable(TypedArray.prototype.forEach, "length"); +verifyProperty(TypedArray.prototype.forEach, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/forEach/name.js b/test/built-ins/TypedArray/prototype/forEach/name.js index 23ae3f6315..8d9e573ce0 100644 --- a/test/built-ins/TypedArray/prototype/forEach/name.js +++ b/test/built-ins/TypedArray/prototype/forEach/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.forEach.name, "forEach"); - -verifyNotEnumerable(TypedArray.prototype.forEach, "name"); -verifyNotWritable(TypedArray.prototype.forEach, "name"); -verifyConfigurable(TypedArray.prototype.forEach, "name"); +verifyProperty(TypedArray.prototype.forEach, "name", { + value: "forEach", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/includes/length.js b/test/built-ins/TypedArray/prototype/includes/length.js index b59e5c9951..b677d7d978 100644 --- a/test/built-ins/TypedArray/prototype/includes/length.js +++ b/test/built-ins/TypedArray/prototype/includes/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.includes.length, 1); - -verifyNotEnumerable(TypedArray.prototype.includes, "length"); -verifyNotWritable(TypedArray.prototype.includes, "length"); -verifyConfigurable(TypedArray.prototype.includes, "length"); +verifyProperty(TypedArray.prototype.includes, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/includes/name.js b/test/built-ins/TypedArray/prototype/includes/name.js index 7f515b125e..f221df069d 100644 --- a/test/built-ins/TypedArray/prototype/includes/name.js +++ b/test/built-ins/TypedArray/prototype/includes/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.includes.name, "includes"); - -verifyNotEnumerable(TypedArray.prototype.includes, "name"); -verifyNotWritable(TypedArray.prototype.includes, "name"); -verifyConfigurable(TypedArray.prototype.includes, "name"); +verifyProperty(TypedArray.prototype.includes, "name", { + value: "includes", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/indexOf/length.js b/test/built-ins/TypedArray/prototype/indexOf/length.js index 5729797c67..aaec643df6 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/length.js +++ b/test/built-ins/TypedArray/prototype/indexOf/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.indexOf.length, 1); - -verifyNotEnumerable(TypedArray.prototype.indexOf, "length"); -verifyNotWritable(TypedArray.prototype.indexOf, "length"); -verifyConfigurable(TypedArray.prototype.indexOf, "length"); +verifyProperty(TypedArray.prototype.indexOf, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/indexOf/name.js b/test/built-ins/TypedArray/prototype/indexOf/name.js index ee50628ff2..2f7fd9d231 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/name.js +++ b/test/built-ins/TypedArray/prototype/indexOf/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.indexOf.name, "indexOf"); - -verifyNotEnumerable(TypedArray.prototype.indexOf, "name"); -verifyNotWritable(TypedArray.prototype.indexOf, "name"); -verifyConfigurable(TypedArray.prototype.indexOf, "name"); +verifyProperty(TypedArray.prototype.indexOf, "name", { + value: "indexOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/join/length.js b/test/built-ins/TypedArray/prototype/join/length.js index 1353a225a1..611a58d2c2 100644 --- a/test/built-ins/TypedArray/prototype/join/length.js +++ b/test/built-ins/TypedArray/prototype/join/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.join.length, 1); - -verifyNotEnumerable(TypedArray.prototype.join, "length"); -verifyNotWritable(TypedArray.prototype.join, "length"); -verifyConfigurable(TypedArray.prototype.join, "length"); +verifyProperty(TypedArray.prototype.join, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/join/name.js b/test/built-ins/TypedArray/prototype/join/name.js index e859b75c51..faeeddb16b 100644 --- a/test/built-ins/TypedArray/prototype/join/name.js +++ b/test/built-ins/TypedArray/prototype/join/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.join.name, "join"); - -verifyNotEnumerable(TypedArray.prototype.join, "name"); -verifyNotWritable(TypedArray.prototype.join, "name"); -verifyConfigurable(TypedArray.prototype.join, "name"); +verifyProperty(TypedArray.prototype.join, "name", { + value: "join", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/keys/length.js b/test/built-ins/TypedArray/prototype/keys/length.js index 8ca31ed83a..28e2e78309 100644 --- a/test/built-ins/TypedArray/prototype/keys/length.js +++ b/test/built-ins/TypedArray/prototype/keys/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.keys.length, 0); - -verifyNotEnumerable(TypedArray.prototype.keys, "length"); -verifyNotWritable(TypedArray.prototype.keys, "length"); -verifyConfigurable(TypedArray.prototype.keys, "length"); +verifyProperty(TypedArray.prototype.keys, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/keys/name.js b/test/built-ins/TypedArray/prototype/keys/name.js index 787e112f9f..8b10b09d2a 100644 --- a/test/built-ins/TypedArray/prototype/keys/name.js +++ b/test/built-ins/TypedArray/prototype/keys/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.keys.name, "keys"); - -verifyNotEnumerable(TypedArray.prototype.keys, "name"); -verifyNotWritable(TypedArray.prototype.keys, "name"); -verifyConfigurable(TypedArray.prototype.keys, "name"); +verifyProperty(TypedArray.prototype.keys, "name", { + value: "keys", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/length.js b/test/built-ins/TypedArray/prototype/lastIndexOf/length.js index ffac1f4047..22388e513a 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/length.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.lastIndexOf.length, 1); - -verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "length"); -verifyNotWritable(TypedArray.prototype.lastIndexOf, "length"); -verifyConfigurable(TypedArray.prototype.lastIndexOf, "length"); +verifyProperty(TypedArray.prototype.lastIndexOf, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/name.js b/test/built-ins/TypedArray/prototype/lastIndexOf/name.js index 7af241b5a8..1b9bd3f5f1 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/name.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.lastIndexOf.name, "lastIndexOf"); - -verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "name"); -verifyNotWritable(TypedArray.prototype.lastIndexOf, "name"); -verifyConfigurable(TypedArray.prototype.lastIndexOf, "name"); +verifyProperty(TypedArray.prototype.lastIndexOf, "name", { + value: "lastIndexOf", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/length/length.js b/test/built-ins/TypedArray/prototype/length/length.js index 83477ed198..d7dc805497 100644 --- a/test/built-ins/TypedArray/prototype/length/length.js +++ b/test/built-ins/TypedArray/prototype/length/length.js @@ -25,8 +25,9 @@ features: [TypedArray] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "length"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/length/name.js b/test/built-ins/TypedArray/prototype/length/name.js index 733f7c4ea0..9b74698973 100644 --- a/test/built-ins/TypedArray/prototype/length/name.js +++ b/test/built-ins/TypedArray/prototype/length/name.js @@ -22,8 +22,9 @@ features: [TypedArray] var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "length"); -assert.sameValue(desc.get.name, "get length"); - -verifyNotEnumerable(desc.get, "name"); -verifyNotWritable(desc.get, "name"); -verifyConfigurable(desc.get, "name"); +verifyProperty(desc.get, "name", { + value: "get length", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/map/length.js b/test/built-ins/TypedArray/prototype/map/length.js index b6b51f5540..a618bb14b7 100644 --- a/test/built-ins/TypedArray/prototype/map/length.js +++ b/test/built-ins/TypedArray/prototype/map/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.map.length, 1); - -verifyNotEnumerable(TypedArray.prototype.map, "length"); -verifyNotWritable(TypedArray.prototype.map, "length"); -verifyConfigurable(TypedArray.prototype.map, "length"); +verifyProperty(TypedArray.prototype.map, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/map/name.js b/test/built-ins/TypedArray/prototype/map/name.js index 92aad9621e..1563cd4250 100644 --- a/test/built-ins/TypedArray/prototype/map/name.js +++ b/test/built-ins/TypedArray/prototype/map/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.map.name, "map"); - -verifyNotEnumerable(TypedArray.prototype.map, "name"); -verifyNotWritable(TypedArray.prototype.map, "name"); -verifyConfigurable(TypedArray.prototype.map, "name"); +verifyProperty(TypedArray.prototype.map, "name", { + value: "map", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/reduce/length.js b/test/built-ins/TypedArray/prototype/reduce/length.js index 9d4afc624c..439e4d16e6 100644 --- a/test/built-ins/TypedArray/prototype/reduce/length.js +++ b/test/built-ins/TypedArray/prototype/reduce/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.reduce.length, 1); - -verifyNotEnumerable(TypedArray.prototype.reduce, "length"); -verifyNotWritable(TypedArray.prototype.reduce, "length"); -verifyConfigurable(TypedArray.prototype.reduce, "length"); +verifyProperty(TypedArray.prototype.reduce, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/reduce/name.js b/test/built-ins/TypedArray/prototype/reduce/name.js index 9074a96d45..98698fe9ae 100644 --- a/test/built-ins/TypedArray/prototype/reduce/name.js +++ b/test/built-ins/TypedArray/prototype/reduce/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.reduce.name, "reduce"); - -verifyNotEnumerable(TypedArray.prototype.reduce, "name"); -verifyNotWritable(TypedArray.prototype.reduce, "name"); -verifyConfigurable(TypedArray.prototype.reduce, "name"); +verifyProperty(TypedArray.prototype.reduce, "name", { + value: "reduce", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/length.js b/test/built-ins/TypedArray/prototype/reduceRight/length.js index 7d0227b6b2..31b5b67c92 100644 --- a/test/built-ins/TypedArray/prototype/reduceRight/length.js +++ b/test/built-ins/TypedArray/prototype/reduceRight/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.reduceRight.length, 1); - -verifyNotEnumerable(TypedArray.prototype.reduceRight, "length"); -verifyNotWritable(TypedArray.prototype.reduceRight, "length"); -verifyConfigurable(TypedArray.prototype.reduceRight, "length"); +verifyProperty(TypedArray.prototype.reduceRight, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/name.js b/test/built-ins/TypedArray/prototype/reduceRight/name.js index e483a273b1..5f99533472 100644 --- a/test/built-ins/TypedArray/prototype/reduceRight/name.js +++ b/test/built-ins/TypedArray/prototype/reduceRight/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.reduceRight.name, "reduceRight"); - -verifyNotEnumerable(TypedArray.prototype.reduceRight, "name"); -verifyNotWritable(TypedArray.prototype.reduceRight, "name"); -verifyConfigurable(TypedArray.prototype.reduceRight, "name"); +verifyProperty(TypedArray.prototype.reduceRight, "name", { + value: "reduceRight", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/reverse/length.js b/test/built-ins/TypedArray/prototype/reverse/length.js index 4a03648294..d47f7b711b 100644 --- a/test/built-ins/TypedArray/prototype/reverse/length.js +++ b/test/built-ins/TypedArray/prototype/reverse/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.reverse.length, 0); - -verifyNotEnumerable(TypedArray.prototype.reverse, "length"); -verifyNotWritable(TypedArray.prototype.reverse, "length"); -verifyConfigurable(TypedArray.prototype.reverse, "length"); +verifyProperty(TypedArray.prototype.reverse, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/reverse/name.js b/test/built-ins/TypedArray/prototype/reverse/name.js index eff372aa37..7340812a6e 100644 --- a/test/built-ins/TypedArray/prototype/reverse/name.js +++ b/test/built-ins/TypedArray/prototype/reverse/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.reverse.name, "reverse"); - -verifyNotEnumerable(TypedArray.prototype.reverse, "name"); -verifyNotWritable(TypedArray.prototype.reverse, "name"); -verifyConfigurable(TypedArray.prototype.reverse, "name"); +verifyProperty(TypedArray.prototype.reverse, "name", { + value: "reverse", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/set/length.js b/test/built-ins/TypedArray/prototype/set/length.js index 7e94fdc4fc..5d969e0ea0 100644 --- a/test/built-ins/TypedArray/prototype/set/length.js +++ b/test/built-ins/TypedArray/prototype/set/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.set.length, 1); - -verifyNotEnumerable(TypedArray.prototype.set, "length"); -verifyNotWritable(TypedArray.prototype.set, "length"); -verifyConfigurable(TypedArray.prototype.set, "length"); +verifyProperty(TypedArray.prototype.set, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/set/name.js b/test/built-ins/TypedArray/prototype/set/name.js index f7cbaf394b..d3d6e91a81 100644 --- a/test/built-ins/TypedArray/prototype/set/name.js +++ b/test/built-ins/TypedArray/prototype/set/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.set.name, "set"); - -verifyNotEnumerable(TypedArray.prototype.set, "name"); -verifyNotWritable(TypedArray.prototype.set, "name"); -verifyConfigurable(TypedArray.prototype.set, "name"); +verifyProperty(TypedArray.prototype.set, "name", { + value: "set", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/slice/length.js b/test/built-ins/TypedArray/prototype/slice/length.js index a33abd745d..5b048d6af8 100644 --- a/test/built-ins/TypedArray/prototype/slice/length.js +++ b/test/built-ins/TypedArray/prototype/slice/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.slice.length, 2); - -verifyNotEnumerable(TypedArray.prototype.slice, "length"); -verifyNotWritable(TypedArray.prototype.slice, "length"); -verifyConfigurable(TypedArray.prototype.slice, "length"); +verifyProperty(TypedArray.prototype.slice, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/slice/name.js b/test/built-ins/TypedArray/prototype/slice/name.js index 69d3199182..3e3bd0e4a4 100644 --- a/test/built-ins/TypedArray/prototype/slice/name.js +++ b/test/built-ins/TypedArray/prototype/slice/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.slice.name, "slice"); - -verifyNotEnumerable(TypedArray.prototype.slice, "name"); -verifyNotWritable(TypedArray.prototype.slice, "name"); -verifyConfigurable(TypedArray.prototype.slice, "name"); +verifyProperty(TypedArray.prototype.slice, "name", { + value: "slice", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/some/length.js b/test/built-ins/TypedArray/prototype/some/length.js index 47560ff66b..9a79983938 100644 --- a/test/built-ins/TypedArray/prototype/some/length.js +++ b/test/built-ins/TypedArray/prototype/some/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.some.length, 1); - -verifyNotEnumerable(TypedArray.prototype.some, "length"); -verifyNotWritable(TypedArray.prototype.some, "length"); -verifyConfigurable(TypedArray.prototype.some, "length"); +verifyProperty(TypedArray.prototype.some, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/some/name.js b/test/built-ins/TypedArray/prototype/some/name.js index 1d0ad67359..269f5923b7 100644 --- a/test/built-ins/TypedArray/prototype/some/name.js +++ b/test/built-ins/TypedArray/prototype/some/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.some.name, "some"); - -verifyNotEnumerable(TypedArray.prototype.some, "name"); -verifyNotWritable(TypedArray.prototype.some, "name"); -verifyConfigurable(TypedArray.prototype.some, "name"); +verifyProperty(TypedArray.prototype.some, "name", { + value: "some", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/sort/length.js b/test/built-ins/TypedArray/prototype/sort/length.js index 8bd6a93add..a4889c8f22 100644 --- a/test/built-ins/TypedArray/prototype/sort/length.js +++ b/test/built-ins/TypedArray/prototype/sort/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.sort.length, 1); - -verifyNotEnumerable(TypedArray.prototype.sort, "length"); -verifyNotWritable(TypedArray.prototype.sort, "length"); -verifyConfigurable(TypedArray.prototype.sort, "length"); +verifyProperty(TypedArray.prototype.sort, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/sort/name.js b/test/built-ins/TypedArray/prototype/sort/name.js index d920126ec9..109e606979 100644 --- a/test/built-ins/TypedArray/prototype/sort/name.js +++ b/test/built-ins/TypedArray/prototype/sort/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.sort.name, "sort"); - -verifyNotEnumerable(TypedArray.prototype.sort, "name"); -verifyNotWritable(TypedArray.prototype.sort, "name"); -verifyConfigurable(TypedArray.prototype.sort, "name"); +verifyProperty(TypedArray.prototype.sort, "name", { + value: "sort", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/subarray/length.js b/test/built-ins/TypedArray/prototype/subarray/length.js index 8328dc6994..36ccb092a6 100644 --- a/test/built-ins/TypedArray/prototype/subarray/length.js +++ b/test/built-ins/TypedArray/prototype/subarray/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.subarray.length, 2); - -verifyNotEnumerable(TypedArray.prototype.subarray, "length"); -verifyNotWritable(TypedArray.prototype.subarray, "length"); -verifyConfigurable(TypedArray.prototype.subarray, "length"); +verifyProperty(TypedArray.prototype.subarray, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/subarray/name.js b/test/built-ins/TypedArray/prototype/subarray/name.js index fb51a5f53b..565738c4af 100644 --- a/test/built-ins/TypedArray/prototype/subarray/name.js +++ b/test/built-ins/TypedArray/prototype/subarray/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.subarray.name, "subarray"); - -verifyNotEnumerable(TypedArray.prototype.subarray, "name"); -verifyNotWritable(TypedArray.prototype.subarray, "name"); -verifyConfigurable(TypedArray.prototype.subarray, "name"); +verifyProperty(TypedArray.prototype.subarray, "name", { + value: "subarray", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/length.js b/test/built-ins/TypedArray/prototype/toLocaleString/length.js index deadce49fa..2f4ef1379b 100644 --- a/test/built-ins/TypedArray/prototype/toLocaleString/length.js +++ b/test/built-ins/TypedArray/prototype/toLocaleString/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.toLocaleString.length, 0); - -verifyNotEnumerable(TypedArray.prototype.toLocaleString, "length"); -verifyNotWritable(TypedArray.prototype.toLocaleString, "length"); -verifyConfigurable(TypedArray.prototype.toLocaleString, "length"); +verifyProperty(TypedArray.prototype.toLocaleString, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/name.js b/test/built-ins/TypedArray/prototype/toLocaleString/name.js index 20a8dfe163..5cad5e73aa 100644 --- a/test/built-ins/TypedArray/prototype/toLocaleString/name.js +++ b/test/built-ins/TypedArray/prototype/toLocaleString/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.toLocaleString.name, "toLocaleString"); - -verifyNotEnumerable(TypedArray.prototype.toLocaleString, "name"); -verifyNotWritable(TypedArray.prototype.toLocaleString, "name"); -verifyConfigurable(TypedArray.prototype.toLocaleString, "name"); +verifyProperty(TypedArray.prototype.toLocaleString, "name", { + value: "toLocaleString", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/values/length.js b/test/built-ins/TypedArray/prototype/values/length.js index deae67fbd4..51b1584d0c 100644 --- a/test/built-ins/TypedArray/prototype/values/length.js +++ b/test/built-ins/TypedArray/prototype/values/length.js @@ -23,8 +23,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.values.length, 0); - -verifyNotEnumerable(TypedArray.prototype.values, "length"); -verifyNotWritable(TypedArray.prototype.values, "length"); -verifyConfigurable(TypedArray.prototype.values, "length"); +verifyProperty(TypedArray.prototype.values, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArray/prototype/values/name.js b/test/built-ins/TypedArray/prototype/values/name.js index 43b3d9dbbc..7882bbfbfd 100644 --- a/test/built-ins/TypedArray/prototype/values/name.js +++ b/test/built-ins/TypedArray/prototype/values/name.js @@ -20,8 +20,9 @@ includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] ---*/ -assert.sameValue(TypedArray.prototype.values.name, "values"); - -verifyNotEnumerable(TypedArray.prototype.values, "name"); -verifyNotWritable(TypedArray.prototype.values, "name"); -verifyConfigurable(TypedArray.prototype.values, "name"); +verifyProperty(TypedArray.prototype.values, "name", { + value: "values", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrayConstructors/Float32Array/name.js b/test/built-ins/TypedArrayConstructors/Float32Array/name.js index a7b0c3fa88..726c255f34 100644 --- a/test/built-ins/TypedArrayConstructors/Float32Array/name.js +++ b/test/built-ins/TypedArrayConstructors/Float32Array/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [TypedArray] ---*/ -assert.sameValue(Float32Array.name, "Float32Array"); - -verifyNotEnumerable(Float32Array, "name"); -verifyNotWritable(Float32Array, "name"); -verifyConfigurable(Float32Array, "name"); +verifyProperty(Float32Array, "name", { + value: "Float32Array", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrayConstructors/Float64Array/name.js b/test/built-ins/TypedArrayConstructors/Float64Array/name.js index a95bf2635a..a01ede5bc4 100644 --- a/test/built-ins/TypedArrayConstructors/Float64Array/name.js +++ b/test/built-ins/TypedArrayConstructors/Float64Array/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [TypedArray] ---*/ -assert.sameValue(Float64Array.name, "Float64Array"); - -verifyNotEnumerable(Float64Array, "name"); -verifyNotWritable(Float64Array, "name"); -verifyConfigurable(Float64Array, "name"); +verifyProperty(Float64Array, "name", { + value: "Float64Array", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrayConstructors/Int16Array/name.js b/test/built-ins/TypedArrayConstructors/Int16Array/name.js index 95aefeb91e..db1aeff71e 100644 --- a/test/built-ins/TypedArrayConstructors/Int16Array/name.js +++ b/test/built-ins/TypedArrayConstructors/Int16Array/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [TypedArray] ---*/ -assert.sameValue(Int16Array.name, "Int16Array"); - -verifyNotEnumerable(Int16Array, "name"); -verifyNotWritable(Int16Array, "name"); -verifyConfigurable(Int16Array, "name"); +verifyProperty(Int16Array, "name", { + value: "Int16Array", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrayConstructors/Int32Array/name.js b/test/built-ins/TypedArrayConstructors/Int32Array/name.js index b3b1205859..7e84123fec 100644 --- a/test/built-ins/TypedArrayConstructors/Int32Array/name.js +++ b/test/built-ins/TypedArrayConstructors/Int32Array/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [TypedArray] ---*/ -assert.sameValue(Int32Array.name, "Int32Array"); - -verifyNotEnumerable(Int32Array, "name"); -verifyNotWritable(Int32Array, "name"); -verifyConfigurable(Int32Array, "name"); +verifyProperty(Int32Array, "name", { + value: "Int32Array", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrayConstructors/Int8Array/name.js b/test/built-ins/TypedArrayConstructors/Int8Array/name.js index 5b7d448877..b6b3d99811 100644 --- a/test/built-ins/TypedArrayConstructors/Int8Array/name.js +++ b/test/built-ins/TypedArrayConstructors/Int8Array/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [TypedArray] ---*/ -assert.sameValue(Int8Array.name, "Int8Array"); - -verifyNotEnumerable(Int8Array, "name"); -verifyNotWritable(Int8Array, "name"); -verifyConfigurable(Int8Array, "name"); +verifyProperty(Int8Array, "name", { + value: "Int8Array", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrayConstructors/Uint16Array/name.js b/test/built-ins/TypedArrayConstructors/Uint16Array/name.js index 0c6bde68fd..033be96f30 100644 --- a/test/built-ins/TypedArrayConstructors/Uint16Array/name.js +++ b/test/built-ins/TypedArrayConstructors/Uint16Array/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [TypedArray] ---*/ -assert.sameValue(Uint16Array.name, "Uint16Array"); - -verifyNotEnumerable(Uint16Array, "name"); -verifyNotWritable(Uint16Array, "name"); -verifyConfigurable(Uint16Array, "name"); +verifyProperty(Uint16Array, "name", { + value: "Uint16Array", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrayConstructors/Uint32Array/name.js b/test/built-ins/TypedArrayConstructors/Uint32Array/name.js index 4525a1a352..00d1b535ce 100644 --- a/test/built-ins/TypedArrayConstructors/Uint32Array/name.js +++ b/test/built-ins/TypedArrayConstructors/Uint32Array/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [TypedArray] ---*/ -assert.sameValue(Uint32Array.name, "Uint32Array"); - -verifyNotEnumerable(Uint32Array, "name"); -verifyNotWritable(Uint32Array, "name"); -verifyConfigurable(Uint32Array, "name"); +verifyProperty(Uint32Array, "name", { + value: "Uint32Array", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrayConstructors/Uint8Array/name.js b/test/built-ins/TypedArrayConstructors/Uint8Array/name.js index 527c75893c..ba114dbaf0 100644 --- a/test/built-ins/TypedArrayConstructors/Uint8Array/name.js +++ b/test/built-ins/TypedArrayConstructors/Uint8Array/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [TypedArray] ---*/ -assert.sameValue(Uint8Array.name, "Uint8Array"); - -verifyNotEnumerable(Uint8Array, "name"); -verifyNotWritable(Uint8Array, "name"); -verifyConfigurable(Uint8Array, "name"); +verifyProperty(Uint8Array, "name", { + value: "Uint8Array", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/TypedArrayConstructors/Uint8ClampedArray/name.js b/test/built-ins/TypedArrayConstructors/Uint8ClampedArray/name.js index 1d13b77d25..7b8eceefb8 100644 --- a/test/built-ins/TypedArrayConstructors/Uint8ClampedArray/name.js +++ b/test/built-ins/TypedArrayConstructors/Uint8ClampedArray/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] features: [TypedArray] ---*/ -assert.sameValue(Uint8ClampedArray.name, "Uint8ClampedArray"); - -verifyNotEnumerable(Uint8ClampedArray, "name"); -verifyNotWritable(Uint8ClampedArray, "name"); -verifyConfigurable(Uint8ClampedArray, "name"); +verifyProperty(Uint8ClampedArray, "name", { + value: "Uint8ClampedArray", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/length.js b/test/built-ins/WeakMap/length.js index 51df6941c3..518b780590 100644 --- a/test/built-ins/WeakMap/length.js +++ b/test/built-ins/WeakMap/length.js @@ -7,8 +7,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(WeakMap.length, 0, 'The value of `WeakMap.length` is `0`'); - -verifyNotEnumerable(WeakMap, 'length'); -verifyNotWritable(WeakMap, 'length'); -verifyConfigurable(WeakMap, 'length'); +verifyProperty(WeakMap, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/name.js b/test/built-ins/WeakMap/name.js index 05da1b73fc..534cb9f346 100644 --- a/test/built-ins/WeakMap/name.js +++ b/test/built-ins/WeakMap/name.js @@ -10,11 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.name, 'WeakMap', - 'The value of `WeakMap.name` is "WeakMap"' -); - -verifyNotEnumerable(WeakMap, 'name'); -verifyNotWritable(WeakMap, 'name'); -verifyConfigurable(WeakMap, 'name'); +verifyProperty(WeakMap, "name", { + value: "WeakMap", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/prototype/delete/length.js b/test/built-ins/WeakMap/prototype/delete/length.js index 12bfafbd69..1ebe1e46b8 100644 --- a/test/built-ins/WeakMap/prototype/delete/length.js +++ b/test/built-ins/WeakMap/prototype/delete/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.delete.length, 1, - 'The value of WeakMap.prototype.delete.length is 1' -); - -verifyNotEnumerable(WeakMap.prototype.delete, 'length'); -verifyNotWritable(WeakMap.prototype.delete, 'length'); -verifyConfigurable(WeakMap.prototype.delete, 'length'); +verifyProperty(WeakMap.prototype.delete, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/prototype/delete/name.js b/test/built-ins/WeakMap/prototype/delete/name.js index 81d7982830..d594d77530 100644 --- a/test/built-ins/WeakMap/prototype/delete/name.js +++ b/test/built-ins/WeakMap/prototype/delete/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.delete.name, 'delete', - 'The value of WeakMap.prototype.delete.name is "delete"' -); - -verifyNotEnumerable(WeakMap.prototype.delete, 'name'); -verifyNotWritable(WeakMap.prototype.delete, 'name'); -verifyConfigurable(WeakMap.prototype.delete, 'name'); +verifyProperty(WeakMap.prototype.delete, "name", { + value: "delete", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/prototype/get/length.js b/test/built-ins/WeakMap/prototype/get/length.js index 3813ef9c2c..1e085f46f9 100644 --- a/test/built-ins/WeakMap/prototype/get/length.js +++ b/test/built-ins/WeakMap/prototype/get/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.get.length, 1, - 'The value of `WeakMap.prototype.get.length` is `1`' -); - -verifyNotEnumerable(WeakMap.prototype.get, 'length'); -verifyNotWritable(WeakMap.prototype.get, 'length'); -verifyConfigurable(WeakMap.prototype.get, 'length'); +verifyProperty(WeakMap.prototype.get, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/prototype/get/name.js b/test/built-ins/WeakMap/prototype/get/name.js index 5b27eee5a6..53c24bb6ca 100644 --- a/test/built-ins/WeakMap/prototype/get/name.js +++ b/test/built-ins/WeakMap/prototype/get/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.get.name, 'get', - 'The value of `WeakMap.prototype.get.name` is `"get"`' -); - -verifyNotEnumerable(WeakMap.prototype.get, 'name'); -verifyNotWritable(WeakMap.prototype.get, 'name'); -verifyConfigurable(WeakMap.prototype.get, 'name'); +verifyProperty(WeakMap.prototype.get, "name", { + value: "get", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/prototype/has/length.js b/test/built-ins/WeakMap/prototype/has/length.js index 44e7e3ddbf..49e98b2ce5 100644 --- a/test/built-ins/WeakMap/prototype/has/length.js +++ b/test/built-ins/WeakMap/prototype/has/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.has.length, 1, - 'The value of WeakMap.prototype.has.length is 1' -); - -verifyNotEnumerable(WeakMap.prototype.has, 'length'); -verifyNotWritable(WeakMap.prototype.has, 'length'); -verifyConfigurable(WeakMap.prototype.has, 'length'); +verifyProperty(WeakMap.prototype.has, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/prototype/has/name.js b/test/built-ins/WeakMap/prototype/has/name.js index 37aceefc60..c414486890 100644 --- a/test/built-ins/WeakMap/prototype/has/name.js +++ b/test/built-ins/WeakMap/prototype/has/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.has.name, 'has', - 'The value of WeakMap.prototype.has.name is "has"' -); - -verifyNotEnumerable(WeakMap.prototype.has, 'name'); -verifyNotWritable(WeakMap.prototype.has, 'name'); -verifyConfigurable(WeakMap.prototype.has, 'name'); +verifyProperty(WeakMap.prototype.has, "name", { + value: "has", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/prototype/set/length.js b/test/built-ins/WeakMap/prototype/set/length.js index bbb729d8cc..2def4b286b 100644 --- a/test/built-ins/WeakMap/prototype/set/length.js +++ b/test/built-ins/WeakMap/prototype/set/length.js @@ -11,11 +11,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.set.length, 2, - 'The value of `WeakMap.prototype.set.length` is `2`' -); - -verifyNotEnumerable(WeakMap.prototype.set, 'length'); -verifyNotWritable(WeakMap.prototype.set, 'length'); -verifyConfigurable(WeakMap.prototype.set, 'length'); +verifyProperty(WeakMap.prototype.set, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakMap/prototype/set/name.js b/test/built-ins/WeakMap/prototype/set/name.js index ba923e33e6..3abf3a5fff 100644 --- a/test/built-ins/WeakMap/prototype/set/name.js +++ b/test/built-ins/WeakMap/prototype/set/name.js @@ -11,11 +11,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakMap.prototype.set.name, 'set', - 'The value of WeakMap.prototype.set.name is "set"' -); - -verifyNotEnumerable(WeakMap.prototype.set, 'name'); -verifyNotWritable(WeakMap.prototype.set, 'name'); -verifyConfigurable(WeakMap.prototype.set, 'name'); +verifyProperty(WeakMap.prototype.set, "name", { + value: "set", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakSet/length.js b/test/built-ins/WeakSet/length.js index 02011e0fad..f0ea3d40cc 100644 --- a/test/built-ins/WeakSet/length.js +++ b/test/built-ins/WeakSet/length.js @@ -7,8 +7,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(WeakSet.length, 0, 'The value of `WeakSet.length` is `0`'); - -verifyNotEnumerable(WeakSet, 'length'); -verifyNotWritable(WeakSet, 'length'); -verifyConfigurable(WeakSet, 'length'); +verifyProperty(WeakSet, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakSet/name.js b/test/built-ins/WeakSet/name.js index cd884f941d..c980ba969c 100644 --- a/test/built-ins/WeakSet/name.js +++ b/test/built-ins/WeakSet/name.js @@ -10,11 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.name, 'WeakSet', - 'The value of `WeakSet.name` is "WeakSet"' -); - -verifyNotEnumerable(WeakSet, 'name'); -verifyNotWritable(WeakSet, 'name'); -verifyConfigurable(WeakSet, 'name'); +verifyProperty(WeakSet, "name", { + value: "WeakSet", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakSet/prototype/add/length.js b/test/built-ins/WeakSet/prototype/add/length.js index 39531659be..4ee85ab72d 100644 --- a/test/built-ins/WeakSet/prototype/add/length.js +++ b/test/built-ins/WeakSet/prototype/add/length.js @@ -11,11 +11,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.add.length, 1, - 'The value of `WeakSet.prototype.add.length` is `1`' -); - -verifyNotEnumerable(WeakSet.prototype.add, 'length'); -verifyNotWritable(WeakSet.prototype.add, 'length'); -verifyConfigurable(WeakSet.prototype.add, 'length'); +verifyProperty(WeakSet.prototype.add, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakSet/prototype/add/name.js b/test/built-ins/WeakSet/prototype/add/name.js index 79e970f66e..838eac83cf 100644 --- a/test/built-ins/WeakSet/prototype/add/name.js +++ b/test/built-ins/WeakSet/prototype/add/name.js @@ -11,11 +11,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.add.name, 'add', - 'The value of WeakSet.prototype.add.name is "add"' -); - -verifyNotEnumerable(WeakSet.prototype.add, 'name'); -verifyNotWritable(WeakSet.prototype.add, 'name'); -verifyConfigurable(WeakSet.prototype.add, 'name'); +verifyProperty(WeakSet.prototype.add, "name", { + value: "add", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakSet/prototype/delete/length.js b/test/built-ins/WeakSet/prototype/delete/length.js index 1efdf01e02..08ff02047d 100644 --- a/test/built-ins/WeakSet/prototype/delete/length.js +++ b/test/built-ins/WeakSet/prototype/delete/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.delete.length, 1, - 'The value of WeakSet.prototype.delete.length is 1' -); - -verifyNotEnumerable(WeakSet.prototype.delete, 'length'); -verifyNotWritable(WeakSet.prototype.delete, 'length'); -verifyConfigurable(WeakSet.prototype.delete, 'length'); +verifyProperty(WeakSet.prototype.delete, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakSet/prototype/delete/name.js b/test/built-ins/WeakSet/prototype/delete/name.js index 15a494918d..2257e30837 100644 --- a/test/built-ins/WeakSet/prototype/delete/name.js +++ b/test/built-ins/WeakSet/prototype/delete/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.delete.name, 'delete', - 'The value of WeakSet.prototype.delete.name is "delete"' -); - -verifyNotEnumerable(WeakSet.prototype.delete, 'name'); -verifyNotWritable(WeakSet.prototype.delete, 'name'); -verifyConfigurable(WeakSet.prototype.delete, 'name'); +verifyProperty(WeakSet.prototype.delete, "name", { + value: "delete", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakSet/prototype/has/length.js b/test/built-ins/WeakSet/prototype/has/length.js index dbd0138ebf..ee09075123 100644 --- a/test/built-ins/WeakSet/prototype/has/length.js +++ b/test/built-ins/WeakSet/prototype/has/length.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.has.length, 1, - 'The value of WeakSet.prototype.has.length is 1' -); - -verifyNotEnumerable(WeakSet.prototype.has, 'length'); -verifyNotWritable(WeakSet.prototype.has, 'length'); -verifyConfigurable(WeakSet.prototype.has, 'length'); +verifyProperty(WeakSet.prototype.has, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/WeakSet/prototype/has/name.js b/test/built-ins/WeakSet/prototype/has/name.js index 6feeea3742..dab2d5eed4 100644 --- a/test/built-ins/WeakSet/prototype/has/name.js +++ b/test/built-ins/WeakSet/prototype/has/name.js @@ -12,11 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - WeakSet.prototype.has.name, 'has', - 'The value of WeakSet.prototype.has.name is "has"' -); - -verifyNotEnumerable(WeakSet.prototype.has, 'name'); -verifyNotWritable(WeakSet.prototype.has, 'name'); -verifyConfigurable(WeakSet.prototype.has, 'name'); +verifyProperty(WeakSet.prototype.has, "name", { + value: "has", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/decodeURI/name.js b/test/built-ins/decodeURI/name.js index c682ae17cd..4ddad9009e 100644 --- a/test/built-ins/decodeURI/name.js +++ b/test/built-ins/decodeURI/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(decodeURI.name, "decodeURI"); - -verifyNotEnumerable(decodeURI, "name"); -verifyNotWritable(decodeURI, "name"); -verifyConfigurable(decodeURI, "name"); +verifyProperty(decodeURI, "name", { + value: "decodeURI", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/decodeURIComponent/name.js b/test/built-ins/decodeURIComponent/name.js index f2dc4d8148..e1b8020685 100644 --- a/test/built-ins/decodeURIComponent/name.js +++ b/test/built-ins/decodeURIComponent/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(decodeURIComponent.name, "decodeURIComponent"); - -verifyNotEnumerable(decodeURIComponent, "name"); -verifyNotWritable(decodeURIComponent, "name"); -verifyConfigurable(decodeURIComponent, "name"); +verifyProperty(decodeURIComponent, "name", { + value: "decodeURIComponent", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/encodeURI/name.js b/test/built-ins/encodeURI/name.js index 5fb1c90787..e2fe1c0acf 100644 --- a/test/built-ins/encodeURI/name.js +++ b/test/built-ins/encodeURI/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(encodeURI.name, "encodeURI"); - -verifyNotEnumerable(encodeURI, "name"); -verifyNotWritable(encodeURI, "name"); -verifyConfigurable(encodeURI, "name"); +verifyProperty(encodeURI, "name", { + value: "encodeURI", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/encodeURIComponent/name.js b/test/built-ins/encodeURIComponent/name.js index 89278cbaca..a596d3b9c9 100644 --- a/test/built-ins/encodeURIComponent/name.js +++ b/test/built-ins/encodeURIComponent/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(encodeURIComponent.name, "encodeURIComponent"); - -verifyNotEnumerable(encodeURIComponent, "name"); -verifyNotWritable(encodeURIComponent, "name"); -verifyConfigurable(encodeURIComponent, "name"); +verifyProperty(encodeURIComponent, "name", { + value: "encodeURIComponent", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/eval/name.js b/test/built-ins/eval/name.js index eeff0bbee9..906d7c9b8d 100644 --- a/test/built-ins/eval/name.js +++ b/test/built-ins/eval/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(eval.name, "eval"); - -verifyNotEnumerable(eval, "name"); -verifyNotWritable(eval, "name"); -verifyConfigurable(eval, "name"); +verifyProperty(eval, "name", { + value: "eval", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/isFinite/length.js b/test/built-ins/isFinite/length.js index 26450af159..9e43266c05 100644 --- a/test/built-ins/isFinite/length.js +++ b/test/built-ins/isFinite/length.js @@ -8,8 +8,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(isFinite.length, 1, "The value of `isFinite.length` is `1`"); - -verifyNotEnumerable(isFinite, "length"); -verifyNotWritable(isFinite, "length"); -verifyConfigurable(isFinite, "length"); +verifyProperty(isFinite, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/isFinite/name.js b/test/built-ins/isFinite/name.js index 344ab9e176..e9f819a2ea 100644 --- a/test/built-ins/isFinite/name.js +++ b/test/built-ins/isFinite/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(isFinite.name, "isFinite"); - -verifyNotEnumerable(isFinite, "name"); -verifyNotWritable(isFinite, "name"); -verifyConfigurable(isFinite, "name"); +verifyProperty(isFinite, "name", { + value: "isFinite", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/isNaN/length.js b/test/built-ins/isNaN/length.js index 758e686379..21373d118e 100644 --- a/test/built-ins/isNaN/length.js +++ b/test/built-ins/isNaN/length.js @@ -8,8 +8,9 @@ description: > includes: [propertyHelper.js] ---*/ -assert.sameValue(isNaN.length, 1, "The value of `isNaN.length` is `1`"); - -verifyNotEnumerable(isNaN, "length"); -verifyNotWritable(isNaN, "length"); -verifyConfigurable(isNaN, "length"); +verifyProperty(isNaN, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/isNaN/name.js b/test/built-ins/isNaN/name.js index b270cf9705..5c506a8f99 100644 --- a/test/built-ins/isNaN/name.js +++ b/test/built-ins/isNaN/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(isNaN.name, "isNaN"); - -verifyNotEnumerable(isNaN, "name"); -verifyNotWritable(isNaN, "name"); -verifyConfigurable(isNaN, "name"); +verifyProperty(isNaN, "name", { + value: "isNaN", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/parseFloat/name.js b/test/built-ins/parseFloat/name.js index 47b81bf3ef..1495444887 100644 --- a/test/built-ins/parseFloat/name.js +++ b/test/built-ins/parseFloat/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(parseFloat.name, "parseFloat"); - -verifyNotEnumerable(parseFloat, "name"); -verifyNotWritable(parseFloat, "name"); -verifyConfigurable(parseFloat, "name"); +verifyProperty(parseFloat, "name", { + value: "parseFloat", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/parseInt/name.js b/test/built-ins/parseInt/name.js index 00dc1153b1..975dc2cea6 100644 --- a/test/built-ins/parseInt/name.js +++ b/test/built-ins/parseInt/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(parseInt.name, "parseInt", 'The value of parseInt.name is "parseInt"'); - -verifyNotEnumerable(parseInt, "name"); -verifyNotWritable(parseInt, "name"); -verifyConfigurable(parseInt, "name"); +verifyProperty(parseInt, "name", { + value: "parseInt", + writable: false, + enumerable: false, + configurable: true +});