mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 12:34:41 +02:00
Remove printBugNumber, inSection, printStatus, and writeHeaderToLog empty functions
This commit is contained in:
parent
e0f3a70c5a
commit
a06e66989b
@ -1,13 +1,7 @@
|
||||
/*---
|
||||
defines: [printBugNumber, inSection, printStatus, writeHeaderToLog,
|
||||
assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer]
|
||||
defines: [assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer]
|
||||
---*/
|
||||
|
||||
function printBugNumber() {}
|
||||
function inSection() {}
|
||||
function printStatus() {}
|
||||
function writeHeaderToLog() {}
|
||||
|
||||
function assertThrownErrorContains(f, substr) {
|
||||
try {
|
||||
f();
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
function add(a, b) { return a + b; }
|
||||
function testreduce(v) { return v == 3 ? "PASS" : "FAIL"; }
|
||||
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
[].concat(null);
|
||||
|
||||
assert.sameValue(expect, actual, summary);
|
||||
|
@ -17,9 +17,6 @@ var summary = 'setting array.length to null should not throw an uncatchable exce
|
||||
var actual = 0;
|
||||
var expect = 0;
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
var a = [];
|
||||
a.length = null;
|
||||
|
||||
|
@ -16,9 +16,6 @@ var summary = 'lambda constructor "method" vs. instanceof';
|
||||
var actual;
|
||||
var expect;
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
var Y = {widget: {}};
|
||||
|
||||
Y.widget.DataSource = function () {};
|
||||
@ -31,5 +28,3 @@ actual = J instanceof Y.widget.DataSource;
|
||||
expect = true;
|
||||
|
||||
assert.sameValue(expect, actual, summary);
|
||||
|
||||
printStatus("All tests passed!");
|
||||
|
@ -16,9 +16,6 @@ var summary = 'null-closure property initialiser mis-brands object literal scope
|
||||
var actual;
|
||||
var expect;
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
function make(g) {
|
||||
var o = {f: function(a,b) { return a*b; }, g: g};
|
||||
return o;
|
||||
@ -32,5 +29,3 @@ actual = callg(x, 1);
|
||||
expect = -callg(y, 1);
|
||||
|
||||
assert.sameValue(expect, actual, summary);
|
||||
|
||||
printStatus("All tests passed!");
|
||||
|
@ -14,9 +14,6 @@ esid: pending
|
||||
var BUGNUMBER = 528082;
|
||||
var summary = 'named function expression function-name-as-upvar slot botch';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
function f() {
|
||||
return function g(a) { return function () { return g; }(); }();
|
||||
}
|
||||
@ -24,5 +21,3 @@ var actual = typeof f();
|
||||
var expect = "function";
|
||||
|
||||
assert.sameValue(expect, actual, summary);
|
||||
|
||||
printStatus("All tests passed!");
|
||||
|
@ -14,9 +14,6 @@ esid: pending
|
||||
var BUGNUMBER = 533254;
|
||||
var summary = 'init-method late in table-big initialiser screwup';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
function f() {
|
||||
var proto = {p8:8};
|
||||
var obj = {
|
||||
@ -32,5 +29,3 @@ var expect = f(),
|
||||
expect += '';
|
||||
actual += '';
|
||||
assert.sameValue(expect, actual, summary);
|
||||
|
||||
printStatus("All tests passed!");
|
||||
|
@ -16,9 +16,6 @@ var BUGNUMBER = 459293;
|
||||
var summary = 'Allow redeclaration of JSON';
|
||||
var actual = '';
|
||||
var expect = '';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -12,9 +12,6 @@ esid: pending
|
||||
var BUGNUMBER = 1108382;
|
||||
var summary = 'Remove non-standard flag argument from String.prototype.{search,match,replace}.';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
var result = "bbbAa".match("a", "i");
|
||||
assert.sameValue(result.index, 4);
|
||||
assert.sameValue(result.length, 1);
|
||||
|
@ -22,9 +22,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
let testAwaitInDefaultExprOfAsyncFunc = (code) => {
|
||||
assert.throws(SyntaxError, () => eval(code), "await expression can't be used in parameter");
|
||||
};
|
||||
|
@ -29,9 +29,6 @@ function scope1() {
|
||||
}
|
||||
|
||||
function test() {
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
// The scope chain in eval should be just scope1() and the global object.
|
||||
actual = eval('x', scope1());
|
||||
expect = 0;
|
||||
|
@ -20,9 +20,6 @@ var actual = "Early failure";
|
||||
var expect = "No errors";
|
||||
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
var o = { get p() { return "a"; } };
|
||||
|
||||
function test1()
|
||||
|
@ -71,9 +71,6 @@ function test(sharedMem) {
|
||||
return v.buffer;
|
||||
}
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
// testConstructor
|
||||
buffer = bufferize(new Uint8Array([1, 2]));
|
||||
checkThrow(() => new DataView(buffer, 0, 3), RangeError);
|
||||
|
@ -15,8 +15,6 @@ esid: pending
|
||||
var BUGNUMBER = 521456;
|
||||
var summary =
|
||||
'Incorrect decompilation of new (eval(v)).s and new (f.apply(2)).s';
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
function foo(c) { return new (eval(c)).s; }
|
||||
function bar(f) { var a = new (f.apply(2).s); return a; }
|
||||
|
@ -17,10 +17,6 @@ var summary = 'Do not assert with JIT: !lhs->isQuad() && !rhs->isQuad()';
|
||||
var actual = 'No Crash';
|
||||
var expect = 'No Crash';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
|
||||
const IS_TOKEN_ARRAY =
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, // 0
|
||||
0, 0, 0, 0, 0, 0, 0, 0, // 8
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'TypeError: [].__proto__ is not a function';
|
||||
|
||||
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = '12';
|
||||
|
||||
a = {x: 1};
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = '1111222';
|
||||
|
||||
a = {x: 1};
|
||||
|
@ -23,9 +23,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
var TestPassCount = 0;
|
||||
var TestFailCount = 0;
|
||||
var TestTodoCount = 0;
|
||||
|
@ -25,9 +25,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
var list1 = [[1,2],[3,4],[5,6]];
|
||||
var list2 = [[1,2,3],[4,5,6],[7,8,9]];
|
||||
|
||||
|
@ -14,9 +14,6 @@ var summary =
|
||||
"The token next to yield should be tokenized as non-operand if yield is " +
|
||||
"a valid name";
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
var yield = 12, a = 3, b = 6, g = 2;
|
||||
var yieldParsedAsIdentifier = false;
|
||||
|
||||
|
@ -17,9 +17,6 @@ var summary = 'ES5 Object.keys(O)';
|
||||
var actual = '';
|
||||
var expect = '';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
function arraysEqual(a1, a2)
|
||||
{
|
||||
return a1.length === a2.length &&
|
||||
@ -96,5 +93,3 @@ if (typeof Namespace !== "undefined" && typeof QName !== "undefined")
|
||||
/******************************************************************************/
|
||||
|
||||
assert.sameValue(expect, actual, "Object.keys");
|
||||
|
||||
printStatus("All tests passed!");
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'foo';
|
||||
|
||||
try
|
||||
|
@ -31,20 +31,15 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'pass';
|
||||
try
|
||||
{
|
||||
eval("function f(){}function g(){}");
|
||||
actual = "pass";
|
||||
printStatus('no exception thrown');
|
||||
}
|
||||
catch ( e )
|
||||
{
|
||||
actual = "fail";
|
||||
printStatus('exception ' + e.toString() + ' thrown');
|
||||
}
|
||||
|
||||
assert.sameValue(expect, actual, summary);
|
||||
|
@ -31,8 +31,5 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
assert.sameValue(expect, actual, summary);
|
||||
}
|
||||
|
@ -17,9 +17,6 @@ var summary = 'Do not assert: parsing foo getter';
|
||||
var actual = 'No Assertion';
|
||||
var expect = 'No Assertion';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
try
|
||||
{
|
||||
eval('getter\n');
|
||||
|
@ -17,9 +17,6 @@ var summary = 'Do not Assert: c <= cs->length in AddCharacterToCharSet';
|
||||
var actual = 'No Crash';
|
||||
var expect = 'No Crash';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
/[\cA]/.exec('\x01');
|
||||
|
||||
assert.sameValue(expect, actual, summary);
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
function f(s) {
|
||||
return this.eval(s);
|
||||
}
|
||||
|
@ -22,9 +22,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
print('Note: You must run this test under valgrind to determine if it passes');
|
||||
|
||||
try
|
||||
|
@ -17,9 +17,6 @@ var summary = 'Do not assert deleting eval 16 times';
|
||||
var actual = '';
|
||||
var expect = '';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
this.__proto__.x = eval;
|
||||
for (i = 0; i < 16; ++i) delete eval;
|
||||
(function w() { x = 1; })();
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
try
|
||||
{
|
||||
for (i = 0; i < 5;)
|
||||
|
@ -17,9 +17,6 @@ var summary = 'Crash with JIT in js_FillPropertyCache';
|
||||
var actual = 'No Crash';
|
||||
var expect = 'No Crash';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
|
||||
/************************ BROWSER DETECT (http://www.quirksmode.org/js/detect.html) ************************/
|
||||
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
var global;
|
||||
|
||||
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
// ------- Comment #51 From Jason Orendorff
|
||||
|
||||
// Assertion failure: UPVAR_FRAME_SKIP(uva->vector[i]) == 0
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
// ------- Comment #53 From Jason Orendorff
|
||||
|
||||
// Assertion failure: (slot) < (uint32_t)(obj)->dslots[-1]
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
// ------- Comment #79 From Jason Orendorff
|
||||
|
||||
x; var x; function x() { return 0; }
|
||||
|
@ -24,10 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
|
||||
var m = new Number(3);
|
||||
function foo() { for (var i=0; i<20;i++) m.toString(); }
|
||||
foo();
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'y';
|
||||
|
||||
Array.prototype[1] = 'y';
|
||||
|
@ -23,9 +23,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
function f(x) {
|
||||
var [a, b, [c0, c1]] = [x, x, x];
|
||||
}
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
(function() { var k; eval("for (var k in {});") })()
|
||||
|
||||
assert.sameValue(expect, actual, summary);
|
||||
|
@ -24,9 +24,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 5;
|
||||
|
||||
(function(){var x;eval("for (x = 0; x < 5; x++);");print(actual = x);})();
|
||||
|
@ -25,9 +25,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
try {
|
||||
new (this.prototype = this);
|
||||
} catch (e) {
|
||||
|
@ -23,9 +23,6 @@ test();
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'SyntaxError';
|
||||
|
||||
try
|
||||
|
@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/licenses/publicdomain/
|
||||
*/
|
||||
|
||||
/*---
|
||||
includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 99999;
|
||||
var summary = '';
|
||||
var actual = '';
|
||||
var expect = '';
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
test();
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
function test()
|
||||
{
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
assert.sameValue(expect, actual, summary);
|
||||
}
|
@ -20,9 +20,6 @@ var actual = "Early failure";
|
||||
var expect = "No errors";
|
||||
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus(summary);
|
||||
|
||||
var o = { get p() { return "a"; } };
|
||||
|
||||
function test1()
|
||||
|
Loading…
x
Reference in New Issue
Block a user