aboutsummaryrefslogtreecommitdiffstats
path: root/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type')
-rw-r--r--external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A1_T1.js16
-rw-r--r--external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A1_T2.js16
-rw-r--r--external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A2.js14
-rw-r--r--external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A3.js22
4 files changed, 68 insertions, 0 deletions
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A1_T1.js
new file mode 100644
index 000000000..29dd3c6fd
--- /dev/null
+++ b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A1_T1.js
@@ -0,0 +1,16 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S8.2_A1_T1;
+ * @section: 8.2;
+ * @assertion: The Null Type has one value, called null;
+ * @description: Checking if execution of "var x = null" passes;
+*/
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#1
+var x = null;
+//
+//////////////////////////////////////////////////////////////////////////////
+
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A1_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A1_T2.js
new file mode 100644
index 000000000..daa363f0f
--- /dev/null
+++ b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A1_T2.js
@@ -0,0 +1,16 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S8.2_A1_T2;
+ * @section: 8.2;
+ * @assertion: The Null Type has one value, called null;
+ * @description: Checking if execution of "x = null" passes;
+*/
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#1
+x = null;
+//
+//////////////////////////////////////////////////////////////////////////////
+
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A2.js b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A2.js
new file mode 100644
index 000000000..0a6020d29
--- /dev/null
+++ b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A2.js
@@ -0,0 +1,14 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S8.2_A2;
+ * @section: 8.2;
+ * @assertion: The null is resrved word;
+ * @description: Checking if execution of "var null" fails;
+ * @negative;
+*/
+
+var null;
+
+
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A3.js b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A3.js
new file mode 100644
index 000000000..84edee3ca
--- /dev/null
+++ b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.2_The_Null_Type/S8.2_A3.js
@@ -0,0 +1,22 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S8.2_A3;
+ * @section: 8.2, 11.4.3;
+ * @assertion: For the keyword null the typeof operator returns the "object"
+ * See also
+ * http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Operators:Special_Operators:typeof_Operator
+ * and
+ * http://bugs.ecmascript.org/ticket/250
+ * for example;
+ * @description: Check type of null;
+*/
+
+//////////////////////////////////////////////////////////////
+// CHECK#1
+if (typeof(null) !== "object") {
+ $ERROR('#1: typeof null === "object". Actual: ' + (typeof null));
+}
+//
+/////////////////////////////////////////////////////////////