Remove print calls in sm/TypedArray

This commit is contained in:
André Bargull 2025-04-30 14:16:06 +02:00 committed by Philip Chimento
parent b58523b3f9
commit ea18b9dce5
8 changed files with 11 additions and 97 deletions

View File

@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-TypedArray-shell.js]
flags:
- noStrict
description: |
pending
Returning non-object from @@iterator should throw
esid: pending
---*/
var BUGNUMBER = 1021835;
var summary = "Returning non-object from @@iterator should throw";
print(BUGNUMBER + ": " + summary);
let primitives = [
1,
@ -35,4 +31,3 @@ for (let ctor of typedArrayConstructors) {
});
}
}

View File

@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-TypedArray-shell.js]
flags:
- noStrict
description: |
pending
Typed array element-setting should convert to target type using ToNumber followed by an element-type-specific truncation function
esid: pending
---*/
var gTestfile = 'element-setting-converts-using-ToNumber.js';
//-----------------------------------------------------------------------------
var BUGNUMBER = 985733;
var summary =
"Typed array element-setting should convert to target type using ToNumber "
"followed by an element-type-specific truncation function";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
anyTypedArrayConstructors.forEach(function(TypedArray) {
var ta = new TypedArray(1);
@ -90,7 +78,3 @@ anyTypedArrayConstructors.forEach(function(TypedArray) {
"(" + Object.prototype.toString.call(big) + ")");
}
});
/******************************************************************************/
print("Tests complete");

View File

@ -8,12 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-TypedArray-shell.js]
flags:
- noStrict
description: |
pending
Implement %TypedArray%.prototype.{find, findIndex}
esid: pending
---*/
var BUGNUMBER = 1078975;
var summary = "Implement %TypedArray%.prototype.{find, findIndex}";
print(BUGNUMBER + ": " + summary);
const methods = ["find", "findIndex"];
@ -54,5 +51,3 @@ anyTypedArrayConstructors.filter(isFloatConstructor).forEach(constructor => {
assert.sameValue(arr.find(v => Object.is(v, -0)), -0);
assert.sameValue(arr.findIndex(v => Object.is(v, -0)), 0);
})

View File

@ -8,12 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-TypedArray-shell.js]
flags:
- noStrict
description: |
pending
Implement %TypedArray%.prototype.{findLast, findLastIndex}
esid: pending
---*/
var BUGNUMBER = 1704385;
var summary = "Implement %TypedArray%.prototype.{findLast, findLastIndex}";
print(BUGNUMBER + ": " + summary);
const methods = ["findLast", "findLastIndex"];
@ -54,5 +51,3 @@ anyTypedArrayConstructors.filter(isFloatConstructor).forEach(constructor => {
assert.sameValue(arr.findLast(v => Object.is(v, -0)), -0);
assert.sameValue(arr.findLastIndex(v => Object.is(v, -0)), 0);
})

View File

@ -6,13 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-TypedArray-shell.js]
flags:
- noStrict
description: |
pending
TypedArray getters should have get prefix
esid: pending
---*/
var BUGNUMBER = 1180290;
var summary = 'TypedArray getters should have get prefix';
print(BUGNUMBER + ": " + summary);
let TypedArray = Object.getPrototypeOf(Float32Array.prototype).constructor;
@ -22,4 +18,3 @@ assert.sameValue(Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteLeng
assert.sameValue(Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteOffset").get.name, "get byteOffset");
assert.sameValue(Object.getOwnPropertyDescriptor(TypedArray.prototype, "length").get.name, "get length");
assert.sameValue(Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag).get.name, "get [Symbol.toStringTag]");

View File

@ -6,27 +6,15 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-TypedArray-shell.js]
flags:
- noStrict
description: |
pending
Typed array prototypes/constructors should be largely empty, inheriting most functionality from %TypedArray% and %TypedArray%.prototype
esid: pending
---*/
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
var gTestfile = 'prototype-constructor-identity.js';
//-----------------------------------------------------------------------------
var BUGNUMBER = 896116;
var summary =
"Typed array prototypes/constructors should be largely empty, inheriting "
"most functionality from %TypedArray% and %TypedArray%.prototype";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var TypedArray = Object.getPrototypeOf(Int8Array);
assert.sameValue(TypedArray !== Function.prototype, true,
@ -62,7 +50,3 @@ anyTypedArrayConstructors.forEach(function(ctor) {
assert.sameValue(Object.getPrototypeOf(proto), TypedArray.prototype,
"prototype should inherit from %TypedArray%.prototype");
});
/******************************************************************************/
print("Tests complete");

View File

@ -6,27 +6,15 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-TypedArray-shell.js]
flags:
- noStrict
description: |
pending
%TypedArray%.prototype.set must throw a RangeError when passed a negative offset
esid: pending
---*/
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
var gTestfile = "set-negative-offset.js";
//-----------------------------------------------------------------------------
var BUGNUMBER = 1140752;
var summary =
"%TypedArray%.prototype.set must throw a RangeError when passed a negative " +
"offset";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
try
{
new Uint8Array().set([], -1);
@ -37,7 +25,3 @@ catch (e)
assert.sameValue(e instanceof RangeError, true,
"expected RangeError, instead got: " + e);
}
/******************************************************************************/
print("Tests complete");

View File

@ -6,29 +6,15 @@ includes: [sm/non262.js, sm/non262-shell.js, sm/non262-TypedArray-shell.js]
flags:
- noStrict
description: |
pending
When setting a typed array from an overlapping typed array of different element type, copy the source elements into properly-sized temporary memory, and properly copy them into the target without overflow (of either source *or* target) when finished
esid: pending
---*/
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
var gTestfile = "set-same-buffer-different-source-target-types.js";
//-----------------------------------------------------------------------------
var BUGNUMBER = 896116;
var summary =
"When setting a typed array from an overlapping typed array of different " +
"element type, copy the source elements into properly-sized temporary " +
"memory, and properly copy them into the target without overflow (of " +
"either source *or* target) when finished";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
// smallest 2**n triggering segfaults in a pre-patch build locally, then
// quadrupled in case the boundary ever changes, or is different in some other
// memory-allocating implementation
@ -43,7 +29,3 @@ ta.set(ta2);
// the array, too.
for (var i = 0, len = ta.length; i < len; i++)
assert.sameValue(ta[i], 0, "zero-bits double should convert to zero");
/******************************************************************************/
print("Tests complete");