Transform legacy format to harness assertions: test/built-ins/i*/**/*.js

This commit is contained in:
rwaldron 2021-08-11 15:05:09 -04:00 committed by Leo Balter
parent 2944eb2eca
commit 6a00f28e50
4 changed files with 8 additions and 26 deletions

View File

@ -6,8 +6,4 @@ info: The isFinite property has not prototype property
esid: sec-isfinite-number
description: Checking isFinite.prototype
---*/
//CHECK#1
if (isFinite.prototype !== undefined) {
throw new Test262Error('#1: isFinite.prototype === undefined. Actual: ' + (isFinite.prototype));
}
assert.sameValue(isFinite.prototype, undefined, 'The value of isFinite.prototype is expected to equal undefined');

View File

@ -9,12 +9,7 @@ description: >
throw a TypeError exception
---*/
//CHECK#1
try {
assert.throws(TypeError, () => {
new isFinite();
} catch (e) {
if ((e instanceof TypeError) !== true) {
throw new Test262Error('#1.2: new isFinite() throw TypeError. Actual: ' + (e));
}
}
throw new Test262Error();
});

View File

@ -6,8 +6,4 @@ info: The isNaN property has not prototype property
esid: sec-isnan-number
description: Checking isNaN.prototype
---*/
//CHECK#1
if (isNaN.prototype !== undefined) {
throw new Test262Error('#1: isNaN.prototype === undefined. Actual: ' + (isNaN.prototype));
}
assert.sameValue(isNaN.prototype, undefined, 'The value of isNaN.prototype is expected to equal undefined');

View File

@ -9,12 +9,7 @@ description: >
throw a TypeError exception
---*/
//CHECK#1
try {
assert.throws(TypeError, () => {
new isNaN();
} catch (e) {
if ((e instanceof TypeError) !== true) {
throw new Test262Error('#1.2: new isNaN() throw TypeError. Actual: ' + (e));
}
}
throw new Test262Error();
});