summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/ch08/8.3
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /js/src/tests/test262/ch08/8.3
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'js/src/tests/test262/ch08/8.3')
-rw-r--r--js/src/tests/test262/ch08/8.3/S8.3_A1_T1.js30
-rw-r--r--js/src/tests/test262/ch08/8.3/S8.3_A1_T2.js75
-rw-r--r--js/src/tests/test262/ch08/8.3/S8.3_A2.1.js13
-rw-r--r--js/src/tests/test262/ch08/8.3/S8.3_A2.2.js13
-rw-r--r--js/src/tests/test262/ch08/8.3/S8.3_A3.js42
-rw-r--r--js/src/tests/test262/ch08/8.3/browser.js0
-rw-r--r--js/src/tests/test262/ch08/8.3/shell.js0
7 files changed, 173 insertions, 0 deletions
diff --git a/js/src/tests/test262/ch08/8.3/S8.3_A1_T1.js b/js/src/tests/test262/ch08/8.3/S8.3_A1_T1.js
new file mode 100644
index 000000000..3c4868526
--- /dev/null
+++ b/js/src/tests/test262/ch08/8.3/S8.3_A1_T1.js
@@ -0,0 +1,30 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * The Boolean type have two values, called true and false
+ *
+ * @path ch08/8.3/S8.3_A1_T1.js
+ * @description Assign true and false to variables
+ */
+
+if (x !== undefined) {
+ $ERROR("#0 x !== undefined, but actual is "+ x);
+}
+
+////////////////////////////////////////////////////////////////////////
+// CHECK#1
+var x = true;
+var y = false;
+
+if (x !== true) {
+ $ERROR("#1.1 x !== true, but actual is "+ x);
+}
+
+if (y !== false) {
+ $ERROR("#1.1 y !== false, but actual is "+ y);
+}
+
+//
+////////////////////////////////////////////////////////////////////////
+
diff --git a/js/src/tests/test262/ch08/8.3/S8.3_A1_T2.js b/js/src/tests/test262/ch08/8.3/S8.3_A1_T2.js
new file mode 100644
index 000000000..b5740852e
--- /dev/null
+++ b/js/src/tests/test262/ch08/8.3/S8.3_A1_T2.js
@@ -0,0 +1,75 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * The Boolean type have two values, called true and false
+ *
+ * @path ch08/8.3/S8.3_A1_T2.js
+ * @description Check type of true/false and it`s equality
+ */
+
+//////////////////////////////////////////////////////////////////////
+// CHECK#1
+if (typeof(true) !== "boolean") {
+ $ERROR('#1: typeof(true) === "boolean"');
+}
+//
+//////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////
+// CHECK#2
+if (typeof(true) != "boolean") {
+ $ERROR('#2: typeof(true) == "boolean"');
+}
+//
+//////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////
+// CHECK#3
+if (typeof(false) !== "boolean") {
+ $ERROR('#3: typeof(false) === "boolean"');
+}
+//
+//////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////
+// CHECK#4
+if (typeof(false) != "boolean") {
+ $ERROR('#4: typeof(false) == "boolean"');
+}
+//
+//////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////
+// CHECK#5
+if (true === false) {
+ $ERROR('#5: true !== false');
+}
+//
+//////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////
+// CHECK#6
+if (true == false) {
+ $ERROR('#6: true != false');
+}
+//
+//////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////
+// CHECK#7
+if (false === true) {
+ $ERROR('#7: false !== true');
+}
+//
+//////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////
+// CHECK#8
+if (false == true) {
+ $ERROR('#8: false != true');
+}
+//
+//////////////////////////////////////////////////////////////////////
+
+
diff --git a/js/src/tests/test262/ch08/8.3/S8.3_A2.1.js b/js/src/tests/test262/ch08/8.3/S8.3_A2.1.js
new file mode 100644
index 000000000..e8dfba19d
--- /dev/null
+++ b/js/src/tests/test262/ch08/8.3/S8.3_A2.1.js
@@ -0,0 +1,13 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * The true is reserved word
+ *
+ * @path ch08/8.3/S8.3_A2.1.js
+ * @description Checking if execution of "true=1" fails
+ * @negative
+ */
+
+true = 1;
+
diff --git a/js/src/tests/test262/ch08/8.3/S8.3_A2.2.js b/js/src/tests/test262/ch08/8.3/S8.3_A2.2.js
new file mode 100644
index 000000000..a3ab639cb
--- /dev/null
+++ b/js/src/tests/test262/ch08/8.3/S8.3_A2.2.js
@@ -0,0 +1,13 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * The false is reserved word
+ *
+ * @path ch08/8.3/S8.3_A2.2.js
+ * @description Checking if execution of "false=0" fails
+ * @negative
+ */
+
+false = 0;
+
diff --git a/js/src/tests/test262/ch08/8.3/S8.3_A3.js b/js/src/tests/test262/ch08/8.3/S8.3_A3.js
new file mode 100644
index 000000000..a3aa585c8
--- /dev/null
+++ b/js/src/tests/test262/ch08/8.3/S8.3_A3.js
@@ -0,0 +1,42 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * Applaing negation to boolean works well
+ *
+ * @path ch08/8.3/S8.3_A3.js
+ * @description Check not false equals true, not true equals false
+ */
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#1
+if (!false !== true){
+ $ERROR('#1: !false === true');
+}
+//
+//////////////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#2
+if (!false != true){
+ $ERROR('#2: !false == true');
+}
+//
+//////////////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#3
+if (!true !== false){
+ $ERROR('#3: !true === false');
+}
+//
+//////////////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#4
+if (!true != false){
+ $ERROR('#4: !true == false');
+}
+//
+//////////////////////////////////////////////////////////////////////////////
+
diff --git a/js/src/tests/test262/ch08/8.3/browser.js b/js/src/tests/test262/ch08/8.3/browser.js
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/js/src/tests/test262/ch08/8.3/browser.js
diff --git a/js/src/tests/test262/ch08/8.3/shell.js b/js/src/tests/test262/ch08/8.3/shell.js
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/js/src/tests/test262/ch08/8.3/shell.js