mirror of https://github.com/tc39/test262.git
Transform legacy format to harness assertions: test/built-ins/i*/**/*.js
This commit is contained in:
parent
2944eb2eca
commit
6a00f28e50
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue