diff --git a/test/staging/sm/extensions/ArrayBuffer-slice-arguments-detaching.js b/test/staging/sm/extensions/ArrayBuffer-slice-arguments-detaching.js index 5b4b19ca09..e9f3ec8c7f 100644 --- a/test/staging/sm/extensions/ArrayBuffer-slice-arguments-detaching.js +++ b/test/staging/sm/extensions/ArrayBuffer-slice-arguments-detaching.js @@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + ArrayBuffer.prototype.slice shouldn't misbehave horribly if index-argument conversion detaches the ArrayBuffer being sliced esid: pending ---*/ -var gTestfile = "ArrayBuffer-slice-arguments-detaching.js"; -//----------------------------------------------------------------------------- -var BUGNUMBER = 991981; -var summary = - "ArrayBuffer.prototype.slice shouldn't misbehave horribly if " + - "index-argument conversion detaches the ArrayBuffer being sliced"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function testStart() { @@ -79,7 +67,3 @@ function testEnd() assert.sameValue(ab.byteLength, 0, "detaching should work for byteLength weirdness"); } testEnd(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/DataView-construct-arguments-detaching.js b/test/staging/sm/extensions/DataView-construct-arguments-detaching.js index 18b9e35647..9b24fb7991 100644 --- a/test/staging/sm/extensions/DataView-construct-arguments-detaching.js +++ b/test/staging/sm/extensions/DataView-construct-arguments-detaching.js @@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + new DataView(...) shouldn't misbehave horribly if index-argument conversion detaches the ArrayBuffer to be viewed esid: pending ---*/ -var gTestfile = "DataView-construct-arguments-detaching.js"; -//----------------------------------------------------------------------------- -var BUGNUMBER = 991981; -var summary = - "new DataView(...) shouldn't misbehave horribly if index-argument " + - "conversion detaches the ArrayBuffer to be viewed"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function testByteOffset() { @@ -79,7 +67,3 @@ function testByteLength() assert.sameValue(ab.byteLength, 0, "detaching should work for byteLength weirdness"); } testByteLength(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/DataView-set-arguments-detaching.js b/test/staging/sm/extensions/DataView-set-arguments-detaching.js index c7d853bef5..9da40daf1d 100644 --- a/test/staging/sm/extensions/DataView-set-arguments-detaching.js +++ b/test/staging/sm/extensions/DataView-set-arguments-detaching.js @@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + DataView.prototype.set* methods shouldn't misbehave horribly if index-argument conversion detaches the ArrayBuffer being modified esid: pending ---*/ -var gTestfile = "DataView-set-arguments-detaching.js"; -//----------------------------------------------------------------------------- -var BUGNUMBER = 991981; -var summary = - "DataView.prototype.set* methods shouldn't misbehave horribly if " + - "index-argument conversion detaches the ArrayBuffer being modified"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function testIndex() { @@ -83,7 +71,3 @@ function testValue() assert.sameValue(ab.byteLength, 0, "should have been detached correctly"); } testValue(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/String-match-flags.js b/test/staging/sm/extensions/String-match-flags.js index 99ea889824..733c3360f6 100644 --- a/test/staging/sm/extensions/String-match-flags.js +++ b/test/staging/sm/extensions/String-match-flags.js @@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + String.prototype.match with non-string non-standard flags argument. esid: pending ---*/ -var BUGNUMBER = 1263139; -var summary = "String.prototype.match with non-string non-standard flags argument."; - -print(BUGNUMBER + ": " + summary); var called; var flags = { @@ -33,4 +29,3 @@ assert.sameValue(called, false); called = false; "a".replace("a", "b", flags); assert.sameValue(called, false); - diff --git a/test/staging/sm/extensions/TypedArray-set-object-funky-length-detaches.js b/test/staging/sm/extensions/TypedArray-set-object-funky-length-detaches.js index c23305cac1..abd7fb414a 100644 --- a/test/staging/sm/extensions/TypedArray-set-object-funky-length-detaches.js +++ b/test/staging/sm/extensions/TypedArray-set-object-funky-length-detaches.js @@ -8,22 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + %TypedArray%.prototype.set(object w/funky length property, offset) shouldn't misbehave if the funky length property detaches this typed array's buffer esid: pending ---*/ -var gTestfile = "set-object-funky-length-detaches.js"; -//----------------------------------------------------------------------------- -var BUGNUMBER = 991981; -var summary = - "%TypedArray%.prototype.set(object w/funky length property, offset) " + - "shouldn't misbehave if the funky length property detaches this typed " + - "array's buffer"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var ctors = [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, @@ -54,7 +41,3 @@ ctors.forEach(function(TypedArray) { ta.set(arraylike, 0x1234); }); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/TypedArray-subarray-arguments-detaching.js b/test/staging/sm/extensions/TypedArray-subarray-arguments-detaching.js index 2cd98e33e3..4cffe27155 100644 --- a/test/staging/sm/extensions/TypedArray-subarray-arguments-detaching.js +++ b/test/staging/sm/extensions/TypedArray-subarray-arguments-detaching.js @@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + %TypedArray.prototype.subarray shouldn't misbehave horribly if index-argument conversion detaches the underlying ArrayBuffer esid: pending ---*/ -var gTestfile = "TypedArray-subarray-arguments-detaching.js"; -//----------------------------------------------------------------------------- -var BUGNUMBER = 991981; -var summary = - "%TypedArray.prototype.subarray shouldn't misbehave horribly if " + - "index-argument conversion detaches the underlying ArrayBuffer"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function testBegin() { @@ -110,7 +98,3 @@ function testEnd() assert.sameValue(ab.byteLength, 0, "detaching should work for start weirdness"); } testEnd(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/__proto__.js b/test/staging/sm/extensions/__proto__.js index a51f2fb226..8b42a708d9 100644 --- a/test/staging/sm/extensions/__proto__.js +++ b/test/staging/sm/extensions/__proto__.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + __proto__ as accessor esid: pending ---*/ -var gTestfile = '__proto__.js'; -var BUGNUMBER = 770344; -var summary = "__proto__ as accessor"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var protoDesc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__"); assert.sameValue(protoDesc !== null, true); @@ -52,7 +43,3 @@ assert.sameValue(desc.value, 5); assert.sameValue(desc.writable, true); assert.sameValue(desc.enumerable, true); assert.sameValue(desc.configurable, true); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/arguments-property-access-in-function.js b/test/staging/sm/extensions/arguments-property-access-in-function.js index 4779e14593..9c409c2bec 100644 --- a/test/staging/sm/extensions/arguments-property-access-in-function.js +++ b/test/staging/sm/extensions/arguments-property-access-in-function.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + f.arguments must trigger an arguments object in non-strict mode functions esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 721322; -var summary = - 'f.arguments must trigger an arguments object in non-strict mode functions'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var obj = { @@ -55,7 +45,3 @@ var sobj = } }; sobj.test(5, undefined); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/array-inherited-__proto__.js b/test/staging/sm/extensions/array-inherited-__proto__.js index d40f076a42..4fbfc5ed0a 100644 --- a/test/staging/sm/extensions/array-inherited-__proto__.js +++ b/test/staging/sm/extensions/array-inherited-__proto__.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 = 'array-inherited-__proto__.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(objWithArrPrototype.__proto__, arr); var objWithArrGrandPrototype = Object.create(objWithArrPrototype); assert.sameValue(!Array.isArray(objWithArrGrandPrototype), true); assert.sameValue(objWithArrGrandPrototype.__proto__, objWithArrPrototype); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/array-length-protochange.js b/test/staging/sm/extensions/array-length-protochange.js index 4b6aefb074..78ba92180c 100644 --- a/test/staging/sm/extensions/array-length-protochange.js +++ b/test/staging/sm/extensions/array-length-protochange.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Don't use a shared-permanent inherited property to implement [].length or (function(){}).length esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 548671; -var summary = - "Don't use a shared-permanent inherited property to implement " + - "[].length or (function(){}).length"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var a = [1, 2, 3]; a.__proto__ = null; @@ -37,6 +26,3 @@ assert.sameValue(b.hasOwnProperty("length"), true, b.length = 42; assert.sameValue(b.length, 42, "should have mutated b's (own) length"); assert.sameValue(a.length, 0, "should not have mutated a's (own) length"); - - -print("All tests passed!"); diff --git a/test/staging/sm/extensions/array-pop-proxy.js b/test/staging/sm/extensions/array-pop-proxy.js index 7152a87c52..e3b058f855 100644 --- a/test/staging/sm/extensions/array-pop-proxy.js +++ b/test/staging/sm/extensions/array-pop-proxy.js @@ -8,22 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Behavior of [].pop on proxies esid: pending ---*/ -var gTestfile = 'array-pop-proxy.js'; -var BUGNUMBER = 858381; -var summary = "Behavior of [].pop on proxies"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var p = new Proxy([0, 1, 2], {}); Array.prototype.pop.call(p); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/arraybuffer-prototype.js b/test/staging/sm/extensions/arraybuffer-prototype.js index db177b8454..8a3e28d32d 100644 --- a/test/staging/sm/extensions/arraybuffer-prototype.js +++ b/test/staging/sm/extensions/arraybuffer-prototype.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + ArrayBuffer cannot access properties defined on the prototype chain. esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 665961; -var summary = - "ArrayBuffer cannot access properties defined on the prototype chain."; -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ ArrayBuffer.prototype.prop = "on prototype"; var b = new ArrayBuffer([]); @@ -34,4 +25,3 @@ assert.sameValue(ArrayBuffer.prototype.prop, "on prototype"); assert.sameValue(new ArrayBuffer([]).prop, "on prototype"); assert.sameValue(c.nonexistent, undefined); - diff --git a/test/staging/sm/extensions/builtin-function-arguments-caller.js b/test/staging/sm/extensions/builtin-function-arguments-caller.js index 3cd0047db7..4fddd009a6 100644 --- a/test/staging/sm/extensions/builtin-function-arguments-caller.js +++ b/test/staging/sm/extensions/builtin-function-arguments-caller.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Built-in functions defined in ECMAScript pick up arguments/caller properties from Function.prototype esid: pending ---*/ -var gTestfile = 'builtin-function-arguments-caller.js'; -var BUGNUMBER = 929642; -var summary = - "Built-in functions defined in ECMAScript pick up arguments/caller " + - "properties from Function.prototype"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function expectNoProperty(obj, prop) { @@ -59,7 +48,3 @@ expectNoProperty(callerGet, "arguments"); expectNoProperty(callerGet, "caller"); expectNoProperty(callerSet, "arguments"); expectNoProperty(callerSet, "caller"); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/censor-strict-caller.js b/test/staging/sm/extensions/censor-strict-caller.js index 4e49e9a9de..9258de51e1 100644 --- a/test/staging/sm/extensions/censor-strict-caller.js +++ b/test/staging/sm/extensions/censor-strict-caller.js @@ -16,7 +16,3 @@ function nonstrict() { return nonstrict.caller; } function strict() { "use strict"; return nonstrict(); } assert.sameValue(strict(), null); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/extensions/cross-global-eval-is-indirect.js b/test/staging/sm/extensions/cross-global-eval-is-indirect.js index 86db2aa9b1..a86967a359 100644 --- a/test/staging/sm/extensions/cross-global-eval-is-indirect.js +++ b/test/staging/sm/extensions/cross-global-eval-is-indirect.js @@ -10,20 +10,9 @@ flags: info: | needs newGlobal() description: | - pending + |var eval = otherWindow.eval; eval(...)| should behave like indirectly calling that eval from a script in that other window esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 608473; -var summary = - '|var eval = otherWindow.eval; eval(...)| should behave like indirectly ' + - 'calling that eval from a script in that other window'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var originalEval = eval; var res; @@ -46,7 +35,3 @@ res = f(); assert.sameValue(res[0] !== res[1], true); assert.sameValue(res[0], this); assert.sameValue(res[1], otherGlobal); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/extensions/dataview.js b/test/staging/sm/extensions/dataview.js index b78f6c79d1..cb9bf762f9 100644 --- a/test/staging/sm/extensions/dataview.js +++ b/test/staging/sm/extensions/dataview.js @@ -8,20 +8,13 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + DataView tests esid: pending ---*/ -//------------------------------------------------------------------------------ -var BUGNUMBER = 575688; -var summary = 'DataView tests'; function test(sharedMem) { function die(message, uplevel) { - var e = new Error(message); - var frame = e.stack.split("\n")[uplevel]; - print(message + " at " + frame.split("@")[1]); - print("Stack:\n" + e.stack); - throw(e); + throw new Error(message); } function checkThrow(fun, type) { @@ -39,23 +32,6 @@ function test(sharedMem) { } } - function checkThrowTODO(fun, type) { - var thrown = false; - try { - fun(); - } catch (x) { - thrown = x; - } - - if (!thrown) { - print('(TODO) no exception thrown, expected ' + type.name); - } else if (!(thrown instanceof type)) { - print('(TODO) expected ' + type.name + ', got ' + thrown); - } else { - print('test unexpectedly passed: expected ' + type.name + ' exception'); - } - } - function bufferize(u8array) { if (!sharedMem) return u8array.buffer; @@ -1596,10 +1572,7 @@ function test(sharedMem) { } catch (exc) { e = exc; } - if (!e) { - print("==== TODO but PASSED? ===="); - print("Bug 753996 unexpectedly passed"); - } + assert.notSameValue(e, null); // proto is proxy for view of buffer: should throw TypeError // @@ -1607,8 +1580,8 @@ function test(sharedMem) { // TypeError, and in fact it throws a (thisglobal).TypeError instead of // alien.TypeError. var av = Object.create(alien_view); - checkThrowTODO(() => av.getUint8(4), alien.TypeError); - checkThrowTODO(() => av.buffer, alien.TypeError); + checkThrow(() => av.getUint8(4), alien.TypeError); + checkThrow(() => av.buffer, alien.TypeError); // view of object whose proto is buffer. This should not work per dherman. // Note that DataView throws a TypeError while TypedArrays create a diff --git a/test/staging/sm/extensions/destructure-accessor.js b/test/staging/sm/extensions/destructure-accessor.js index 69b5e3cd51..cbcd1d04b2 100644 --- a/test/staging/sm/extensions/destructure-accessor.js +++ b/test/staging/sm/extensions/destructure-accessor.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + { get x(v) { } } and { set x(v, v2) { } } should be syntax errors esid: pending ---*/ -var gTestfile = 'destructure-accessor.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 536472; -var summary = - 'ES5: { get x(v) { } } and { set x(v, v2) { } } should be syntax errors'; - -print(BUGNUMBER + ": " + summary); - -//----------------------------------------------------------------------------- function expectOk(s) { @@ -79,6 +70,3 @@ expectOk("({ set x([, b, c]) { } })"); expectOk("({ set x([, b, c,]) { } })"); expectOk("({ set x({ a: a }) { } })"); expectOk("({ set x({ a: a, b: b }) { } })"); - -//----------------------------------------------------------------------------- - diff --git a/test/staging/sm/extensions/destructuring-__proto__-shorthand-assignment-before-var.js b/test/staging/sm/extensions/destructuring-__proto__-shorthand-assignment-before-var.js index 7f3bdbaf13..55533e62fc 100644 --- a/test/staging/sm/extensions/destructuring-__proto__-shorthand-assignment-before-var.js +++ b/test/staging/sm/extensions/destructuring-__proto__-shorthand-assignment-before-var.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + { __proto__ } should work as a destructuring assignment pattern esid: pending ---*/ -var gTestfile = 'destructuring-__proto__-shorthand-assignment-before-var.js'; -var BUGNUMBER = 963641; -var summary = "{ __proto__ } should work as a destructuring assignment pattern"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function objectWithProtoProperty(v) { @@ -48,7 +39,3 @@ function nested() assert.sameValue(__proto__, "fnord"); } nested(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/destructuring-__proto__-shorthand-assignment.js b/test/staging/sm/extensions/destructuring-__proto__-shorthand-assignment.js index aee71bc620..d4f830655b 100644 --- a/test/staging/sm/extensions/destructuring-__proto__-shorthand-assignment.js +++ b/test/staging/sm/extensions/destructuring-__proto__-shorthand-assignment.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + { __proto__ } should work as a destructuring assignment pattern esid: pending ---*/ -var gTestfile = 'destructuring-__proto__-shorthand-assignment.js'; -var BUGNUMBER = 963641; -var summary = "{ __proto__ } should work as a destructuring assignment pattern"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function objectWithProtoProperty(v) { @@ -48,7 +39,3 @@ function nested() assert.sameValue(__proto__, undefined); } nested(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/destructuring-__proto__-target-assignment.js b/test/staging/sm/extensions/destructuring-__proto__-target-assignment.js index a4ec6bf549..e183fbf923 100644 --- a/test/staging/sm/extensions/destructuring-__proto__-target-assignment.js +++ b/test/staging/sm/extensions/destructuring-__proto__-target-assignment.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + { __proto__: target } should work as a destructuring assignment pattern esid: pending ---*/ -var gTestfile = 'destructuring-__proto__-target--assignment.js'; -var BUGNUMBER = 963641; -var summary = - "{ __proto__: target } should work as a destructuring assignment pattern"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function objectWithProtoProperty(v) { @@ -49,7 +39,3 @@ function nested() assert.sameValue(target, -0); } nested(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/destructuring-for-inof-__proto__.js b/test/staging/sm/extensions/destructuring-for-inof-__proto__.js index a660e26180..be7b4d236e 100644 --- a/test/staging/sm/extensions/destructuring-for-inof-__proto__.js +++ b/test/staging/sm/extensions/destructuring-for-inof-__proto__.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + __proto__ should work in destructuring patterns as the targets of for-in/for-of loops esid: pending ---*/ -var gTestfile = 'destructuring-for-inof-__proto__.js'; -var BUGNUMBER = 963641; -var summary = - "__proto__ should work in destructuring patterns as the targets of " + - "for-in/for-of loops"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function objectWithProtoProperty(v) { @@ -84,7 +73,3 @@ function nested() assert.sameValue(target, String.prototype); } nested(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/element-setting-ToNumber-detaches.js b/test/staging/sm/extensions/element-setting-ToNumber-detaches.js index 6c894aaab2..c88b5a3d33 100644 --- a/test/staging/sm/extensions/element-setting-ToNumber-detaches.js +++ b/test/staging/sm/extensions/element-setting-ToNumber-detaches.js @@ -8,24 +8,11 @@ flags: - onlyStrict includes: [sm/non262.js, sm/non262-shell.js] description: | - pending + Don't assert assigning into memory detached while converting the value to assign into a number esid: pending ---*/ "use strict"; // make test fail when limitation below is fixed -var gTestfile = 'element-setting-ToNumber-detaches.js'; -//----------------------------------------------------------------------------- -var BUGNUMBER = 1001547; -var summary = - "Don't assert assigning into memory detached while converting the value to " + - "assign into a number"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ - // Technically per current spec the element-sets should throw in strict mode, // but we just silently do nothing for now, somewhat due to limitations of our // internal MOP (which can't easily say "try this special behavior, else fall @@ -35,7 +22,3 @@ print(BUGNUMBER + ": " + summary); var ab = new ArrayBuffer(64); var ta = new Uint32Array(ab); ta[4] = { valueOf() { $262.detachArrayBuffer(ab); return 5; } }; - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/error-tostring-function.js b/test/staging/sm/extensions/error-tostring-function.js index 6eb7503203..d733257f28 100644 --- a/test/staging/sm/extensions/error-tostring-function.js +++ b/test/staging/sm/extensions/error-tostring-function.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Error.prototype.toString called on function objects should work as on any object esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 894653; -var summary = - "Error.prototype.toString called on function objects should work as on any " + - "object"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function ErrorToString(v) { @@ -46,7 +35,3 @@ assert.sameValue(ErrorToString(fn2), "blerch: fnord"); var fn3 = function() {}; fn3.message = ""; assert.sameValue(ErrorToString(fn3), "fn3"); - -/******************************************************************************/ - -print("Tests complete!"); diff --git a/test/staging/sm/extensions/es5ish-defineGetter-defineSetter.js b/test/staging/sm/extensions/es5ish-defineGetter-defineSetter.js index aed831529c..19799673b3 100644 --- a/test/staging/sm/extensions/es5ish-defineGetter-defineSetter.js +++ b/test/staging/sm/extensions/es5ish-defineGetter-defineSetter.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Implement __define[GS]etter__ using Object.defineProperty esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 715821; -var summary = "Implement __define[GS]etter__ using Object.defineProperty"; - -print(BUGNUMBER + ": " + summary); - -/************* - * UTILITIES * - *************/ function s(desc) { @@ -282,7 +273,3 @@ check(sncwover, "fwoosh", { value: 17, writable: false, enumerable: true, config expectTypeError(function() { sncwover.__defineSetter__("fwoosh", s7); }); check(sncwover, "fwoosh", { value: 17, writable: false, enumerable: true, configurable: false }); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/eval-native-callback-is-indirect.js b/test/staging/sm/extensions/eval-native-callback-is-indirect.js index 73a14680cb..a98147d74b 100644 --- a/test/staging/sm/extensions/eval-native-callback-is-indirect.js +++ b/test/staging/sm/extensions/eval-native-callback-is-indirect.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + eval called from a native function is indirect esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 604504; -var summary = "eval called from a native function is indirect"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var originalEval = eval; @@ -34,7 +25,3 @@ function testArrayGeneric() var mapped = eval([directCheckCode], originalEval); assert.sameValue(mapped[0], true); } - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/extensions/expression-closure-syntax.js b/test/staging/sm/extensions/expression-closure-syntax.js index 529d7e3e31..c2430ba205 100644 --- a/test/staging/sm/extensions/expression-closure-syntax.js +++ b/test/staging/sm/extensions/expression-closure-syntax.js @@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Expression closure syntax is only permitted for functions that constitute entire AssignmentExpressions, not PrimaryExpressions that are themselves components of larger binary expressions esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1416337; -var summary = - "Expression closure syntax is only permitted for functions that constitute " + - "entire AssignmentExpressions, not PrimaryExpressions that are themselves " + - "components of larger binary expressions"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ { function assertThrowsSyntaxError(code) @@ -67,4 +55,3 @@ print(BUGNUMBER + ": " + summary); assertThrowsSyntaxError("x = @@@() 0 ? 1 : a => {} && true"); assertThrowsSyntaxError("x = true && @@@() 0 ? 1 : a => {}"); } - diff --git a/test/staging/sm/extensions/extension-methods-reject-null-undefined-this.js b/test/staging/sm/extensions/extension-methods-reject-null-undefined-this.js index c66fe36c1a..3fd4c316d9 100644 --- a/test/staging/sm/extensions/extension-methods-reject-null-undefined-this.js +++ b/test/staging/sm/extensions/extension-methods-reject-null-undefined-this.js @@ -8,22 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + ECMAScript built-in methods that immediately throw when |this| is |undefined| or |null| (due to CheckObjectCoercible, ToObject, or ToString) esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 619283; -var summary = - "ECMAScript built-in methods that immediately throw when |this| is " + - "|undefined| or |null| (due to CheckObjectCoercible, ToObject, or ToString)"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ - // This test fills out for the non-standard methods which // non262/misc/builtin-methods-reject-null-undefined-this.js declines to test. @@ -103,7 +91,3 @@ for (var className in ClassToMethodMap) testMethod(Class, className, method); } } - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/extensions/for-loop-with-lexical-declaration-and-nested-function-statement.js b/test/staging/sm/extensions/for-loop-with-lexical-declaration-and-nested-function-statement.js index 3cf0eedb4b..6d9cdc8534 100644 --- a/test/staging/sm/extensions/for-loop-with-lexical-declaration-and-nested-function-statement.js +++ b/test/staging/sm/extensions/for-loop-with-lexical-declaration-and-nested-function-statement.js @@ -8,23 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Don't assert when freshening the scope chain for a for-loop whose head contains a lexical declaration, where the loop body might add more bindings at runtime esid: pending ---*/ -var gTestfile = - "for-loop-with-lexical-declaration-and-nested-function-statement.js"; -//----------------------------------------------------------------------------- -var BUGNUMBER = 1149797; -var summary = - "Don't assert when freshening the scope chain for a for-loop whose head " + - "contains a lexical declaration, where the loop body might add more " + - "bindings at runtime"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ for (let x = 0; x < 9; ++x) { function q1() {} @@ -129,7 +115,3 @@ function h2() } } h2(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/function-caller-skips-eval-frames.js b/test/staging/sm/extensions/function-caller-skips-eval-frames.js index e6fe5bd633..954aad9e54 100644 --- a/test/staging/sm/extensions/function-caller-skips-eval-frames.js +++ b/test/staging/sm/extensions/function-caller-skips-eval-frames.js @@ -11,6 +11,7 @@ description: | pending esid: pending ---*/ + function innermost() { return arguments.callee.caller; } function nest() { return eval("innermost();"); } function nest2() { return nest(); } @@ -35,7 +36,3 @@ function innermostEvalTwice() { return eval('eval("arguments.callee.caller");'); var innermost = innermostEvalTwice; assert.sameValue(nest2(), nestTwice); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/function-properties.js b/test/staging/sm/extensions/function-properties.js index 0d16f8f64d..0741ccb432 100644 --- a/test/staging/sm/extensions/function-properties.js +++ b/test/staging/sm/extensions/function-properties.js @@ -11,6 +11,7 @@ description: | pending esid: pending ---*/ + function foo() { assert.sameValue(foo.arguments.length, 0); @@ -22,7 +23,3 @@ assert.sameValue(foo.caller, null); foo(); assert.sameValue(foo.arguments, null); assert.sameValue(foo.caller, null); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/getOwnPropertyNames-__proto__.js b/test/staging/sm/extensions/getOwnPropertyNames-__proto__.js index 4c12bc6e4d..5cd05b16ea 100644 --- a/test/staging/sm/extensions/getOwnPropertyNames-__proto__.js +++ b/test/staging/sm/extensions/getOwnPropertyNames-__proto__.js @@ -8,24 +8,11 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + __proto__ should show up with O.getOwnPropertyNames(O.prototype) esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 837630; -var summary ='__proto__ should show up with O.getOwnPropertyNames(O.prototype)'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var keys = Object.getOwnPropertyNames(Object.prototype); assert.sameValue(keys.indexOf("__proto__") >= 0, true, "should have gotten __proto__ as a property of Object.prototype " + "(got these properties: " + keys + ")"); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/keyword-unescaped-requirement.js b/test/staging/sm/extensions/keyword-unescaped-requirement.js index 97746d53bc..e4cf568d22 100644 --- a/test/staging/sm/extensions/keyword-unescaped-requirement.js +++ b/test/staging/sm/extensions/keyword-unescaped-requirement.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Escape sequences aren't allowed in bolded grammar tokens (that is, in keywords, possibly contextual keywords) esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1204027; -var summary = - "Escape sequences aren't allowed in bolded grammar tokens (that is, in " + - "keywords, possibly contextual keywords)"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var randomExtensions = [ @@ -41,7 +30,3 @@ for (var extension of randomExtensions) { assert.throws(SyntaxError, () => Function(extension), "bad behavior for: " + extension); } - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/mutable-proto-special-form.js b/test/staging/sm/extensions/mutable-proto-special-form.js index 0f8306a5d8..c3a05a63ad 100644 --- a/test/staging/sm/extensions/mutable-proto-special-form.js +++ b/test/staging/sm/extensions/mutable-proto-special-form.js @@ -8,26 +8,14 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Make __proto__ in object literals a special form not influenced by |Object.prototype| esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 948583; -var summary = - "Make __proto__ in object literals a special form not influenced by " + - "|Object.prototype|"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var passed = true; function performProtoTests(msg) { - print("Testing " + msg); assert.sameValue(passed, true, "passed wrong at start of test set"); assert.sameValue(Object.getPrototypeOf({ __proto__: null }), null); @@ -38,7 +26,6 @@ function performProtoTests(msg) assert.sameValue(Object.getPrototypeOf({ __proto__: obj }), obj); assert.sameValue(passed, true, "passed wrong at end of test set"); - print("Tests of " + msg + " passed!"); } function poisonProto(obj) @@ -94,5 +81,3 @@ try "proxy that throws for any access"); } catch (e) {} - -print("Tests complete"); diff --git a/test/staging/sm/extensions/nested-delete-name-in-evalcode.js b/test/staging/sm/extensions/nested-delete-name-in-evalcode.js index 435601f897..39bc39eddc 100644 --- a/test/staging/sm/extensions/nested-delete-name-in-evalcode.js +++ b/test/staging/sm/extensions/nested-delete-name-in-evalcode.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + |delete x| inside a function in eval code, where that eval code includes |var x| at top level, actually does delete the binding for x esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 616294; -var summary = - "|delete x| inside a function in eval code, where that eval code includes " + - "|var x| at top level, actually does delete the binding for x"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var f; @@ -85,8 +74,3 @@ function testFunctionLocal() f = testFunctionLocal(); assert.sameValue(f(), false); // defined by function code => not configurable => false - - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/extensions/new-cross-compartment.js b/test/staging/sm/extensions/new-cross-compartment.js index 33d68e892c..faf62ce8de 100644 --- a/test/staging/sm/extensions/new-cross-compartment.js +++ b/test/staging/sm/extensions/new-cross-compartment.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + |new| on a cross-compartment wrapper to a non-constructor shouldn't assert esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 1178653; -var summary = - "|new| on a cross-compartment wrapper to a non-constructor shouldn't assert"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var g = $262.createRealm().global; @@ -40,7 +30,3 @@ catch (e) // |!IsConstructor(constructor)|. assert.sameValue(e instanceof TypeError, true); } - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/proxy-array-target-length-definition.js b/test/staging/sm/extensions/proxy-array-target-length-definition.js index 812500567e..1c97840c4d 100644 --- a/test/staging/sm/extensions/proxy-array-target-length-definition.js +++ b/test/staging/sm/extensions/proxy-array-target-length-definition.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Redefining an array's |length| property when redefining the |length| property on a proxy with an array as target esid: pending ---*/ -var gTestfile = 'proxy-array-target-length-definition.js'; -var BUGNUMBER = 905947; -var summary = - "Redefining an array's |length| property when redefining the |length| " + - "property on a proxy with an array as target"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var arr = []; var p = new Proxy(arr, {}); @@ -54,7 +43,3 @@ assert.sameValue(ad.value, 0); assert.sameValue(ad.writable, true); assert.sameValue(ad.enumerable, false); assert.sameValue(ad.configurable, false); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/recursion.js b/test/staging/sm/extensions/recursion.js index b20de5d858..2cd92e5741 100644 --- a/test/staging/sm/extensions/recursion.js +++ b/test/staging/sm/extensions/recursion.js @@ -8,17 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Handle infinite recursion esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 622167; -var summary = 'Handle infinite recursion'; -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function eval() { eval(); } @@ -57,7 +49,3 @@ function test() foopy(); } test(); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/extensions/regress-469625-01.js b/test/staging/sm/extensions/regress-469625-01.js index 81f84fccf9..993c3637ab 100644 --- a/test/staging/sm/extensions/regress-469625-01.js +++ b/test/staging/sm/extensions/regress-469625-01.js @@ -8,16 +8,13 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Array prototype and expression closures esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 469625; -var summary = 'TM: Array prototype and expression closures'; + var actual = ''; var expect = ''; - //----------------------------------------------------------------------------- test(); //----------------------------------------------------------------------------- @@ -26,7 +23,6 @@ function test() { expect = 'TypeError: [].__proto__ is not a function'; - Array.prototype.__proto__ = function () { return 3; }; try @@ -35,8 +31,8 @@ function test() } catch(ex) { - print(actual = ex + ''); + actual = ex + ''; } - assert.sameValue(expect, actual, summary); + assert.sameValue(expect, actual); } diff --git a/test/staging/sm/extensions/regress-480579.js b/test/staging/sm/extensions/regress-480579.js index b4466a512c..81b3eef604 100644 --- a/test/staging/sm/extensions/regress-480579.js +++ b/test/staging/sm/extensions/regress-480579.js @@ -8,19 +8,14 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Do not assert: pobj_ == obj2 esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 480579; -var summary = 'Do not assert: pobj_ == obj2'; + var actual = ''; var expect = ''; - -//----------------------------------------------------------------------------- test(); -//----------------------------------------------------------------------------- function test() { @@ -30,9 +25,9 @@ function test() b = {__proto__: a}; c = {__proto__: b}; for (i = 0; i < 2; i++) { - print(actual += c.x); + actual += c.x; b.x = 2; } - assert.sameValue(expect, actual, summary); + assert.sameValue(expect, actual); } diff --git a/test/staging/sm/extensions/regress-481516.js b/test/staging/sm/extensions/regress-481516.js index 056df15e78..775ad8331b 100644 --- a/test/staging/sm/extensions/regress-481516.js +++ b/test/staging/sm/extensions/regress-481516.js @@ -8,19 +8,14 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + pobj_ == obj2 esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 481516; -var summary = 'TM: pobj_ == obj2'; + var actual = ''; var expect = ''; - -//----------------------------------------------------------------------------- test(); -//----------------------------------------------------------------------------- function test() { @@ -32,10 +27,10 @@ function test() objs = [{__proto__: a}, {__proto__: a}, {__proto__: a}, b, {__proto__: a}, {__proto__: a}]; for (i = 0; i < 6; i++) { - print(actual += ""+c.x); + actual += ""+c.x; objs[i].x = 2; } - print(actual += c.x); + actual += c.x; - assert.sameValue(expect, actual, summary); + assert.sameValue(expect, actual); } diff --git a/test/staging/sm/extensions/reviver-mutates-holder-array-nonnative.js b/test/staging/sm/extensions/reviver-mutates-holder-array-nonnative.js index e16c91ce1c..0db16b004f 100644 --- a/test/staging/sm/extensions/reviver-mutates-holder-array-nonnative.js +++ b/test/staging/sm/extensions/reviver-mutates-holder-array-nonnative.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Behavior when JSON.parse walks over a non-native object esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 901380; -var summary = "Behavior when JSON.parse walks over a non-native object"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var typedArray = null; @@ -43,7 +34,3 @@ assert.sameValue(arr[0], 0); assert.sameValue(arr[1], typedArray); assert.sameValue(observedTypedArrayElementCount, 1); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/reviver-mutates-holder-array.js b/test/staging/sm/extensions/reviver-mutates-holder-array.js index cfb5a67e0f..4bca5f47fc 100644 --- a/test/staging/sm/extensions/reviver-mutates-holder-array.js +++ b/test/staging/sm/extensions/reviver-mutates-holder-array.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Behavior when the JSON.parse reviver mutates the holder array esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 901351; -var summary = "Behavior when the JSON.parse reviver mutates the holder array"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var proxyObj = null; @@ -36,7 +27,3 @@ assert.sameValue(arr[0], 0); assert.sameValue(arr[1], proxyObj); assert.sameValue(arr[1].c, 17); assert.sameValue(arr[1].d, 42); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/reviver-mutates-holder-object-nonnative.js b/test/staging/sm/extensions/reviver-mutates-holder-object-nonnative.js index 4f86808f0e..091063d1bd 100644 --- a/test/staging/sm/extensions/reviver-mutates-holder-object-nonnative.js +++ b/test/staging/sm/extensions/reviver-mutates-holder-object-nonnative.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Behavior when JSON.parse walks over a non-native object esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 901380; -var summary = "Behavior when JSON.parse walks over a non-native object"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ // A little trickiness to account for the undefined-ness of property // enumeration order. @@ -57,7 +48,3 @@ else } assert.sameValue(observedTypedArrayElementCount, 1); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/reviver-mutates-holder-object.js b/test/staging/sm/extensions/reviver-mutates-holder-object.js index f5a520a852..634839a33e 100644 --- a/test/staging/sm/extensions/reviver-mutates-holder-object.js +++ b/test/staging/sm/extensions/reviver-mutates-holder-object.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Behavior when the JSON.parse reviver mutates the holder object esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 901351; -var summary = "Behavior when the JSON.parse reviver mutates the holder object"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ // A little trickiness to account for the undefined-ness of property // enumeration order. @@ -53,7 +44,3 @@ else assert.sameValue(obj.a.d, 17); assert.sameValue(obj.b, 1); } - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/set-property-non-extensible.js b/test/staging/sm/extensions/set-property-non-extensible.js index 4b40032080..def09c0b7b 100644 --- a/test/staging/sm/extensions/set-property-non-extensible.js +++ b/test/staging/sm/extensions/set-property-non-extensible.js @@ -10,29 +10,14 @@ flags: info: | preventExtensions on global description: | - pending + Properly handle attempted addition of properties to non-extensible objects esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 600128; -var summary = - "Properly handle attempted addition of properties to non-extensible objects"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var o = Object.freeze({}); for (var i = 0; i < 10; i++) - print(o.u = ""); + o.u = ""; Object.freeze(this); for (let j = 0; j < 10; j++) - print(u = ""); - - -/******************************************************************************/ - -print("All tests passed!"); + u = ""; diff --git a/test/staging/sm/extensions/typedarray-copyWithin-arguments-detaching.js b/test/staging/sm/extensions/typedarray-copyWithin-arguments-detaching.js index d6046560a5..ad8c622e6d 100644 --- a/test/staging/sm/extensions/typedarray-copyWithin-arguments-detaching.js +++ b/test/staging/sm/extensions/typedarray-copyWithin-arguments-detaching.js @@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + %TypedArray.prototype.copyWithin shouldn't misbehave horribly if index-argument conversion detaches the underlying ArrayBuffer esid: pending ---*/ -var gTestfile = "typedarray-copyWithin-arguments-detaching.js"; -//----------------------------------------------------------------------------- -var BUGNUMBER = 991981; -var summary = - "%TypedArray.prototype.copyWithin shouldn't misbehave horribly if " + - "index-argument conversion detaches the underlying ArrayBuffer"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function testBegin() { @@ -110,7 +98,3 @@ function testDest() assert.sameValue(ab.byteLength, 0, "detaching should work for start weirdness"); } testDest(); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/typedarray-set-detach.js b/test/staging/sm/extensions/typedarray-set-detach.js index 52db901963..3269612bad 100644 --- a/test/staging/sm/extensions/typedarray-set-detach.js +++ b/test/staging/sm/extensions/typedarray-set-detach.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Uint8Array.prototype.set issues when this array changes during setting esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 983344; -var summary = - "Uint8Array.prototype.set issues when this array changes during setting"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var ab = new ArrayBuffer(200); var a = new Uint8Array(ab); @@ -46,7 +36,3 @@ Object.defineProperty(src, 4, { }); a.set(src); - -/******************************************************************************/ - -print("Tests complete"); diff --git a/test/staging/sm/extensions/typedarray-subarray-of-subarray.js b/test/staging/sm/extensions/typedarray-subarray-of-subarray.js index 02f07cca6b..144935cc6b 100644 --- a/test/staging/sm/extensions/typedarray-subarray-of-subarray.js +++ b/test/staging/sm/extensions/typedarray-subarray-of-subarray.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + new Int8Array([1, 2, 3]).subarray(1).subarray(1)[0] === 3 esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 637643; -var summary = - "new Int8Array([1, 2, 3]).subarray(1).subarray(1)[0] === 3"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var ta = new Int8Array([1, 2, 3]); assert.sameValue(ta.length, 3); @@ -36,5 +26,3 @@ assert.sameValue(sa1[1], 3); var sa2 = sa1.subarray(1); assert.sameValue(sa2.length, 1); assert.sameValue(sa2[0], 3); - -print("All tests passed!"); diff --git a/test/staging/sm/extensions/weakmap.js b/test/staging/sm/extensions/weakmap.js index bf38e299ed..6bd2cb2fa6 100644 --- a/test/staging/sm/extensions/weakmap.js +++ b/test/staging/sm/extensions/weakmap.js @@ -8,18 +8,11 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + js weak maps esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 547941; -var summary = 'js weak maps'; -var actual = ''; -var expect = ''; -//----------------------------------------------------------------------------- test(); -//----------------------------------------------------------------------------- function test() { @@ -44,13 +37,6 @@ function test() if (todo) { TestTodoCount++; - if (success) { - var ex = new Error; - print ("=== TODO but PASSED? ==="); - print (ex.stack); - print ("========================"); - } - return; } @@ -58,15 +44,6 @@ function test() TestPassCount++; } else { TestFailCount++; - - var ex = new Error; - print ("=== FAILED ==="); - print (ex.stack); - if (thrown) { - print (" threw exception:"); - print (thrown); - } - print ("=============="); } } @@ -118,7 +95,5 @@ function test() checkThrows(() => map.set("non-object key", value)); - print ("done"); - assert.sameValue(0, TestFailCount, "weak map tests"); }