aboutsummaryrefslogtreecommitdiffstats
path: root/website/resources/scripts/testcases2/8.2_The_Null_Type.json
diff options
context:
space:
mode:
Diffstat (limited to 'website/resources/scripts/testcases2/8.2_The_Null_Type.json')
-rw-r--r--website/resources/scripts/testcases2/8.2_The_Null_Type.json33
1 files changed, 33 insertions, 0 deletions
diff --git a/website/resources/scripts/testcases2/8.2_The_Null_Type.json b/website/resources/scripts/testcases2/8.2_The_Null_Type.json
new file mode 100644
index 000000000..54625b326
--- /dev/null
+++ b/website/resources/scripts/testcases2/8.2_The_Null_Type.json
@@ -0,0 +1,33 @@
+{
+ "testCollection": {
+ "name": "8.2_The_Null_Type",
+ "numTests": 4,
+ "tests": [
+ {
+ "section": "8.2",
+ "description": "Checking if execution of \"var x = null\" passes",
+ "test": "//////////////////////////////////////////////////////////////////////////////\n//CHECK#1\nvar x = null;\n//\n//////////////////////////////////////////////////////////////////////////////\n\n",
+ "id": "S8.2_A1_T1"
+ },
+ {
+ "section": "8.2",
+ "description": "Checking if execution of \"x = null\" passes",
+ "test": "//////////////////////////////////////////////////////////////////////////////\n//CHECK#1\nx = null;\n//\n//////////////////////////////////////////////////////////////////////////////\n\n",
+ "id": "S8.2_A1_T2"
+ },
+ {
+ "section": "8.2",
+ "description": "Checking if execution of \"var null\" fails",
+ "negative": "",
+ "test": "var null;\n\n\n",
+ "id": "S8.2_A2"
+ },
+ {
+ "section": "8.2, 11.4.3",
+ "description": "Check type of null",
+ "test": "//////////////////////////////////////////////////////////////\n// CHECK#1\nif (typeof(null) !== \"object\") {\n $ERROR('#1: typeof null === \"object\". Actual: ' + (typeof null));\n}\n//\n/////////////////////////////////////////////////////////////\n",
+ "id": "S8.2_A3"
+ }
+ ]
+ }
+}