summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY')
-rw-r--r--js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A1.js11
-rw-r--r--js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js21
-rw-r--r--js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/browser.js0
-rw-r--r--js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/prop-desc.js20
-rw-r--r--js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/shell.js0
-rw-r--r--js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/value.js16
6 files changed, 68 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A1.js b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A1.js
new file mode 100644
index 0000000000..aa19a869b1
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A1.js
@@ -0,0 +1,11 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: Number.NEGATIVE_INFINITY is -Infinity
+es5id: 15.7.3.5_A1
+description: Checking sign and finiteness of Number.NEGATIVE_INFINITY
+---*/
+assert.sameValue(isFinite(Number.NEGATIVE_INFINITY), false, 'isFinite(Number.NEGATIVE_INFINITY) must return false');
+
+reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js
new file mode 100644
index 0000000000..483c818acc
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js
@@ -0,0 +1,21 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: Number.NEGATIVE_INFINITY is ReadOnly
+es5id: 15.7.3.5_A2
+description: Checking if varying Number.NEGATIVE_INFINITY fails
+includes: [propertyHelper.js]
+---*/
+
+// CHECK#1
+verifyNotWritable(Number, "NEGATIVE_INFINITY", null, 1);
+
+assert(
+ !isFinite(Number.NEGATIVE_INFINITY),
+ 'The value of !isFinite(Number.NEGATIVE_INFINITY) is expected to be true'
+);
+
+// TODO: Convert to verifyProperty() format.
+
+reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/browser.js b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/browser.js
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/browser.js
diff --git a/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/prop-desc.js b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/prop-desc.js
new file mode 100644
index 0000000000..43487219d4
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/prop-desc.js
@@ -0,0 +1,20 @@
+// Copyright (C) 2016 The V8 Project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-number.negative_infinity
+description: >
+ "NEGATIVE_INFINITY" property of Number
+info: |
+ Number.NEGATIVE_INFINITY
+
+ This property has the attributes { [[Writable]]: false, [[Enumerable]]: false,
+ [[Configurable]]: false }.
+includes: [propertyHelper.js]
+---*/
+
+verifyNotEnumerable(Number, "NEGATIVE_INFINITY");
+verifyNotWritable(Number, "NEGATIVE_INFINITY");
+verifyNotConfigurable(Number, "NEGATIVE_INFINITY");
+
+reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/shell.js b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/shell.js
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/shell.js
diff --git a/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/value.js b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/value.js
new file mode 100644
index 0000000000..6a874bdce0
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Number/NEGATIVE_INFINITY/value.js
@@ -0,0 +1,16 @@
+// Copyright (C) 2016 The V8 Project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-number.negative_infinity
+description: >
+ The value of Number.NEGATIVE_INFINITY is -Infinity
+info: |
+ Number.NEGATIVE_INFINITY
+
+ The value of Number.NEGATIVE_INFINITY is -∞.
+---*/
+
+assert.sameValue(Number.NEGATIVE_INFINITY, -Infinity);
+
+reportCompare(0, 0);