Remove printBugNumber, inSection, printStatus, and writeHeaderToLog empty functions

This commit is contained in:
André Bargull 2025-04-30 14:15:31 +02:00 committed by Ms2ger
parent e0f3a70c5a
commit a06e66989b
46 changed files with 1 additions and 183 deletions

View File

@ -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();

View File

@ -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"; }

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
[].concat(null);
assert.sameValue(expect, actual, summary);

View File

@ -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;

View File

@ -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!");

View File

@ -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!");

View File

@ -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!");

View File

@ -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!");

View File

@ -16,9 +16,6 @@ var BUGNUMBER = 459293;
var summary = 'Allow redeclaration of JSON';
var actual = '';
var expect = '';
printBugNumber(BUGNUMBER);
printStatus (summary);
try
{

View File

@ -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);

View File

@ -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");
};

View File

@ -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;

View File

@ -20,9 +20,6 @@ var actual = "Early failure";
var expect = "No errors";
printBugNumber(BUGNUMBER);
printStatus(summary);
var o = { get p() { return "a"; } };
function test1()

View File

@ -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);

View File

@ -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; }

View File

@ -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

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
expect = 'TypeError: [].__proto__ is not a function';

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
expect = '12';
a = {x: 1};

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
expect = '1111222';
a = {x: 1};

View File

@ -23,9 +23,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus(summary);
var TestPassCount = 0;
var TestFailCount = 0;
var TestTodoCount = 0;

View File

@ -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]];

View File

@ -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;

View File

@ -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!");

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
expect = 'foo';
try

View File

@ -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);

View File

@ -31,8 +31,5 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
assert.sameValue(expect, actual, summary);
}

View File

@ -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');

View File

@ -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);

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
function f(s) {
return this.eval(s);
}

View File

@ -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

View File

@ -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; })();

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
try
{
for (i = 0; i < 5;)

View File

@ -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) ************************/

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
var global;

View File

@ -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

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
// ------- Comment #53 From Jason Orendorff
// Assertion failure: (slot) < (uint32_t)(obj)->dslots[-1]

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
// ------- Comment #79 From Jason Orendorff
x; var x; function x() { return 0; }

View File

@ -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();

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
expect = 'y';
Array.prototype[1] = 'y';

View File

@ -23,9 +23,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
function f(x) {
var [a, b, [c0, c1]] = [x, x, x];
}

View File

@ -24,9 +24,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
(function() { var k; eval("for (var k in {});") })()
assert.sameValue(expect, actual, summary);

View File

@ -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);})();

View File

@ -25,9 +25,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
try {
new (this.prototype = this);
} catch (e) {

View File

@ -23,9 +23,6 @@ test();
function test()
{
printBugNumber(BUGNUMBER);
printStatus (summary);
expect = 'SyntaxError';
try

View File

@ -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);
}

View File

@ -20,9 +20,6 @@ var actual = "Early failure";
var expect = "No errors";
printBugNumber(BUGNUMBER);
printStatus(summary);
var o = { get p() { return "a"; } };
function test1()