mirror of https://github.com/tc39/test262.git
Merged
This commit is contained in:
commit
dfa7024e15
|
@ -1,28 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.1.1.1_A2_T1;
|
||||
* @section: 15.1.1.1, 15.5.1, 15.6.1, 15.7.1;
|
||||
* @assertion: The NaN is not ReadOnly;
|
||||
* @description: Checking Boolean, Number, String Functions;
|
||||
* @strict_mode_negative
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
NaN = 1;
|
||||
if (Boolean(NaN) !== true) {
|
||||
$ERROR('#1: NaN = 1; Boolean(NaN) === true. Actual: ' + (Boolean(NaN)));
|
||||
}
|
||||
|
||||
// CHECK#2
|
||||
NaN = true;
|
||||
if (Number(NaN) !== 1) {
|
||||
$ERROR('#2: NaN = true; Number(NaN) === 1. Actual: ' + (Number(NaN)));
|
||||
}
|
||||
|
||||
// CHECK#3
|
||||
NaN = 1;
|
||||
if (String(NaN) !== "1") {
|
||||
$ERROR('#3: NaN = 1; String(NaN) === "1". Actual: ' + (String(NaN)));
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.1.1.1_A2_T2;
|
||||
* @section: 15.1.1.1, 11.4.3;
|
||||
* @assertion: The NaN is not ReadOnly;
|
||||
* @description: Checking typeof Operator;
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
NaN = true;
|
||||
if (typeof(NaN) !== "boolean") {
|
||||
$ERROR('#1: NaN = true; typeof(NaN) === "boolean". Actual: ' + (typeof(NaN)));
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.1.1.2_A2_T1;
|
||||
* @section: 15.1.1.2, 15.5.1, 15.6.1, 15.7.1;
|
||||
* @assertion: The Infinity is not ReadOnly;
|
||||
* @description: Checking Boolean, Number, String Functions;
|
||||
* @strict_mode_negative
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
Infinity = 0;
|
||||
if (Boolean(Infinity) !== false) {
|
||||
$ERROR('#1: Infinity = 0; Boolean(Infinity) === false. Actual: ' + (Boolean(Infinity)));
|
||||
}
|
||||
|
||||
// CHECK#2
|
||||
Infinity = false;
|
||||
if (Number(Infinity) !== 0) {
|
||||
$ERROR('#2: Infinity = false; Number(Infinity) === 0. Actual: ' + (Number(Infinity)));
|
||||
}
|
||||
|
||||
// CHECK#3
|
||||
Infinity = 0;
|
||||
if (String(Infinity) !== "0") {
|
||||
$ERROR('#3: Infinity = 0; String(Infinity) === "0". Actual: ' + (String(Infinity)));
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.1.1.3_A2_T1;
|
||||
* @section: 15.1.1.3, 15.5.1, 15.6.1, 15.7.1;
|
||||
* @assertion: The undefined is not ReadOnly;
|
||||
* @description: Checking Boolean, Number, String Functions;
|
||||
* @strict_mode_negative
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
undefined = 1;
|
||||
if (Boolean(undefined) !== true) {
|
||||
$ERROR('#1: undefined = 1; Boolean(undefined) === true. Actual: ' + (Boolean(undefined)));
|
||||
}
|
||||
|
||||
// CHECK#2
|
||||
undefined = true;
|
||||
if (Number(undefined) !== 1) {
|
||||
$ERROR('#2: undefined = true; Number(undefined) === 1. Actual: ' + (Number(undefined)));
|
||||
}
|
||||
|
||||
// CHECK#3
|
||||
undefined = 1;
|
||||
if (String(undefined) !== "1") {
|
||||
$ERROR('#3: undefined = 1; String(undefined) === "1". Actual: ' + (String(undefined)));
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @name: S15.1.1.3_A2_T2;
|
||||
* @section: 15.1.1.3, 11.4.3;
|
||||
* @assertion: The undefined is not ReadOnly;
|
||||
* @description: Checking typeof Operator;
|
||||
* @strict_mode_negative
|
||||
*/
|
||||
|
||||
// CHECK#1
|
||||
undefined = true;
|
||||
if (typeof(undefined) !== "boolean") {
|
||||
ERROR('#1: undefined = true; typeof(undefined) === "boolean". Actual: ' + (typeof(undefined)));
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
* @section: 15.4.4.7;
|
||||
* @assertion: The length property of push has the attribute ReadOnly;
|
||||
* @description: Checking if varying the length property fails;
|
||||
* @strict_mode_negative
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
Loading…
Reference in New Issue