From 744a1b2c757c2051963656190f8d3780e05458c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Wed, 30 Apr 2025 14:16:03 +0200 Subject: [PATCH] Remove print calls in sm/object --- test/staging/sm/object/15.2.3.4-01.js | 16 +-------------- test/staging/sm/object/15.2.3.4-02.js | 16 +-------------- test/staging/sm/object/15.2.3.4-03.js | 16 +-------------- test/staging/sm/object/15.2.3.4-04.js | 15 +------------- test/staging/sm/object/15.2.3.5-01.js | 15 +------------- .../sm/object/15.2.3.6-define-over-method.js | 17 +--------------- test/staging/sm/object/15.2.3.7-01.js | 15 +------------- .../sm/object/add-property-non-extensible.js | 19 +----------------- .../clear-dictionary-accessor-getset.js | 20 +------------------ test/staging/sm/object/extensibility-01.js | 16 +-------------- test/staging/sm/object/extensibility-02.js | 16 +-------------- test/staging/sm/object/freeze.js | 5 +---- .../sm/object/getOwnPropertyDescriptor.js | 5 +---- .../staging/sm/object/getPrototypeOf-array.js | 17 +--------------- test/staging/sm/object/getPrototypeOf.js | 6 +----- test/staging/sm/object/getter-name.js | 7 +------ test/staging/sm/object/isExtensible.js | 6 +----- test/staging/sm/object/isFrozen.js | 6 +----- test/staging/sm/object/isPrototypeOf.js | 16 +-------------- test/staging/sm/object/isSealed.js | 6 +----- test/staging/sm/object/keys.js | 6 +----- .../sm/object/mutation-prevention-methods.js | 17 +--------------- test/staging/sm/object/object-toString-01.js | 18 +---------------- .../sm/object/preventExtensions-idempotent.js | 16 +-------------- test/staging/sm/object/preventExtensions.js | 6 +----- .../staging/sm/object/propertyIsEnumerable.js | 15 +------------- .../proto-property-change-writability-set.js | 14 +------------ test/staging/sm/object/seal.js | 6 +----- test/staging/sm/object/toLocaleString.js | 15 +------------- .../vacuous-accessor-unqualified-name.js | 18 +---------------- 30 files changed, 30 insertions(+), 356 deletions(-) diff --git a/test/staging/sm/object/15.2.3.4-01.js b/test/staging/sm/object/15.2.3.4-01.js index d6442115e9..d52fa56002 100644 --- a/test/staging/sm/object/15.2.3.4-01.js +++ b/test/staging/sm/object/15.2.3.4-01.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.getOwnPropertyNames should play nicely with enumerator caching esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 518663; -var summary = - 'Object.getOwnPropertyNames should play nicely with enumerator caching'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ for (var p in JSON); var names = Object.getOwnPropertyNames(JSON); @@ -28,7 +18,3 @@ assert.sameValue(names.length >= 2, true, "wrong number of property names? [" + names + "]"); assert.sameValue(names.indexOf("parse") >= 0, true); assert.sameValue(names.indexOf("stringify") >= 0, true); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/15.2.3.4-02.js b/test/staging/sm/object/15.2.3.4-02.js index 65e61d1f20..a518c1f549 100644 --- a/test/staging/sm/object/15.2.3.4-02.js +++ b/test/staging/sm/object/15.2.3.4-02.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.getOwnPropertyNames: array objects esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 518663; -var summary = 'Object.getOwnPropertyNames: array objects'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var a, names, expected; @@ -49,8 +40,3 @@ a = []; names = Object.getOwnPropertyNames(a).sort(); expected = ["length"]; assert.sameValue(arraysEqual(names, expected), true); - - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/15.2.3.4-03.js b/test/staging/sm/object/15.2.3.4-03.js index 643572e73e..9d7d2b9944 100644 --- a/test/staging/sm/object/15.2.3.4-03.js +++ b/test/staging/sm/object/15.2.3.4-03.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.getOwnPropertyNames: function objects esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 518663; -var summary = 'Object.getOwnPropertyNames: function objects'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function two(a, b) { } @@ -52,8 +43,3 @@ var bound3 = Function.prototype.bind assert.sameValue(Object.getOwnPropertyNames(bound3).indexOf("length") >= 0, true); assert.sameValue(bound3.length, 0); - - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/15.2.3.4-04.js b/test/staging/sm/object/15.2.3.4-04.js index ff3379197e..7b8252f04c 100644 --- a/test/staging/sm/object/15.2.3.4-04.js +++ b/test/staging/sm/object/15.2.3.4-04.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.getOwnPropertyNames: regular expression objects esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 518663; -var summary = 'Object.getOwnPropertyNames: regular expression objects'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var actual = Object.getOwnPropertyNames(/a/); var expected = ["lastIndex"]; @@ -29,7 +20,3 @@ for (var i = 0; i < expected.length; i++) assert.sameValue(actual.indexOf(expected[i]) >= 0, true, expected[i] + " should be a property name on a RegExp"); } - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/15.2.3.5-01.js b/test/staging/sm/object/15.2.3.5-01.js index b81f80b4ae..ce243200dd 100644 --- a/test/staging/sm/object/15.2.3.5-01.js +++ b/test/staging/sm/object/15.2.3.5-01.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.create(O [, Properties]) esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 492840; -var summary = 'ES5 Object.create(O [, Properties])'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ assert.sameValue("create" in Object, true); assert.sameValue(Object.create.length, 2); @@ -60,7 +51,3 @@ try { } catch (e) { } assert.sameValue(actual, "overridden"); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/15.2.3.6-define-over-method.js b/test/staging/sm/object/15.2.3.6-define-over-method.js index 5252fd5720..4c7f668efd 100644 --- a/test/staging/sm/object/15.2.3.6-define-over-method.js +++ b/test/staging/sm/object/15.2.3.6-define-over-method.js @@ -8,24 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Do not assert: !(attrs & (JSPROP_GETTER | JSPROP_SETTER)) with Object.defineProperty esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 568786; -var summary = - 'Do not assert: !(attrs & (JSPROP_GETTER | JSPROP_SETTER)) with ' + - 'Object.defineProperty'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var o = { x: function(){} }; Object.defineProperty(o, "x", { get: function(){} }); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/15.2.3.7-01.js b/test/staging/sm/object/15.2.3.7-01.js index 939ddf2cb5..4e5f6692db 100644 --- a/test/staging/sm/object/15.2.3.7-01.js +++ b/test/staging/sm/object/15.2.3.7-01.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.defineProperties(O, Properties) esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 430133; -var summary = 'ES5 Object.defineProperties(O, Properties)'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ assert.sameValue("defineProperties" in Object, true); assert.sameValue(Object.defineProperties.length, 2); @@ -137,7 +128,3 @@ catch (e) error = "bad exception: " + e; } assert.sameValue(error, "typeerror", "should throw on Properties == undefined"); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/add-property-non-extensible.js b/test/staging/sm/object/add-property-non-extensible.js index 58d80dcfc6..e60ec72d05 100644 --- a/test/staging/sm/object/add-property-non-extensible.js +++ b/test/staging/sm/object/add-property-non-extensible.js @@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Properly method-compile attempted addition of properties to non-extensible objects esid: pending ---*/ -var gTestfile = 'add-property-non-extensible.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 602144; -var summary = - 'Properly method-compile attempted addition of properties to ' + - 'non-extensible objects'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ // No property @@ -115,8 +103,3 @@ var o16 = Object.preventExtensions(Object.create(Object.freeze({ a: 2 }))); for (var i = 0; i < 5; i++) o16.a = 3; assert.sameValue(Object.getOwnPropertyDescriptor(o16, "a"), undefined); - - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/clear-dictionary-accessor-getset.js b/test/staging/sm/object/clear-dictionary-accessor-getset.js index bc0bfd6d92..fbb4058dd5 100644 --- a/test/staging/sm/object/clear-dictionary-accessor-getset.js +++ b/test/staging/sm/object/clear-dictionary-accessor-getset.js @@ -8,26 +8,12 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Properly handle GC of a dictionary accessor property whose [[Get]] or [[Set]] has been changed to |undefined| esid: pending ---*/ -var gTestfile = "clear-dictionary-accessor-getset.js"; -var BUGNUMBER = 1082662; -var summary = - "Properly handle GC of a dictionary accessor property whose [[Get]] or " + - "[[Set]] has been changed to |undefined|"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function test(field) { - var prop = "[[" + field[0].toUpperCase() + field.substring(1) + "]]"; - print("Testing for GC crashes after setting " + prop + " to undefined..."); - function inner() { // Create an object with an accessor property. @@ -54,7 +40,3 @@ function test(field) test("get"); test("set"); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/object/extensibility-01.js b/test/staging/sm/object/extensibility-01.js index 5e1b9f1a2e..7fef88fc53 100644 --- a/test/staging/sm/object/extensibility-01.js +++ b/test/staging/sm/object/extensibility-01.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Implement Object.preventExtensions, Object.isExtensible esid: pending ---*/ -var gTestfile = '15.2.3.10-01.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 492849; -var summary = 'ES5: Implement Object.preventExtensions, Object.isExtensible'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function trySetProperty(o, p, v, strict) { @@ -101,7 +91,3 @@ for (var i = 0, sz = objs.length; i < sz; i++) assert.sameValue(tryDefineProperty(o, "baz", 17), "throw", "unexpected behavior for new property definition on object " + i); } - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/extensibility-02.js b/test/staging/sm/object/extensibility-02.js index 0f953d2899..00a3895de5 100644 --- a/test/staging/sm/object/extensibility-02.js +++ b/test/staging/sm/object/extensibility-02.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Implement Object.preventExtensions, Object.isExtensible esid: pending ---*/ -var gTestfile = '15.2.3.4-01.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 492849; -var summary = 'ES5: Implement Object.preventExtensions, Object.isExtensible'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ assert.sameValue(typeof Object.isExtensible, "function"); assert.sameValue(Object.isExtensible.length, 1); @@ -40,7 +30,3 @@ for (var i = 0, sz = objs.length; i < sz; i++) assert.sameValue(Object.isExtensible(o), false, "object " + i + " is extensible?"); } - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/freeze.js b/test/staging/sm/object/freeze.js index 3b814fa105..1850dbf928 100644 --- a/test/staging/sm/object/freeze.js +++ b/test/staging/sm/object/freeze.js @@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.freeze() should return its argument with no conversion when the argument is a primitive value esid: pending ---*/ -var BUGNUMBER = 1076588; -var summary = "Object.freeze() should return its argument with no conversion when the argument is a primitive value"; -print(BUGNUMBER + ": " + summary); assert.sameValue(Object.freeze(), undefined); assert.sameValue(Object.freeze(undefined), undefined); assert.sameValue(Object.freeze(null), null); diff --git a/test/staging/sm/object/getOwnPropertyDescriptor.js b/test/staging/sm/object/getOwnPropertyDescriptor.js index 4b30a0533d..9440abba92 100644 --- a/test/staging/sm/object/getOwnPropertyDescriptor.js +++ b/test/staging/sm/object/getOwnPropertyDescriptor.js @@ -8,12 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js, deepEqual.js] flags: - noStrict description: | - pending + Coerce the argument passed to Object.getOwnPropertyDescriptor using ToObject esid: pending ---*/ -var BUGNUMBER = 1079188; -var summary = "Coerce the argument passed to Object.getOwnPropertyDescriptor using ToObject"; -print(BUGNUMBER + ": " + summary); assert.throws(TypeError, () => Object.getOwnPropertyDescriptor()); assert.throws(TypeError, () => Object.getOwnPropertyDescriptor(undefined)); diff --git a/test/staging/sm/object/getPrototypeOf-array.js b/test/staging/sm/object/getPrototypeOf-array.js index 93c325478d..44794bf36e 100644 --- a/test/staging/sm/object/getPrototypeOf-array.js +++ b/test/staging/sm/object/getPrototypeOf-array.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + The [[Prototype]] of an object whose prototype chain contains an array isn't that array's [[Prototype]] esid: pending ---*/ -var gTestfile = 'getPrototypeOf-array.js'; -var BUGNUMBER = 769041; -var summary = - "The [[Prototype]] of an object whose prototype chain contains an array " + - "isn't that array's [[Prototype]]"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var arr = []; assert.sameValue(Array.isArray(arr), true); @@ -31,7 +20,3 @@ assert.sameValue(Object.getPrototypeOf(objWithArrPrototype), arr); var objWithArrGrandPrototype = Object.create(objWithArrPrototype); assert.sameValue(!Array.isArray(objWithArrGrandPrototype), true); assert.sameValue(Object.getPrototypeOf(objWithArrGrandPrototype), objWithArrPrototype); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/object/getPrototypeOf.js b/test/staging/sm/object/getPrototypeOf.js index 152bb70430..5f68c94b55 100644 --- a/test/staging/sm/object/getPrototypeOf.js +++ b/test/staging/sm/object/getPrototypeOf.js @@ -8,12 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Coerce the argument passed to Object.getPrototypeOf using ToObject esid: pending ---*/ -var BUGNUMBER = 1079090; -var summary = "Coerce the argument passed to Object.getPrototypeOf using ToObject"; -print(BUGNUMBER + ": " + summary); assert.throws(TypeError, () => Object.getPrototypeOf()); assert.throws(TypeError, () => Object.getPrototypeOf(undefined)); @@ -25,4 +22,3 @@ assert.sameValue(Object.getPrototypeOf("foo"), String.prototype); if (typeof Symbol === "function") { assert.sameValue(Object.getPrototypeOf(Symbol("foo")), Symbol.prototype); } - diff --git a/test/staging/sm/object/getter-name.js b/test/staging/sm/object/getter-name.js index 549c597143..7f5e152d50 100644 --- a/test/staging/sm/object/getter-name.js +++ b/test/staging/sm/object/getter-name.js @@ -6,14 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object accessors should have get prefix esid: pending ---*/ -var BUGNUMBER = 1180290; -var summary = 'Object accessors should have get prefix'; - -print(BUGNUMBER + ": " + summary); assert.sameValue(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").get.name, "get __proto__"); assert.sameValue(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set.name, "set __proto__"); - diff --git a/test/staging/sm/object/isExtensible.js b/test/staging/sm/object/isExtensible.js index bbadd526b2..ccd154c195 100644 --- a/test/staging/sm/object/isExtensible.js +++ b/test/staging/sm/object/isExtensible.js @@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.isExtensible() should return false when given primitive values as input esid: pending ---*/ -var BUGNUMBER = 1060873; -var summary = "Object.isExtensible() should return false when given primitive values as input"; -print(BUGNUMBER + ": " + summary); assert.sameValue(Object.isExtensible(), false); assert.sameValue(Object.isExtensible(undefined), false); assert.sameValue(Object.isExtensible(null), false); @@ -24,4 +21,3 @@ assert.sameValue(Object.isExtensible(true), false); if (typeof Symbol === "function") { assert.sameValue(Object.isExtensible(Symbol()), false); } - diff --git a/test/staging/sm/object/isFrozen.js b/test/staging/sm/object/isFrozen.js index 2596bacde3..e1d047f663 100644 --- a/test/staging/sm/object/isFrozen.js +++ b/test/staging/sm/object/isFrozen.js @@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.isFrozen() should return true when given primitive values as input esid: pending ---*/ -var BUGNUMBER = 1071464; -var summary = "Object.isFrozen() should return true when given primitive values as input"; -print(BUGNUMBER + ": " + summary); assert.sameValue(Object.isFrozen(), true); assert.sameValue(Object.isFrozen(undefined), true); assert.sameValue(Object.isFrozen(null), true); @@ -24,4 +21,3 @@ assert.sameValue(Object.isFrozen(true), true); if (typeof Symbol === "function") { assert.sameValue(Object.isFrozen(Symbol()), true); } - diff --git a/test/staging/sm/object/isPrototypeOf.js b/test/staging/sm/object/isPrototypeOf.js index e902425485..1790b3bd7d 100644 --- a/test/staging/sm/object/isPrototypeOf.js +++ b/test/staging/sm/object/isPrototypeOf.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.prototype.isPrototypeOf esid: pending ---*/ -var gTestfile = 'isPrototypeOf.js'; -var BUGNUMBER = 619283; -var summary = "Object.prototype.isPrototypeOf"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function expectThrowTypeError(fun) { @@ -84,8 +75,3 @@ assert.sameValue(this.isPrototypeOf(protoGlobal), true); assert.sameValue(Object.prototype.isPrototypeOf({}), true); assert.sameValue(Object.prototype.isPrototypeOf(new Number(17)), true); assert.sameValue(Object.prototype.isPrototypeOf(function(){}), true); - - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/isSealed.js b/test/staging/sm/object/isSealed.js index e76a03e47b..21f0ae6547 100644 --- a/test/staging/sm/object/isSealed.js +++ b/test/staging/sm/object/isSealed.js @@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.isSealed() should return true when given primitive values as input esid: pending ---*/ -var BUGNUMBER = 1062860; -var summary = "Object.isSealed() should return true when given primitive values as input"; -print(BUGNUMBER + ": " + summary); assert.sameValue(Object.isSealed(), true); assert.sameValue(Object.isSealed(undefined), true); assert.sameValue(Object.isSealed(null), true); @@ -24,4 +21,3 @@ assert.sameValue(Object.isSealed(true), true); if (typeof Symbol === "function") { assert.sameValue(Object.isSealed(Symbol()), true); } - diff --git a/test/staging/sm/object/keys.js b/test/staging/sm/object/keys.js index 276fdd6e4e..d1bb58a163 100644 --- a/test/staging/sm/object/keys.js +++ b/test/staging/sm/object/keys.js @@ -8,12 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js, deepEqual.js] flags: - noStrict description: | - pending + Coerce the argument passed to Object.keys using ToObject esid: pending ---*/ -var BUGNUMBER = 1038545; -var summary = "Coerce the argument passed to Object.keys using ToObject"; -print(BUGNUMBER + ": " + summary); assert.throws(TypeError, () => Object.keys()); assert.throws(TypeError, () => Object.keys(undefined)); @@ -26,4 +23,3 @@ if (typeof Symbol === "function") { } assert.deepEqual(Object.keys("foo"), ["0", "1", "2"]); - diff --git a/test/staging/sm/object/mutation-prevention-methods.js b/test/staging/sm/object/mutation-prevention-methods.js index 8755d4b197..d5f5807901 100644 --- a/test/staging/sm/object/mutation-prevention-methods.js +++ b/test/staging/sm/object/mutation-prevention-methods.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.is{Sealed,Frozen}, Object.{seal,freeze} esid: pending ---*/ -var gTestfile = 'mutation-prevention-methods.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 492849; -var summary = 'Object.is{Sealed,Frozen}, Object.{seal,freeze}'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ // Empty object @@ -121,8 +111,3 @@ Object.freeze(o3); assert.sameValue(Object.isExtensible(o3), false); assert.sameValue(Object.isSealed(o3), true); assert.sameValue(Object.isFrozen(o3), true); - - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/object-toString-01.js b/test/staging/sm/object/object-toString-01.js index e488f25b7f..4e819abaa7 100644 --- a/test/staging/sm/object/object-toString-01.js +++ b/test/staging/sm/object/object-toString-01.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + ({}).toString.call(null) == "[object Null]", ({}).toString.call(undefined) == "[object Undefined]" esid: pending ---*/ -var gTestfile = 'object-toString-01.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 575522; -var summary = '({}).toString.call(null) == "[object Null]", ' + - '({}).toString.call(undefined) == "[object Undefined]", '; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var toString = Object.prototype.toString; @@ -42,8 +31,3 @@ assert.sameValue(toString.call(-Infinity), "[object Number]"); assert.sameValue(toString.call("foopy"), "[object String]"); assert.sameValue(toString.call({}), "[object Object]"); - - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/preventExtensions-idempotent.js b/test/staging/sm/object/preventExtensions-idempotent.js index 271651ffca..23899e1cdd 100644 --- a/test/staging/sm/object/preventExtensions-idempotent.js +++ b/test/staging/sm/object/preventExtensions-idempotent.js @@ -8,26 +8,12 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.preventExtensions should be idempotent esid: pending ---*/ -var gTestfile = 'preventExtensions-idempotent.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 599459; -var summary = 'Object.preventExtensions should be idempotent'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var obj = {}; assert.sameValue(Object.preventExtensions(obj), obj); assert.sameValue(Object.isExtensible(obj), false); assert.sameValue(Object.preventExtensions(obj), obj); assert.sameValue(Object.isExtensible(obj), false); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/preventExtensions.js b/test/staging/sm/object/preventExtensions.js index f59d557b13..f2cd5fb981 100644 --- a/test/staging/sm/object/preventExtensions.js +++ b/test/staging/sm/object/preventExtensions.js @@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.preventExtensions() should return its argument with no conversion when the argument is a primitive value esid: pending ---*/ -var BUGNUMBER = 1073446; -var summary = "Object.preventExtensions() should return its argument with no conversion when the argument is a primitive value"; -print(BUGNUMBER + ": " + summary); assert.sameValue(Object.preventExtensions(), undefined); assert.sameValue(Object.preventExtensions(undefined), undefined); assert.sameValue(Object.preventExtensions(null), null); @@ -24,4 +21,3 @@ assert.sameValue(Object.preventExtensions(true), true); if (typeof Symbol === "function") { assert.sameValue(Object.preventExtensions(Symbol.for("foo")), Symbol.for("foo")); } - diff --git a/test/staging/sm/object/propertyIsEnumerable.js b/test/staging/sm/object/propertyIsEnumerable.js index f1a8eced0c..60fdfff28a 100644 --- a/test/staging/sm/object/propertyIsEnumerable.js +++ b/test/staging/sm/object/propertyIsEnumerable.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.prototype.propertyIsEnumerable esid: pending ---*/ -var gTestfile = 'propertyIsEnumerable.js'; -var BUGNUMBER = 619283; -var summary = "Object.prototype.propertyIsEnumerable"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function expectThrowError(errorCtor, fun) { @@ -198,7 +189,3 @@ assert.sameValue(propertyIsEnumerable.call({ x: 9 }, "x"), true); assert.sameValue(propertyIsEnumerable.call(function() { }, "prototype"), false); assert.sameValue(propertyIsEnumerable.call(function() { }, "length"), false); assert.sameValue(propertyIsEnumerable.call(function() { "use strict"; }, "caller"), false); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/proto-property-change-writability-set.js b/test/staging/sm/object/proto-property-change-writability-set.js index 9f41770257..978164c98d 100644 --- a/test/staging/sm/object/proto-property-change-writability-set.js +++ b/test/staging/sm/object/proto-property-change-writability-set.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Don't assert anything about a shape from the property cache until it's known the cache entry matches esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 713944; -var summary = - "Don't assert anything about a shape from the property cache until it's " + - "known the cache entry matches"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var accDesc = { set: function() {} }; var dataDesc = { value: 3 }; @@ -56,4 +45,3 @@ for (var i = 0; i < 2; i++) } assert.sameValue(b.p1, 3); assert.sameValue(a.p1, 3); - diff --git a/test/staging/sm/object/seal.js b/test/staging/sm/object/seal.js index cdfa0da55b..779f802b0d 100644 --- a/test/staging/sm/object/seal.js +++ b/test/staging/sm/object/seal.js @@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.seal() should return its argument with no conversion when the argument is a primitive value esid: pending ---*/ -var BUGNUMBER = 1075294; -var summary = "Object.seal() should return its argument with no conversion when the argument is a primitive value"; -print(BUGNUMBER + ": " + summary); assert.sameValue(Object.seal(), undefined); assert.sameValue(Object.seal(undefined), undefined); assert.sameValue(Object.seal(null), null); @@ -24,4 +21,3 @@ assert.sameValue(Object.seal(true), true); if (typeof Symbol === "function") { assert.sameValue(Object.seal(Symbol.for("foo")), Symbol.for("foo")); } - diff --git a/test/staging/sm/object/toLocaleString.js b/test/staging/sm/object/toLocaleString.js index 8c19b818df..4774d7ccb4 100644 --- a/test/staging/sm/object/toLocaleString.js +++ b/test/staging/sm/object/toLocaleString.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Object.prototype.toLocaleString esid: pending ---*/ -var gTestfile = 'toLocaleString.js'; -var BUGNUMBER = 653789; -var summary = "Object.prototype.toLocaleString"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function expectThrowTypeError(fun) { @@ -101,7 +92,3 @@ assert.sameValue(toLocaleString.call({ toString: function() { return obj; } }), assert.sameValue(toLocaleString.call({ toString: function() { return obj; }, valueOf: function() { return "abc"; } }), obj); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/object/vacuous-accessor-unqualified-name.js b/test/staging/sm/object/vacuous-accessor-unqualified-name.js index 463f5e1614..0ff02da680 100644 --- a/test/staging/sm/object/vacuous-accessor-unqualified-name.js +++ b/test/staging/sm/object/vacuous-accessor-unqualified-name.js @@ -8,25 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Using a name referring to a { get: undefined, set: undefined } descriptor shouldn't assert esid: pending ---*/ -var gTestfile = 'vacuous-accessor-unqualified-name.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 560216; -var summary = - "Using a name referring to a { get: undefined, set: undefined } descriptor " + - "shouldn't assert"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ Object.defineProperty(this, "x", { set: undefined, configurable: true }); x; - -/******************************************************************************/ - -print("All tests passed!");