diff --git a/test/staging/sm/misc/builtin-methods-reject-null-undefined-this.js b/test/staging/sm/misc/builtin-methods-reject-null-undefined-this.js index 4fa0ca347e..4757cefa0a 100644 --- a/test/staging/sm/misc/builtin-methods-reject-null-undefined-this.js +++ b/test/staging/sm/misc/builtin-methods-reject-null-undefined-this.js @@ -8,20 +8,9 @@ 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 * - **************/ // We can't just exhaustively loop over everything because 1) method properties // might be extensions with special |this| handling, and 2) some methods don't @@ -155,7 +144,3 @@ for (var className in ClassToMethodMap) testMethod(Class, className, method); } } - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/misc/enumerate-undefined.js b/test/staging/sm/misc/enumerate-undefined.js index 1a25f78cc3..d027fd21a2 100644 --- a/test/staging/sm/misc/enumerate-undefined.js +++ b/test/staging/sm/misc/enumerate-undefined.js @@ -8,23 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + JS_EnumerateStandardClasses uses wrong attributes for undefined esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 547087; -var summary = 'JS_EnumerateStandardClasses uses wrong attributes for undefined'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ for (var p in this); assert.sameValue(Object.getOwnPropertyDescriptor(this, "undefined").writable, false); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/misc/explicit-undefined-optional-argument.js b/test/staging/sm/misc/explicit-undefined-optional-argument.js index f2f445eb52..d0b2b99ca2 100644 --- a/test/staging/sm/misc/explicit-undefined-optional-argument.js +++ b/test/staging/sm/misc/explicit-undefined-optional-argument.js @@ -8,17 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Properly handle explicitly-undefined optional arguments to a bunch of functions esid: pending ---*/ -var BUGNUMBER = 373118; -var summary = - 'Properly handle explicitly-undefined optional arguments to a bunch of ' + - 'functions'; - -print(BUGNUMBER + ": " + summary); - -//----------------------------------------------------------------------------- var a; @@ -38,6 +30,3 @@ a = [1, 2, 3].sort(undefined); assert.sameValue(a.join(), '1,2,3'); assert.sameValue((20).toString(undefined), '20'); - -//----------------------------------------------------------------------------- - diff --git a/test/staging/sm/misc/function-definition-eval.js b/test/staging/sm/misc/function-definition-eval.js index 7f0cbb8d22..a70f115555 100644 --- a/test/staging/sm/misc/function-definition-eval.js +++ b/test/staging/sm/misc/function-definition-eval.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Implement the ES5 algorithm for processing function statements esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 577325; -var summary = 'Implement the ES5 algorithm for processing function statements'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var outer, desc; var isInShell = !("Window" in this); @@ -347,7 +338,3 @@ if (isInShell) { assert.sameValue(desc.value, "data8"); } } - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/misc/future-reserved-words.js b/test/staging/sm/misc/future-reserved-words.js index d85208a95c..560a979493 100644 --- a/test/staging/sm/misc/future-reserved-words.js +++ b/test/staging/sm/misc/future-reserved-words.js @@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Implement FutureReservedWords per-spec esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 497869; -var summary = "Implement FutureReservedWords per-spec"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var futureReservedWords = [ @@ -52,7 +43,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS LHS FOR ASSIGNMENT actual = ""; - status = summary + ": " + word + ": normal assignment"; + status = word + ": normal assignment"; try { eval(word + " = 'foo';"); @@ -66,7 +57,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict assignment"; + status = word + ": strict assignment"; try { eval("'use strict'; " + word + " = 'foo';"); @@ -82,7 +73,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS DESTRUCTURING SHORTHAND actual = ""; - status = summary + ": " + word + ": destructuring shorthand"; + status = word + ": destructuring shorthand"; try { eval("({ " + word + " } = 'foo');"); @@ -96,7 +87,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict destructuring shorthand"; + status = word + ": strict destructuring shorthand"; try { eval("'use strict'; ({ " + word + " } = 'foo');"); @@ -112,7 +103,7 @@ function testWord(word, expectNormal, expectStrict) // USE IN VARIABLE DECLARATION actual = ""; - status = summary + ": " + word + ": normal var"; + status = word + ": normal var"; try { eval("var " + word + ";"); @@ -126,7 +117,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict var"; + status = word + ": strict var"; try { eval("'use strict'; var " + word + ";"); @@ -142,7 +133,7 @@ function testWord(word, expectNormal, expectStrict) // USE IN FOR-IN VARIABLE DECLARATION actual = ""; - status = summary + ": " + word + ": normal for-in var"; + status = word + ": normal for-in var"; try { eval("for (var " + word + " in {});"); @@ -156,7 +147,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict for-in var"; + status = word + ": strict for-in var"; try { eval("'use strict'; for (var " + word + " in {});"); @@ -172,7 +163,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS CATCH IDENTIFIER actual = ""; - status = summary + ": " + word + ": normal var"; + status = word + ": normal var"; try { eval("try { } catch (" + word + ") { }"); @@ -186,7 +177,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict var"; + status = word + ": strict var"; try { eval("'use strict'; try { } catch (" + word + ") { }"); @@ -202,7 +193,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS LABEL actual = ""; - status = summary + ": " + word + ": normal label"; + status = word + ": normal label"; try { eval(word + ": while (false);"); @@ -216,7 +207,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict label"; + status = word + ": strict label"; try { eval("'use strict'; " + word + ": while (false);"); @@ -232,7 +223,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS ARGUMENT NAME IN FUNCTION DECLARATION actual = ""; - status = summary + ": " + word + ": normal function argument"; + status = word + ": normal function argument"; try { eval("function foo(" + word + ") { }"); @@ -246,7 +237,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict function argument"; + status = word + ": strict function argument"; try { eval("'use strict'; function foo(" + word + ") { }"); @@ -260,7 +251,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectStrict, status); actual = ""; - status = summary + ": " + word + ": function argument retroactively strict"; + status = word + ": function argument retroactively strict"; try { eval("function foo(" + word + ") { 'use strict'; }"); @@ -276,7 +267,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS ARGUMENT NAME IN FUNCTION EXPRESSION actual = ""; - status = summary + ": " + word + ": normal function expression argument"; + status = word + ": normal function expression argument"; try { eval("var s = (function foo(" + word + ") { });"); @@ -290,7 +281,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict function expression argument"; + status = word + ": strict function expression argument"; try { eval("'use strict'; var s = (function foo(" + word + ") { });"); @@ -304,7 +295,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectStrict, status); actual = ""; - status = summary + ": " + word + ": function expression argument retroactively strict"; + status = word + ": function expression argument retroactively strict"; try { eval("var s = (function foo(" + word + ") { 'use strict'; });"); @@ -320,7 +311,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS ARGUMENT NAME WITH FUNCTION CONSTRUCTOR actual = ""; - status = summary + ": " + word + ": argument with normal Function"; + status = word + ": argument with normal Function"; try { Function(word, "return 17"); @@ -334,7 +325,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": argument with strict Function"; + status = word + ": argument with strict Function"; try { Function(word, "'use strict'; return 17"); @@ -350,7 +341,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS ARGUMENT NAME IN PROPERTY SETTER actual = ""; - status = summary + ": " + word + ": normal property setter argument"; + status = word + ": normal property setter argument"; try { eval("var o = { set x(" + word + ") { } };"); @@ -364,7 +355,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict property setter argument"; + status = word + ": strict property setter argument"; try { eval("'use strict'; var o = { set x(" + word + ") { } };"); @@ -378,7 +369,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectStrict, status); actual = ""; - status = summary + ": " + word + ": property setter argument retroactively strict"; + status = word + ": property setter argument retroactively strict"; try { eval("var o = { set x(" + word + ") { 'use strict'; } };"); @@ -394,7 +385,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS FUNCTION NAME IN FUNCTION DECLARATION actual = ""; - status = summary + ": " + word + ": normal function name"; + status = word + ": normal function name"; try { eval("function " + word + "() { }"); @@ -408,7 +399,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict function name"; + status = word + ": strict function name"; try { eval("'use strict'; function " + word + "() { }"); @@ -422,7 +413,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectStrict, status); actual = ""; - status = summary + ": " + word + ": function name retroactively strict"; + status = word + ": function name retroactively strict"; try { eval("function " + word + "() { 'use strict'; }"); @@ -438,7 +429,7 @@ function testWord(word, expectNormal, expectStrict) // USE AS FUNCTION NAME IN FUNCTION EXPRESSION actual = ""; - status = summary + ": " + word + ": normal function expression name"; + status = word + ": normal function expression name"; try { eval("var s = (function " + word + "() { });"); @@ -452,7 +443,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectNormal, status); actual = ""; - status = summary + ": " + word + ": strict function expression name"; + status = word + ": strict function expression name"; try { eval("'use strict'; var s = (function " + word + "() { });"); @@ -466,7 +457,7 @@ function testWord(word, expectNormal, expectStrict) assert.sameValue(actual, expectStrict, status); actual = ""; - status = summary + ": " + word + ": function expression name retroactively strict"; + status = word + ": function expression name retroactively strict"; try { eval("var s = (function " + word + "() { 'use strict'; });"); @@ -492,7 +483,3 @@ function testStrictFutureReservedWord(word) futureReservedWords.forEach(testFutureReservedWord); strictFutureReservedWords.forEach(testStrictFutureReservedWord); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/misc/global-numeric-properties.js b/test/staging/sm/misc/global-numeric-properties.js index 2989611a5d..1b335f638f 100644 --- a/test/staging/sm/misc/global-numeric-properties.js +++ b/test/staging/sm/misc/global-numeric-properties.js @@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + undefined, Infinity, and NaN global properties should not be writable esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 537863; -var summary = - 'undefined, Infinity, and NaN global properties should not be writable'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var desc, old, error; var global = this; @@ -59,7 +49,3 @@ for (var i = 0; i < names.length; i++) } assert.sameValue(error, "typeerror", "wrong strict mode error setting " + name); } - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/misc/line-paragraph-separator-parse-as-lineterminator.js b/test/staging/sm/misc/line-paragraph-separator-parse-as-lineterminator.js index a01a7bfd37..f6947a1331 100644 --- a/test/staging/sm/misc/line-paragraph-separator-parse-as-lineterminator.js +++ b/test/staging/sm/misc/line-paragraph-separator-parse-as-lineterminator.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR must match the LineTerminator production when parsing code esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 663331; -var summary = - "U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR must match the " + - "LineTerminator production when parsing code"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var hidden = 17; var assigned; @@ -51,7 +40,3 @@ function t2() assert.sameValue(assigned, 5); } t2(); - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/misc/redeclare-var-non-writable-property.js b/test/staging/sm/misc/redeclare-var-non-writable-property.js index c96e9946fc..3054db5976 100644 --- a/test/staging/sm/misc/redeclare-var-non-writable-property.js +++ b/test/staging/sm/misc/redeclare-var-non-writable-property.js @@ -8,23 +8,8 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + |var| statements for existing, read-only/permanent properties should not be errors esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 539488; -var summary = - '|var| statements for existing, read-only/permanent properties should not ' + - 'be errors'; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ var undefined; - -/******************************************************************************/ - -print("All tests passed!"); diff --git a/test/staging/sm/misc/syntax-error-end-of-for-head-part.js b/test/staging/sm/misc/syntax-error-end-of-for-head-part.js index fbddb20352..0a777b0528 100644 --- a/test/staging/sm/misc/syntax-error-end-of-for-head-part.js +++ b/test/staging/sm/misc/syntax-error-end-of-for-head-part.js @@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js] flags: - noStrict description: | - pending + Syntax errors at the end of |for| statement header parts shouldn't cause crashes esid: pending ---*/ -//----------------------------------------------------------------------------- -var BUGNUMBER = 672854; -var summary = - "Syntax errors at the end of |for| statement header parts shouldn't cause " + - "crashes"; - -print(BUGNUMBER + ": " + summary); - -/************** - * BEGIN TEST * - **************/ function checkSyntaxError(str) { @@ -51,7 +40,3 @@ checkSyntaxError("for(var w; w > 3; 5\\"); checkSyntaxError("for(w; w > 3; 5\\"); checkSyntaxError("for(var w; w > 3; 5foo"); checkSyntaxError("for(w; w > 3; 5foo"); - -/******************************************************************************/ - -print("Tests complete!");