Replace runTestCase with assert helpers [test/built-ins/Object]

This commit is contained in:
André Bargull 2015-08-11 17:53:40 +02:00
parent 44bc67797e
commit 4f35b40617
91 changed files with 96 additions and 551 deletions

View File

@ -4,12 +4,6 @@
/*--- /*---
es5id: 15.2.3.2-0-1 es5id: 15.2.3.2-0-1
description: Object.getPrototypeOf must exist as a function description: Object.getPrototypeOf must exist as a function
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(typeof(Object.getPrototypeOf), "function", 'typeof(Object.getPrototypeOf)');
if (typeof(Object.getPrototypeOf) === "function") {
return true;
}
}
runTestCase(testcase);

View File

@ -4,12 +4,6 @@
/*--- /*---
es5id: 15.2.3.2-0-2 es5id: 15.2.3.2-0-2
description: Object.getPrototypeOf must exist as a function taking 1 parameter description: Object.getPrototypeOf must exist as a function taking 1 parameter
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf.length, 1, 'Object.getPrototypeOf.length');
if (Object.getPrototypeOf.length === 1) {
return true;
}
}
runTestCase(testcase);

View File

@ -4,10 +4,6 @@
/*--- /*---
es5id: 15.2.3.2-1-3 es5id: 15.2.3.2-1-3
description: Object.getPrototypeOf returns Boolean.prototype if 'O' is a boolean description: Object.getPrototypeOf returns Boolean.prototype if 'O' is a boolean
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(true), Boolean.prototype, 'Object.getPrototypeOf(true)');
return Object.getPrototypeOf(true) === Boolean.prototype;
}
runTestCase(testcase);

View File

@ -4,10 +4,6 @@
/*--- /*---
es5id: 15.2.3.2-1-4 es5id: 15.2.3.2-1-4
description: Object.getPrototypeOf returns String.prototype if 'O' is a string description: Object.getPrototypeOf returns String.prototype if 'O' is a string
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf("abc"), String.prototype, 'Object.getPrototypeOf("abc")');
return Object.getPrototypeOf("abc") === String.prototype;
}
runTestCase(testcase);

View File

@ -4,10 +4,6 @@
/*--- /*---
es5id: 15.2.3.2-1 es5id: 15.2.3.2-1
description: Object.getPrototypeOf returns Number.prototype if 'O' is a number description: Object.getPrototypeOf returns Number.prototype if 'O' is a number
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(0), Number.prototype, 'Object.getPrototypeOf(0)');
return Object.getPrototypeOf(0) === Number.prototype;
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-1
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Boolean) (Boolean)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(Boolean), Function.prototype, 'Object.getPrototypeOf(Boolean)');
if (Object.getPrototypeOf(Boolean) === Function.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-10
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(RegExp) (RegExp)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(RegExp), Function.prototype, 'Object.getPrototypeOf(RegExp)');
if (Object.getPrototypeOf(RegExp) === Function.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-11
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Error) (Error)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(Error), Function.prototype, 'Object.getPrototypeOf(Error)');
if (Object.getPrototypeOf(Error) === Function.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-12
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(EvalError) (EvalError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(EvalError), Error, 'Object.getPrototypeOf(EvalError)');
if (Object.getPrototypeOf(EvalError) === Error) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-13
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(RangeError) (RangeError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(RangeError), Error, 'Object.getPrototypeOf(RangeError)');
if (Object.getPrototypeOf(RangeError) === Error) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-14
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(ReferenceError) (ReferenceError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(ReferenceError), Error, 'Object.getPrototypeOf(ReferenceError)');
if (Object.getPrototypeOf(ReferenceError) === Error) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-15
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(SyntaxError) (SyntaxError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(SyntaxError), Error, 'Object.getPrototypeOf(SyntaxError)');
if (Object.getPrototypeOf(SyntaxError) === Error) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-16
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(TypeError) (TypeError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(TypeError), Error, 'Object.getPrototypeOf(TypeError)');
if (Object.getPrototypeOf(TypeError) === Error) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-17
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(URIError) (URIError)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(URIError), Error, 'Object.getPrototypeOf(URIError)');
if (Object.getPrototypeOf(URIError) === Error) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-18
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(JSON) (JSON)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(JSON), Object.prototype, 'Object.getPrototypeOf(JSON)');
if (Object.getPrototypeOf(JSON) === Object.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-19
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Object object) (Object object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = {}; var obj = {};
return Object.getPrototypeOf(obj) === Object.prototype; assert.sameValue(Object.getPrototypeOf(obj), Object.prototype, 'Object.getPrototypeOf(obj)');
}
runTestCase(testcase);

View File

@ -9,10 +9,8 @@ es5id: 15.2.3.2-2-2
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(custom object) (custom object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
function base() {} function base() {}
function derived() {} function derived() {}
@ -20,8 +18,5 @@ function testcase() {
var d = new derived(); var d = new derived();
var x = Object.getPrototypeOf(d); var x = Object.getPrototypeOf(d);
if (x.isPrototypeOf(d) === true) {
return true; assert.sameValue(x.isPrototypeOf(d), true, 'x.isPrototypeOf(d)');
}
}
runTestCase(testcase);

View File

@ -6,14 +6,10 @@ es5id: 15.2.3.2-2-20
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Function Object) (Function Object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = function (a, b) { var obj = function (a, b) {
return a + b; return a + b;
}; };
return Object.getPrototypeOf(obj) === Function.prototype; assert.sameValue(Object.getPrototypeOf(obj), Function.prototype, 'Object.getPrototypeOf(obj)');
}
runTestCase(testcase);

View File

@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-21
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Array object) (Array object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var arr = [1, 2, 3]; var arr = [1, 2, 3];
return Object.getPrototypeOf(arr) === Array.prototype; assert.sameValue(Object.getPrototypeOf(arr), Array.prototype, 'Object.getPrototypeOf(arr)');
}
runTestCase(testcase);

View File

@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-22
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(String object) (String object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = new String("abc"); var obj = new String("abc");
return Object.getPrototypeOf(obj) === String.prototype; assert.sameValue(Object.getPrototypeOf(obj), String.prototype, 'Object.getPrototypeOf(obj)');
}
runTestCase(testcase);

View File

@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-23
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Boolean object) (Boolean object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = new Boolean(true); var obj = new Boolean(true);
return Object.getPrototypeOf(obj) === Boolean.prototype; assert.sameValue(Object.getPrototypeOf(obj), Boolean.prototype, 'Object.getPrototypeOf(obj)');
}
runTestCase(testcase);

View File

@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-24
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Number object) (Number object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = new Number(-3); var obj = new Number(-3);
return Object.getPrototypeOf(obj) === Number.prototype; assert.sameValue(Object.getPrototypeOf(obj), Number.prototype, 'Object.getPrototypeOf(obj)');
}
runTestCase(testcase);

View File

@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-25
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Date object) (Date object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = new Date(); var obj = new Date();
return Object.getPrototypeOf(obj) === Date.prototype; assert.sameValue(Object.getPrototypeOf(obj), Date.prototype, 'Object.getPrototypeOf(obj)');
}
runTestCase(testcase);

View File

@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-26
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(RegExp object) (RegExp object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = new RegExp(); var obj = new RegExp();
return Object.getPrototypeOf(obj) === RegExp.prototype; assert.sameValue(Object.getPrototypeOf(obj), RegExp.prototype, 'Object.getPrototypeOf(obj)');
}
runTestCase(testcase);

View File

@ -6,12 +6,8 @@ es5id: 15.2.3.2-2-27
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Error object) (Error object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var obj = new Error(); var obj = new Error();
return Object.getPrototypeOf(obj) === Error.prototype; assert.sameValue(Object.getPrototypeOf(obj), Error.prototype, 'Object.getPrototypeOf(obj)');
}
runTestCase(testcase);

View File

@ -6,15 +6,11 @@ es5id: 15.2.3.2-2-28
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(the Arguments object) (the Arguments object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
function fun() { function fun() {
return arguments; return arguments;
} }
var obj = fun(1, true, 3); var obj = fun(1, true, 3);
return Object.getPrototypeOf(obj) === Object.prototype; assert.sameValue(Object.getPrototypeOf(obj), Object.prototype, 'Object.getPrototypeOf(obj)');
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-3
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Object) (Object)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(Object), Function.prototype, 'Object.getPrototypeOf(Object)');
if (Object.getPrototypeOf(Object) === Function.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 15.2.3.2-2-30
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(the global object) (the global object)
includes: includes: [fnGlobalObject.js]
- runTestCase.js
- fnGlobalObject.js
---*/ ---*/
function testcase() {
var proto = Object.getPrototypeOf(fnGlobalObject()); var proto = Object.getPrototypeOf(fnGlobalObject());
return proto.isPrototypeOf(fnGlobalObject()) === true; assert.sameValue(proto.isPrototypeOf(fnGlobalObject()), true, 'proto.isPrototypeOf(fnGlobalObject())');
}
runTestCase(testcase);

View File

@ -4,11 +4,6 @@
/*--- /*---
es5id: 15.2.3.2-2-31 es5id: 15.2.3.2-2-31
description: Object.getPrototypeOf returns null description: Object.getPrototypeOf returns null
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(Object.prototype), null, 'Object.getPrototypeOf(Object.prototype)');
return (Object.getPrototypeOf(Object.prototype) === null);
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-4
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Function) (Function)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(Function), Function.prototype, 'Object.getPrototypeOf(Function)');
if (Object.getPrototypeOf(Function) === Function.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-5
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Array) (Array)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(Array), Function.prototype, 'Object.getPrototypeOf(Array)');
if (Object.getPrototypeOf(Array) === Function.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-6
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(String) (String)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(String), Function.prototype, 'Object.getPrototypeOf(String)');
if (Object.getPrototypeOf(String) === Function.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-7
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Number) (Number)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(Number), Function.prototype, 'Object.getPrototypeOf(Number)');
if (Object.getPrototypeOf(Number) === Function.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-8
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Math) (Math)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(Math), Object.prototype, 'Object.getPrototypeOf(Math)');
if (Object.getPrototypeOf(Math) === Object.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,12 +6,6 @@ es5id: 15.2.3.2-2-9
description: > description: >
Object.getPrototypeOf returns the [[Prototype]] of its parameter Object.getPrototypeOf returns the [[Prototype]] of its parameter
(Date) (Date)
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.getPrototypeOf(Date), Function.prototype, 'Object.getPrototypeOf(Date)');
if (Object.getPrototypeOf(Date) === Function.prototype) {
return true;
}
}
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 15.2.3.1
description: > description: >
Object.prototype is a data property with default attribute values Object.prototype is a data property with default attribute values
(false) (false)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var desc = Object.getOwnPropertyDescriptor(Object, 'prototype'); var desc = Object.getOwnPropertyDescriptor(Object, 'prototype');
if (desc.writable === false &&
desc.enumerable === false && assert.sameValue(desc.writable, false, 'desc.writable');
desc.configurable === false) { assert.sameValue(desc.enumerable, false, 'desc.enumerable');
return true; assert.sameValue(desc.configurable, false, 'desc.configurable');
}
}
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 8.12.1-1_1 es5id: 8.12.1-1_1
description: Properties - [[HasOwnProperty]] (property does not exist) description: Properties - [[HasOwnProperty]] (property does not exist)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_10
description: > description: >
Properties - [[HasOwnProperty]] (writable, configurable, Properties - [[HasOwnProperty]] (writable, configurable,
non-enumerable own value property) non-enumerable own value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {value: 42, writable:true, configurable:true}); Object.defineProperty(o, "foo", {value: 42, writable:true, configurable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_11
description: > description: >
Properties - [[HasOwnProperty]] (writable, configurable, Properties - [[HasOwnProperty]] (writable, configurable,
enumerable own value property) enumerable own value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true, configurable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_12
description: > description: >
Properties - [[HasOwnProperty]] (non-writable, non-configurable, Properties - [[HasOwnProperty]] (non-writable, non-configurable,
non-enumerable inherited value property) non-enumerable inherited value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {value: 42}); Object.defineProperty(base, "foo", {value: 42});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_13
description: > description: >
Properties - [[HasOwnProperty]] (non-writable, non-configurable, Properties - [[HasOwnProperty]] (non-writable, non-configurable,
enumerable inherited value property) enumerable inherited value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {value: 42, enumerable:true}); Object.defineProperty(base, "foo", {value: 42, enumerable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_14
description: > description: >
Properties - [[HasOwnProperty]] (non-writable, configurable, Properties - [[HasOwnProperty]] (non-writable, configurable,
non-enumerable inherited value property) non-enumerable inherited value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {value: 42, configurable:true}); Object.defineProperty(base, "foo", {value: 42, configurable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_15
description: > description: >
Properties - [[HasOwnProperty]] (writable, non-configurable, Properties - [[HasOwnProperty]] (writable, non-configurable,
non-enumerable inherited value property) non-enumerable inherited value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {value: 42, writable:true}); Object.defineProperty(base, "foo", {value: 42, writable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_16
description: > description: >
Properties - [[HasOwnProperty]] (non-writable, configurable, Properties - [[HasOwnProperty]] (non-writable, configurable,
enumerable inherited value property) enumerable inherited value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {value: 42, configurable:true, enumerable:true}); Object.defineProperty(base, "foo", {value: 42, configurable:true, enumerable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_17
description: > description: >
Properties - [[HasOwnProperty]] (writable, non-configurable, Properties - [[HasOwnProperty]] (writable, non-configurable,
enumerable inherited value property) enumerable inherited value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true}); Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_18
description: > description: >
Properties - [[HasOwnProperty]] (writable, configurable, Properties - [[HasOwnProperty]] (writable, configurable,
non-enumerable inherited value property) non-enumerable inherited value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {value: 42, writable:true, configurable:true}); Object.defineProperty(base, "foo", {value: 42, writable:true, configurable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_19
description: > description: >
Properties - [[HasOwnProperty]] (writable, configurable, Properties - [[HasOwnProperty]] (writable, configurable,
enumerable inherited value property) enumerable inherited value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true, configurable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 8.12.1-1_2 es5id: 8.12.1-1_2
description: Properties - [[HasOwnProperty]] (old style own property) description: Properties - [[HasOwnProperty]] (old style own property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {foo: 42}; var o = {foo: 42};
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 8.12.1-1_20 es5id: 8.12.1-1_20
description: Properties - [[HasOwnProperty]] (literal own getter property) description: Properties - [[HasOwnProperty]] (literal own getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = { get foo() { return 42;} }; var o = { get foo() { return 42;} };
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -4,13 +4,8 @@
/*--- /*---
es5id: 8.12.1-1_21 es5id: 8.12.1-1_21
description: Properties - [[HasOwnProperty]] (literal own setter property) description: Properties - [[HasOwnProperty]] (literal own setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = { set foo(x) {;} }; var o = { set foo(x) {;} };
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,13 +6,8 @@ es5id: 8.12.1-1_22
description: > description: >
Properties - [[HasOwnProperty]] (literal own getter/setter Properties - [[HasOwnProperty]] (literal own getter/setter
property) property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = { get foo() { return 42;}, set foo(x) {;} }; var o = { get foo() { return 42;}, set foo(x) {;} };
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -4,14 +4,9 @@
/*--- /*---
es5id: 8.12.1-1_23 es5id: 8.12.1-1_23
description: Properties - [[HasOwnProperty]] (literal inherited getter property) description: Properties - [[HasOwnProperty]] (literal inherited getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = { get foo() { return 42;} }; var base = { get foo() { return 42;} };
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -4,14 +4,9 @@
/*--- /*---
es5id: 8.12.1-1_24 es5id: 8.12.1-1_24
description: Properties - [[HasOwnProperty]] (literal inherited setter property) description: Properties - [[HasOwnProperty]] (literal inherited setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = { set foo(x) {;} }; var base = { set foo(x) {;} };
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_25
description: > description: >
Properties - [[HasOwnProperty]] (literal inherited getter/setter Properties - [[HasOwnProperty]] (literal inherited getter/setter
property) property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = { get foo() { return 42;}, set foo(x) {;} }; var base = { get foo() { return 42;}, set foo(x) {;} };
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_26
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, non-enumerable Properties - [[HasOwnProperty]] (non-configurable, non-enumerable
own getter property) own getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {get: function() {return 42;}}); Object.defineProperty(o, "foo", {get: function() {return 42;}});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_27
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, enumerable own Properties - [[HasOwnProperty]] (non-configurable, enumerable own
getter property) getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true}); Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_28
description: > description: >
Properties - [[HasOwnProperty]] (configurable, non-enumerable own Properties - [[HasOwnProperty]] (configurable, non-enumerable own
getter property) getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {get: function() {return 42;}, configurable:true}); Object.defineProperty(o, "foo", {get: function() {return 42;}, configurable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_29
description: > description: >
Properties - [[HasOwnProperty]] (configurable, enumerable own Properties - [[HasOwnProperty]] (configurable, enumerable own
getter property) getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true, configurable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -4,14 +4,9 @@
/*--- /*---
es5id: 8.12.1-1_3 es5id: 8.12.1-1_3
description: Properties - [[HasOwnProperty]] (old style inherited property) description: Properties - [[HasOwnProperty]] (old style inherited property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {foo:42}; var base = {foo:42};
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_30
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, non-enumerable Properties - [[HasOwnProperty]] (non-configurable, non-enumerable
own setter property) own setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {set: function() {;}}); Object.defineProperty(o, "foo", {set: function() {;}});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_31
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, enumerable own Properties - [[HasOwnProperty]] (non-configurable, enumerable own
setter property) setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true}); Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_32
description: > description: >
Properties - [[HasOwnProperty]] (configurable, non-enumerable own Properties - [[HasOwnProperty]] (configurable, non-enumerable own
setter property) setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {set: function() {;}, configurable:true}); Object.defineProperty(o, "foo", {set: function() {;}, configurable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_33
description: > description: >
Properties - [[HasOwnProperty]] (configurable, enumerable own Properties - [[HasOwnProperty]] (configurable, enumerable own
setter property) setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true, configurable:true}); Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true, configurable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_34
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, non-enumerable Properties - [[HasOwnProperty]] (non-configurable, non-enumerable
own getter/setter property) own getter/setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}}); Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_35
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, enumerable own Properties - [[HasOwnProperty]] (non-configurable, enumerable own
getter/setter property) getter/setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_36
description: > description: >
Properties - [[HasOwnProperty]] (configurable, non-enumerable own Properties - [[HasOwnProperty]] (configurable, non-enumerable own
getter/setter property) getter/setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_37
description: > description: >
Properties - [[HasOwnProperty]] (configurable, enumerable own Properties - [[HasOwnProperty]] (configurable, enumerable own
getter/setter property) getter/setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_38
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, non-enumerable Properties - [[HasOwnProperty]] (non-configurable, non-enumerable
inherited getter property) inherited getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {get: function() {return 42;}}); Object.defineProperty(base, "foo", {get: function() {return 42;}});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_39
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, enumerable Properties - [[HasOwnProperty]] (non-configurable, enumerable
inherited getter property) inherited getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true}); Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_4
description: > description: >
Properties - [[HasOwnProperty]] (non-writable, non-configurable, Properties - [[HasOwnProperty]] (non-writable, non-configurable,
non-enumerable own value property) non-enumerable own value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {value: 42}); Object.defineProperty(o, "foo", {value: 42});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_40
description: > description: >
Properties - [[HasOwnProperty]] (configurable, non-enumerable Properties - [[HasOwnProperty]] (configurable, non-enumerable
inherited getter property) inherited getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {get: function() {return 42;}, configurable:true}); Object.defineProperty(base, "foo", {get: function() {return 42;}, configurable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_41
description: > description: >
Properties - [[HasOwnProperty]] (configurable, enumerable Properties - [[HasOwnProperty]] (configurable, enumerable
inherited getter property) inherited getter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true, configurable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_42
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, non-enumerable Properties - [[HasOwnProperty]] (non-configurable, non-enumerable
inherited setter property) inherited setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {set: function() {;}}); Object.defineProperty(base, "foo", {set: function() {;}});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_43
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, enumerable Properties - [[HasOwnProperty]] (non-configurable, enumerable
inherited setter property) inherited setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true}); Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_44
description: > description: >
Properties - [[HasOwnProperty]] (configurable, non-enumerable Properties - [[HasOwnProperty]] (configurable, non-enumerable
inherited setter property) inherited setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {set: function() {;}, configurable:true}); Object.defineProperty(base, "foo", {set: function() {;}, configurable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_45
description: > description: >
Properties - [[HasOwnProperty]] (configurable, enumerable Properties - [[HasOwnProperty]] (configurable, enumerable
inherited setter property) inherited setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true, configurable:true}); Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true, configurable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_46
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, non-enumerable Properties - [[HasOwnProperty]] (non-configurable, non-enumerable
inherited getter/setter property) inherited getter/setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}}); Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_47
description: > description: >
Properties - [[HasOwnProperty]] (non-configurable, enumerable Properties - [[HasOwnProperty]] (non-configurable, enumerable
inherited getter/setter property) inherited getter/setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_48
description: > description: >
Properties - [[HasOwnProperty]] (configurable, non-enumerable Properties - [[HasOwnProperty]] (configurable, non-enumerable
inherited getter/setter property) inherited getter/setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,15 +6,10 @@ es5id: 8.12.1-1_49
description: > description: >
Properties - [[HasOwnProperty]] (configurable, enumerable Properties - [[HasOwnProperty]] (configurable, enumerable
inherited getter/setter property) inherited getter/setter property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var base = {}; var base = {};
Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true});
var o = Object.create(base); var o = Object.create(base);
return o.hasOwnProperty("foo")===false;
} assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_5
description: > description: >
Properties - [[HasOwnProperty]] (non-writable, non-configurable, Properties - [[HasOwnProperty]] (non-writable, non-configurable,
enumerable own value property) enumerable own value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {value: 42, enumerable:true}); Object.defineProperty(o, "foo", {value: 42, enumerable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_6
description: > description: >
Properties - [[HasOwnProperty]] (non-writable, configurable, Properties - [[HasOwnProperty]] (non-writable, configurable,
non-enumerable own value property) non-enumerable own value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {value: 42, configurable:true}); Object.defineProperty(o, "foo", {value: 42, configurable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_7
description: > description: >
Properties - [[HasOwnProperty]] (writable, non-configurable, Properties - [[HasOwnProperty]] (writable, non-configurable,
non-enumerable own value property) non-enumerable own value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {value: 42, writable:true}); Object.defineProperty(o, "foo", {value: 42, writable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_8
description: > description: >
Properties - [[HasOwnProperty]] (non-writable, configurable, Properties - [[HasOwnProperty]] (non-writable, configurable,
enumerable own value property) enumerable own value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {value: 42, configurable:true, enumerable:true}); Object.defineProperty(o, "foo", {value: 42, configurable:true, enumerable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,14 +6,9 @@ es5id: 8.12.1-1_9
description: > description: >
Properties - [[HasOwnProperty]] (writable, non-configurable, Properties - [[HasOwnProperty]] (writable, non-configurable,
enumerable own value property) enumerable own value property)
includes: [runTestCase.js]
---*/ ---*/
function testcase() {
var o = {}; var o = {};
Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true}); Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true});
return o.hasOwnProperty("foo");
} assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true');
runTestCase(testcase);

View File

@ -6,10 +6,6 @@ es5id: 15.2.4.2-1-1
description: > description: >
Object.prototype.toString - '[object Undefined]' will be returned Object.prototype.toString - '[object Undefined]' will be returned
when 'this' value is undefined when 'this' value is undefined
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.prototype.toString.call(undefined), "[object Undefined]", 'Object.prototype.toString.call(undefined)');
return Object.prototype.toString.call(undefined) === "[object Undefined]";
}
runTestCase(testcase);

View File

@ -6,10 +6,6 @@ es5id: 15.2.4.2-1-2
description: > description: >
Object.prototype.toString - '[object Undefined]' will be returned Object.prototype.toString - '[object Undefined]' will be returned
when 'this' value is undefined when 'this' value is undefined
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.prototype.toString.apply(undefined, []), "[object Undefined]", 'Object.prototype.toString.apply(undefined, [])');
return Object.prototype.toString.apply(undefined, []) === "[object Undefined]";
}
runTestCase(testcase);

View File

@ -6,10 +6,6 @@ es5id: 15.2.4.2-2-1
description: > description: >
Object.prototype.toString - '[object Null]' will be returned when Object.prototype.toString - '[object Null]' will be returned when
'this' value is null 'this' value is null
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.prototype.toString.call(null), "[object Null]", 'Object.prototype.toString.call(null)');
return Object.prototype.toString.call(null) === "[object Null]";
}
runTestCase(testcase);

View File

@ -6,10 +6,6 @@ es5id: 15.2.4.2-2-2
description: > description: >
Object.prototype.toString - '[object Null]' will be returned when Object.prototype.toString - '[object Null]' will be returned when
'this' value is null 'this' value is null
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(Object.prototype.toString.apply(null, []), "[object Null]", 'Object.prototype.toString.apply(null, [])');
return Object.prototype.toString.apply(null, []) === "[object Null]";
}
runTestCase(testcase);

View File

@ -6,10 +6,6 @@ es5id: 15.2.4.4-1
description: > description: >
Object.prototype.valueOf - typeof Object.prototype.valueOf - typeof
Object.prototype.valueOf.call(true)==="object" Object.prototype.valueOf.call(true)==="object"
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(typeof Object.prototype.valueOf.call(true), "object", 'typeof Object.prototype.valueOf.call(true)');
return (typeof Object.prototype.valueOf.call(true)) === "object";
}
runTestCase(testcase);

View File

@ -6,10 +6,6 @@ es5id: 15.2.4.4-2
description: > description: >
Object.prototype.valueOf - typeof Object.prototype.valueOf - typeof
Object.prototype.valueOf.call(false)==="object" Object.prototype.valueOf.call(false)==="object"
includes: [runTestCase.js]
---*/ ---*/
function testcase() { assert.sameValue(typeof Object.prototype.valueOf.call(false), "object", 'typeof Object.prototype.valueOf.call(false)');
return (typeof Object.prototype.valueOf.call(false)) === "object";
}
runTestCase(testcase);