From 4f35b40617f9902f56839bd3bc0ba9e7664301c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= <andre.bargull@gmail.com> Date: Tue, 11 Aug 2015 17:53:40 +0200 Subject: [PATCH] Replace runTestCase with assert helpers [test/built-ins/Object] --- .../built-ins/Object/getPrototypeOf/15.2.3.2-0-1.js | 8 +------- .../built-ins/Object/getPrototypeOf/15.2.3.2-0-2.js | 8 +------- .../built-ins/Object/getPrototypeOf/15.2.3.2-1-3.js | 6 +----- .../built-ins/Object/getPrototypeOf/15.2.3.2-1-4.js | 6 +----- test/built-ins/Object/getPrototypeOf/15.2.3.2-1.js | 6 +----- .../built-ins/Object/getPrototypeOf/15.2.3.2-2-1.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-10.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-11.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-12.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-13.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-14.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-15.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-16.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-17.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-18.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-19.js | 6 +----- .../built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js | 9 ++------- .../Object/getPrototypeOf/15.2.3.2-2-20.js | 6 +----- .../Object/getPrototypeOf/15.2.3.2-2-21.js | 6 +----- .../Object/getPrototypeOf/15.2.3.2-2-22.js | 6 +----- .../Object/getPrototypeOf/15.2.3.2-2-23.js | 6 +----- .../Object/getPrototypeOf/15.2.3.2-2-24.js | 6 +----- .../Object/getPrototypeOf/15.2.3.2-2-25.js | 6 +----- .../Object/getPrototypeOf/15.2.3.2-2-26.js | 6 +----- .../Object/getPrototypeOf/15.2.3.2-2-27.js | 6 +----- .../Object/getPrototypeOf/15.2.3.2-2-28.js | 6 +----- .../built-ins/Object/getPrototypeOf/15.2.3.2-2-3.js | 8 +------- .../Object/getPrototypeOf/15.2.3.2-2-30.js | 9 ++------- .../Object/getPrototypeOf/15.2.3.2-2-31.js | 7 +------ .../built-ins/Object/getPrototypeOf/15.2.3.2-2-4.js | 8 +------- .../built-ins/Object/getPrototypeOf/15.2.3.2-2-5.js | 8 +------- .../built-ins/Object/getPrototypeOf/15.2.3.2-2-6.js | 8 +------- .../built-ins/Object/getPrototypeOf/15.2.3.2-2-7.js | 8 +------- .../built-ins/Object/getPrototypeOf/15.2.3.2-2-8.js | 8 +------- .../built-ins/Object/getPrototypeOf/15.2.3.2-2-9.js | 8 +------- test/built-ins/Object/prototype/15.2.3.1.js | 13 ++++--------- .../Object/prototype/hasOwnProperty/8.12.1-1_1.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_10.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_11.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_12.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_13.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_14.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_15.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_16.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_17.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_18.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_19.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_2.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_20.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_21.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_22.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_23.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_24.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_25.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_26.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_27.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_28.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_29.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_3.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_30.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_31.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_32.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_33.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_34.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_35.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_36.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_37.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_38.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_39.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_4.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_40.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_41.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_42.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_43.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_44.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_45.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_46.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_47.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_48.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_49.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_5.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_6.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_7.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_8.js | 7 +------ .../Object/prototype/hasOwnProperty/8.12.1-1_9.js | 7 +------ .../Object/prototype/toString/15.2.4.2-1-1.js | 6 +----- .../Object/prototype/toString/15.2.4.2-1-2.js | 6 +----- .../Object/prototype/toString/15.2.4.2-2-1.js | 6 +----- .../Object/prototype/toString/15.2.4.2-2-2.js | 6 +----- .../Object/prototype/valueOf/15.2.4.4-1.js | 6 +----- .../Object/prototype/valueOf/15.2.4.4-2.js | 6 +----- 91 files changed, 96 insertions(+), 551 deletions(-) diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-1.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-1.js index 784882871b..691b90f973 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-1.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-1.js @@ -4,12 +4,6 @@ /*--- es5id: 15.2.3.2-0-1 description: Object.getPrototypeOf must exist as a function -includes: [runTestCase.js] ---*/ -function testcase() { - if (typeof(Object.getPrototypeOf) === "function") { - return true; - } - } -runTestCase(testcase); +assert.sameValue(typeof(Object.getPrototypeOf), "function", 'typeof(Object.getPrototypeOf)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-2.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-2.js index f6f8449971..7e4e1f4437 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-2.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-2.js @@ -4,12 +4,6 @@ /*--- es5id: 15.2.3.2-0-2 description: Object.getPrototypeOf must exist as a function taking 1 parameter -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf.length === 1) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf.length, 1, 'Object.getPrototypeOf.length'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-3.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-3.js index 88c4668294..215e8f9b69 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-3.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-3.js @@ -4,10 +4,6 @@ /*--- es5id: 15.2.3.2-1-3 description: Object.getPrototypeOf returns Boolean.prototype if 'O' is a boolean -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.getPrototypeOf(true) === Boolean.prototype; -} -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(true), Boolean.prototype, 'Object.getPrototypeOf(true)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-4.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-4.js index eaba0ca0f4..b6a1fbfe67 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-4.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-4.js @@ -4,10 +4,6 @@ /*--- es5id: 15.2.3.2-1-4 description: Object.getPrototypeOf returns String.prototype if 'O' is a string -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.getPrototypeOf("abc") === String.prototype; -} -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf("abc"), String.prototype, 'Object.getPrototypeOf("abc")'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1.js index 5f685e81f9..8d3805f4f8 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1.js @@ -4,10 +4,6 @@ /*--- es5id: 15.2.3.2-1 description: Object.getPrototypeOf returns Number.prototype if 'O' is a number -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.getPrototypeOf(0) === Number.prototype; -} -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(0), Number.prototype, 'Object.getPrototypeOf(0)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-1.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-1.js index 57ae4e1123..84d8418260 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-1.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-1.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-1 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Boolean) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(Boolean) === Function.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(Boolean), Function.prototype, 'Object.getPrototypeOf(Boolean)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-10.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-10.js index 83ee831d6c..c12ef6bbc5 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-10.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-10.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-10 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (RegExp) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(RegExp) === Function.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(RegExp), Function.prototype, 'Object.getPrototypeOf(RegExp)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-11.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-11.js index 76a3743df5..adbbb32f6e 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-11.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-11.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-11 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Error) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(Error) === Function.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(Error), Function.prototype, 'Object.getPrototypeOf(Error)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-12.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-12.js index 7a9a91cbaf..d0a3598439 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-12.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-12.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-12 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (EvalError) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(EvalError) === Error) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(EvalError), Error, 'Object.getPrototypeOf(EvalError)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-13.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-13.js index 1d33936d65..c8bb2ddd8a 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-13.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-13.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-13 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (RangeError) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(RangeError) === Error) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(RangeError), Error, 'Object.getPrototypeOf(RangeError)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-14.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-14.js index c9d70daaeb..ce36232356 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-14.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-14.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-14 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (ReferenceError) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(ReferenceError) === Error) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(ReferenceError), Error, 'Object.getPrototypeOf(ReferenceError)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-15.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-15.js index 6743b86fd3..b4f74461a1 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-15.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-15.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-15 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (SyntaxError) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(SyntaxError) === Error) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(SyntaxError), Error, 'Object.getPrototypeOf(SyntaxError)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-16.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-16.js index 504c70f929..1041acbf5b 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-16.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-16.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-16 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (TypeError) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(TypeError) === Error) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(TypeError), Error, 'Object.getPrototypeOf(TypeError)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-17.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-17.js index f38389f7b0..97b6ac4c83 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-17.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-17.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-17 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (URIError) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(URIError) === Error) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(URIError), Error, 'Object.getPrototypeOf(URIError)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-18.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-18.js index 6642df79f2..658a998553 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-18.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-18.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-18 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (JSON) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(JSON) === Object.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(JSON), Object.prototype, 'Object.getPrototypeOf(JSON)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js index 12b6c7f825..c0e3b2b899 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js @@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-19 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Object object) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; - return Object.getPrototypeOf(obj) === Object.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(obj), Object.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js index 1964ebedaa..753ca87a10 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js @@ -9,10 +9,8 @@ es5id: 15.2.3.2-2-2 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (custom object) -includes: [runTestCase.js] ---*/ -function testcase() { function base() {} function derived() {} @@ -20,8 +18,5 @@ function testcase() { var d = new derived(); var x = Object.getPrototypeOf(d); - if (x.isPrototypeOf(d) === true) { - return true; - } - } -runTestCase(testcase); + +assert.sameValue(x.isPrototypeOf(d), true, 'x.isPrototypeOf(d)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js index 8440a85c76..062f7af148 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js @@ -6,14 +6,10 @@ es5id: 15.2.3.2-2-20 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Function Object) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = function (a, b) { return a + b; }; - return Object.getPrototypeOf(obj) === Function.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(obj), Function.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js index 0609c51327..8652973e53 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js @@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-21 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Array object) -includes: [runTestCase.js] ---*/ -function testcase() { var arr = [1, 2, 3]; - return Object.getPrototypeOf(arr) === Array.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(arr), Array.prototype, 'Object.getPrototypeOf(arr)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js index c43465463e..13d845f543 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js @@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-22 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (String object) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = new String("abc"); - return Object.getPrototypeOf(obj) === String.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(obj), String.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js index 2f007b3117..7b825d9702 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js @@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-23 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Boolean object) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = new Boolean(true); - return Object.getPrototypeOf(obj) === Boolean.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(obj), Boolean.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js index 5f5df102f9..8a0759e13b 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js @@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-24 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Number object) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = new Number(-3); - return Object.getPrototypeOf(obj) === Number.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(obj), Number.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js index 4e6224b95b..0c47078819 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js @@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-25 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Date object) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = new Date(); - return Object.getPrototypeOf(obj) === Date.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(obj), Date.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js index 314744696f..7b033a2ca0 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js @@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-26 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (RegExp object) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = new RegExp(); - return Object.getPrototypeOf(obj) === RegExp.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(obj), RegExp.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js index 25dab3f6d8..9851559ac6 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js @@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-27 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Error object) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = new Error(); - return Object.getPrototypeOf(obj) === Error.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(obj), Error.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js index 8a23c436d3..a10b2bbaad 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js @@ -6,15 +6,11 @@ es5id: 15.2.3.2-2-28 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (the Arguments object) -includes: [runTestCase.js] ---*/ -function testcase() { function fun() { return arguments; } var obj = fun(1, true, 3); - return Object.getPrototypeOf(obj) === Object.prototype; - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(obj), Object.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-3.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-3.js index 7bd2eac42f..2723e7fe33 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-3.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-3.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-3 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Object) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(Object) === Function.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(Object), Function.prototype, 'Object.getPrototypeOf(Object)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js index 8595b6cb29..dceac26413 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js @@ -6,14 +6,9 @@ es5id: 15.2.3.2-2-30 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (the global object) -includes: - - runTestCase.js - - fnGlobalObject.js +includes: [fnGlobalObject.js] ---*/ -function testcase() { var proto = Object.getPrototypeOf(fnGlobalObject()); - return proto.isPrototypeOf(fnGlobalObject()) === true; - } -runTestCase(testcase); +assert.sameValue(proto.isPrototypeOf(fnGlobalObject()), true, 'proto.isPrototypeOf(fnGlobalObject())'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-31.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-31.js index 138e645d46..a2900e319d 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-31.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-31.js @@ -4,11 +4,6 @@ /*--- es5id: 15.2.3.2-2-31 description: Object.getPrototypeOf returns null -includes: [runTestCase.js] ---*/ -function testcase() { - - return (Object.getPrototypeOf(Object.prototype) === null); - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(Object.prototype), null, 'Object.getPrototypeOf(Object.prototype)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-4.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-4.js index 571f61685e..83f4a4fccd 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-4.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-4.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-4 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Function) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(Function) === Function.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(Function), Function.prototype, 'Object.getPrototypeOf(Function)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-5.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-5.js index ad732991fd..6dde8d3bdd 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-5.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-5.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-5 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Array) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(Array) === Function.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(Array), Function.prototype, 'Object.getPrototypeOf(Array)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-6.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-6.js index b93328b4d2..1c16be4ee2 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-6.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-6.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-6 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (String) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(String) === Function.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(String), Function.prototype, 'Object.getPrototypeOf(String)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-7.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-7.js index 5e8786c61e..401883c897 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-7.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-7.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-7 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Number) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(Number) === Function.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(Number), Function.prototype, 'Object.getPrototypeOf(Number)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-8.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-8.js index ee3d1b22b0..fc58a6aed4 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-8.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-8.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-8 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Math) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(Math) === Object.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(Math), Object.prototype, 'Object.getPrototypeOf(Math)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-9.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-9.js index da16d71bd7..95adcaa5e1 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-9.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-9.js @@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-9 description: > Object.getPrototypeOf returns the [[Prototype]] of its parameter (Date) -includes: [runTestCase.js] ---*/ -function testcase() { - if (Object.getPrototypeOf(Date) === Function.prototype) { - return true; - } - } -runTestCase(testcase); +assert.sameValue(Object.getPrototypeOf(Date), Function.prototype, 'Object.getPrototypeOf(Date)'); diff --git a/test/built-ins/Object/prototype/15.2.3.1.js b/test/built-ins/Object/prototype/15.2.3.1.js index 905d9fda3d..fb0ddee7f0 100644 --- a/test/built-ins/Object/prototype/15.2.3.1.js +++ b/test/built-ins/Object/prototype/15.2.3.1.js @@ -6,15 +6,10 @@ es5id: 15.2.3.1 description: > Object.prototype is a data property with default attribute values (false) -includes: [runTestCase.js] ---*/ -function testcase() { var desc = Object.getOwnPropertyDescriptor(Object, 'prototype'); - if (desc.writable === false && - desc.enumerable === false && - desc.configurable === false) { - return true; - } - } -runTestCase(testcase); + +assert.sameValue(desc.writable, false, 'desc.writable'); +assert.sameValue(desc.enumerable, false, 'desc.enumerable'); +assert.sameValue(desc.configurable, false, 'desc.configurable'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js index 740b332c2b..29e8245876 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js @@ -4,13 +4,8 @@ /*--- es5id: 8.12.1-1_1 description: Properties - [[HasOwnProperty]] (property does not exist) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js index 7a952e2095..0e5e905e3a 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_10 description: > Properties - [[HasOwnProperty]] (writable, configurable, non-enumerable own value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {value: 42, writable:true, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js index c727864a8b..d4f3d39034 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_11 description: > Properties - [[HasOwnProperty]] (writable, configurable, enumerable own value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js index 61430376a9..99004855e5 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_12 description: > Properties - [[HasOwnProperty]] (non-writable, non-configurable, non-enumerable inherited value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {value: 42}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js index 8d28021a0c..c12d0c3440 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_13 description: > Properties - [[HasOwnProperty]] (non-writable, non-configurable, enumerable inherited value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {value: 42, enumerable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js index c0044b7ae2..0dcb8a61a1 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_14 description: > Properties - [[HasOwnProperty]] (non-writable, configurable, non-enumerable inherited value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {value: 42, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js index 9882fc3041..54baa8f1a4 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_15 description: > Properties - [[HasOwnProperty]] (writable, non-configurable, non-enumerable inherited value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {value: 42, writable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js index b50b015dfd..6474f7f809 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_16 description: > Properties - [[HasOwnProperty]] (non-writable, configurable, enumerable inherited value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {value: 42, configurable:true, enumerable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js index cbb545f800..ac6c14ab38 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_17 description: > Properties - [[HasOwnProperty]] (writable, non-configurable, enumerable inherited value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js index ac3d45e673..8b8120c5ce 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_18 description: > Properties - [[HasOwnProperty]] (writable, configurable, non-enumerable inherited value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {value: 42, writable:true, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js index 2afc809f30..6eec46644e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_19 description: > Properties - [[HasOwnProperty]] (writable, configurable, enumerable inherited value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js index 3fd23a59fa..9e51b6eb9c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js @@ -4,13 +4,8 @@ /*--- es5id: 8.12.1-1_2 description: Properties - [[HasOwnProperty]] (old style own property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {foo: 42}; - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js index 4c317ce8a3..4c6c466f3a 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js @@ -4,13 +4,8 @@ /*--- es5id: 8.12.1-1_20 description: Properties - [[HasOwnProperty]] (literal own getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = { get foo() { return 42;} }; - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js index e0378aba25..aa8236e3bc 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js @@ -4,13 +4,8 @@ /*--- es5id: 8.12.1-1_21 description: Properties - [[HasOwnProperty]] (literal own setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = { set foo(x) {;} }; - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js index aec7dec5df..b23a22bfc3 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js @@ -6,13 +6,8 @@ es5id: 8.12.1-1_22 description: > Properties - [[HasOwnProperty]] (literal own getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = { get foo() { return 42;}, set foo(x) {;} }; - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js index 7fe6e85ef7..4e2587b1c1 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js @@ -4,14 +4,9 @@ /*--- es5id: 8.12.1-1_23 description: Properties - [[HasOwnProperty]] (literal inherited getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = { get foo() { return 42;} }; var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js index 59a8f25bc2..cf1cac60b2 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js @@ -4,14 +4,9 @@ /*--- es5id: 8.12.1-1_24 description: Properties - [[HasOwnProperty]] (literal inherited setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = { set foo(x) {;} }; var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js index 6e07b92a2e..fdb1e6d3a4 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_25 description: > Properties - [[HasOwnProperty]] (literal inherited getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = { get foo() { return 42;}, set foo(x) {;} }; var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js index 79cf21fda2..fd15435b5c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_26 description: > Properties - [[HasOwnProperty]] (non-configurable, non-enumerable own getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {get: function() {return 42;}}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js index 83d6f6ae8d..6d8b4634de 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_27 description: > Properties - [[HasOwnProperty]] (non-configurable, enumerable own getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js index 9ff6d79880..19bcb8142d 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_28 description: > Properties - [[HasOwnProperty]] (configurable, non-enumerable own getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {get: function() {return 42;}, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js index 9fc23c5991..01587705d1 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_29 description: > Properties - [[HasOwnProperty]] (configurable, enumerable own getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js index 63c51f9860..8c851da5a0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js @@ -4,14 +4,9 @@ /*--- es5id: 8.12.1-1_3 description: Properties - [[HasOwnProperty]] (old style inherited property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {foo:42}; var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js index 5d5eeecfb7..5d12f52ff7 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_30 description: > Properties - [[HasOwnProperty]] (non-configurable, non-enumerable own setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {set: function() {;}}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js index 16d5d9a07c..0e9e305753 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_31 description: > Properties - [[HasOwnProperty]] (non-configurable, enumerable own setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js index 0e6a204f88..f0a345b0be 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_32 description: > Properties - [[HasOwnProperty]] (configurable, non-enumerable own setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {set: function() {;}, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js index 22df230743..1b7e60c21a 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_33 description: > Properties - [[HasOwnProperty]] (configurable, enumerable own setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js index a915b5101e..2b34bf9b62 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_34 description: > Properties - [[HasOwnProperty]] (non-configurable, non-enumerable own getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js index 29f0e5822e..01ef0ead2d 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_35 description: > Properties - [[HasOwnProperty]] (non-configurable, enumerable own getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js index 918f4617f3..a077628697 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_36 description: > Properties - [[HasOwnProperty]] (configurable, non-enumerable own getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js index c9fd7a8525..1938b5a2c5 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_37 description: > Properties - [[HasOwnProperty]] (configurable, enumerable own getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js index dc8a53bde2..801ecdaeed 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_38 description: > Properties - [[HasOwnProperty]] (non-configurable, non-enumerable inherited getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {get: function() {return 42;}}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js index 5ff0e64dfe..5a0e15903c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_39 description: > Properties - [[HasOwnProperty]] (non-configurable, enumerable inherited getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js index 892f684078..dac63b0297 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_4 description: > Properties - [[HasOwnProperty]] (non-writable, non-configurable, non-enumerable own value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {value: 42}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js index d73fd07d38..a04fd43696 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_40 description: > Properties - [[HasOwnProperty]] (configurable, non-enumerable inherited getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {get: function() {return 42;}, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js index 4b53d9ad61..bf0dbd47da 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_41 description: > Properties - [[HasOwnProperty]] (configurable, enumerable inherited getter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js index 6b1c1f6f6b..97bab311fc 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_42 description: > Properties - [[HasOwnProperty]] (non-configurable, non-enumerable inherited setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {set: function() {;}}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js index 9648fe37fb..baa392b1fd 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_43 description: > Properties - [[HasOwnProperty]] (non-configurable, enumerable inherited setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js index d5809d6a63..07b368234a 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_44 description: > Properties - [[HasOwnProperty]] (configurable, non-enumerable inherited setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {set: function() {;}, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js index 7f16090479..68c0517ccb 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_45 description: > Properties - [[HasOwnProperty]] (configurable, enumerable inherited setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js index 6ab9572e91..1ff589a9b7 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_46 description: > Properties - [[HasOwnProperty]] (non-configurable, non-enumerable inherited getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js index a2f40e01c8..16bc5d71b5 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_47 description: > Properties - [[HasOwnProperty]] (non-configurable, enumerable inherited getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js index 2574083c91..0a9c741ff3 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_48 description: > Properties - [[HasOwnProperty]] (configurable, non-enumerable inherited getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js index 52f1a538bb..d492e9ee87 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_49 description: > Properties - [[HasOwnProperty]] (configurable, enumerable inherited getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js index f8d4525dce..19d6229e93 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_5 description: > Properties - [[HasOwnProperty]] (non-writable, non-configurable, enumerable own value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {value: 42, enumerable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js index 31a9a83cba..76bd5649c0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_6 description: > Properties - [[HasOwnProperty]] (non-writable, configurable, non-enumerable own value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {value: 42, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js index 0e50a69908..8c6ea68847 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_7 description: > Properties - [[HasOwnProperty]] (writable, non-configurable, non-enumerable own value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {value: 42, writable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js index 12cfec2b71..384f1c801e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_8 description: > Properties - [[HasOwnProperty]] (non-writable, configurable, enumerable own value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {value: 42, configurable:true, enumerable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js index 478fcbf0da..e17903b7c0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_9 description: > Properties - [[HasOwnProperty]] (writable, non-configurable, enumerable own value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/toString/15.2.4.2-1-1.js b/test/built-ins/Object/prototype/toString/15.2.4.2-1-1.js index 9e7131ac42..801dfbaf69 100644 --- a/test/built-ins/Object/prototype/toString/15.2.4.2-1-1.js +++ b/test/built-ins/Object/prototype/toString/15.2.4.2-1-1.js @@ -6,10 +6,6 @@ es5id: 15.2.4.2-1-1 description: > Object.prototype.toString - '[object Undefined]' will be returned when 'this' value is undefined -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.prototype.toString.call(undefined) === "[object Undefined]"; - } -runTestCase(testcase); +assert.sameValue(Object.prototype.toString.call(undefined), "[object Undefined]", 'Object.prototype.toString.call(undefined)'); diff --git a/test/built-ins/Object/prototype/toString/15.2.4.2-1-2.js b/test/built-ins/Object/prototype/toString/15.2.4.2-1-2.js index bcec702063..c6daf25000 100644 --- a/test/built-ins/Object/prototype/toString/15.2.4.2-1-2.js +++ b/test/built-ins/Object/prototype/toString/15.2.4.2-1-2.js @@ -6,10 +6,6 @@ es5id: 15.2.4.2-1-2 description: > Object.prototype.toString - '[object Undefined]' will be returned when 'this' value is undefined -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.prototype.toString.apply(undefined, []) === "[object Undefined]"; - } -runTestCase(testcase); +assert.sameValue(Object.prototype.toString.apply(undefined, []), "[object Undefined]", 'Object.prototype.toString.apply(undefined, [])'); diff --git a/test/built-ins/Object/prototype/toString/15.2.4.2-2-1.js b/test/built-ins/Object/prototype/toString/15.2.4.2-2-1.js index 6bc291ddb1..ee6120a79f 100644 --- a/test/built-ins/Object/prototype/toString/15.2.4.2-2-1.js +++ b/test/built-ins/Object/prototype/toString/15.2.4.2-2-1.js @@ -6,10 +6,6 @@ es5id: 15.2.4.2-2-1 description: > Object.prototype.toString - '[object Null]' will be returned when 'this' value is null -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.prototype.toString.call(null) === "[object Null]"; - } -runTestCase(testcase); +assert.sameValue(Object.prototype.toString.call(null), "[object Null]", 'Object.prototype.toString.call(null)'); diff --git a/test/built-ins/Object/prototype/toString/15.2.4.2-2-2.js b/test/built-ins/Object/prototype/toString/15.2.4.2-2-2.js index 5f0f42dc6c..194597ab0b 100644 --- a/test/built-ins/Object/prototype/toString/15.2.4.2-2-2.js +++ b/test/built-ins/Object/prototype/toString/15.2.4.2-2-2.js @@ -6,10 +6,6 @@ es5id: 15.2.4.2-2-2 description: > Object.prototype.toString - '[object Null]' will be returned when 'this' value is null -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.prototype.toString.apply(null, []) === "[object Null]"; - } -runTestCase(testcase); +assert.sameValue(Object.prototype.toString.apply(null, []), "[object Null]", 'Object.prototype.toString.apply(null, [])'); diff --git a/test/built-ins/Object/prototype/valueOf/15.2.4.4-1.js b/test/built-ins/Object/prototype/valueOf/15.2.4.4-1.js index e4dff48e11..8686aab858 100644 --- a/test/built-ins/Object/prototype/valueOf/15.2.4.4-1.js +++ b/test/built-ins/Object/prototype/valueOf/15.2.4.4-1.js @@ -6,10 +6,6 @@ es5id: 15.2.4.4-1 description: > Object.prototype.valueOf - typeof Object.prototype.valueOf.call(true)==="object" -includes: [runTestCase.js] ---*/ -function testcase() { - return (typeof Object.prototype.valueOf.call(true)) === "object"; -} -runTestCase(testcase); +assert.sameValue(typeof Object.prototype.valueOf.call(true), "object", 'typeof Object.prototype.valueOf.call(true)'); diff --git a/test/built-ins/Object/prototype/valueOf/15.2.4.4-2.js b/test/built-ins/Object/prototype/valueOf/15.2.4.4-2.js index 8a216344d4..bab367e171 100644 --- a/test/built-ins/Object/prototype/valueOf/15.2.4.4-2.js +++ b/test/built-ins/Object/prototype/valueOf/15.2.4.4-2.js @@ -6,10 +6,6 @@ es5id: 15.2.4.4-2 description: > Object.prototype.valueOf - typeof Object.prototype.valueOf.call(false)==="object" -includes: [runTestCase.js] ---*/ -function testcase() { - return (typeof Object.prototype.valueOf.call(false)) === "object"; -} -runTestCase(testcase); +assert.sameValue(typeof Object.prototype.valueOf.call(false), "object", 'typeof Object.prototype.valueOf.call(false)'); -- GitLab