From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- js/src/tests/test262/ch08/8.2/S8.2_A1_T1.js | 17 +++++++++++++++++ js/src/tests/test262/ch08/8.2/S8.2_A1_T2.js | 17 +++++++++++++++++ js/src/tests/test262/ch08/8.2/S8.2_A2.js | 15 +++++++++++++++ js/src/tests/test262/ch08/8.2/S8.2_A3.js | 23 +++++++++++++++++++++++ js/src/tests/test262/ch08/8.2/browser.js | 0 js/src/tests/test262/ch08/8.2/shell.js | 0 6 files changed, 72 insertions(+) create mode 100644 js/src/tests/test262/ch08/8.2/S8.2_A1_T1.js create mode 100644 js/src/tests/test262/ch08/8.2/S8.2_A1_T2.js create mode 100644 js/src/tests/test262/ch08/8.2/S8.2_A2.js create mode 100644 js/src/tests/test262/ch08/8.2/S8.2_A3.js create mode 100644 js/src/tests/test262/ch08/8.2/browser.js create mode 100644 js/src/tests/test262/ch08/8.2/shell.js (limited to 'js/src/tests/test262/ch08/8.2') diff --git a/js/src/tests/test262/ch08/8.2/S8.2_A1_T1.js b/js/src/tests/test262/ch08/8.2/S8.2_A1_T1.js new file mode 100644 index 000000000..bf67b16cc --- /dev/null +++ b/js/src/tests/test262/ch08/8.2/S8.2_A1_T1.js @@ -0,0 +1,17 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * The Null Type has one value, called null + * + * @path ch08/8.2/S8.2_A1_T1.js + * @description Checking if execution of "var x = null" passes + */ + +////////////////////////////////////////////////////////////////////////////// +//CHECK#1 +var x = null; +// +////////////////////////////////////////////////////////////////////////////// + + diff --git a/js/src/tests/test262/ch08/8.2/S8.2_A1_T2.js b/js/src/tests/test262/ch08/8.2/S8.2_A1_T2.js new file mode 100644 index 000000000..e0bcda72a --- /dev/null +++ b/js/src/tests/test262/ch08/8.2/S8.2_A1_T2.js @@ -0,0 +1,17 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * The Null Type has one value, called null + * + * @path ch08/8.2/S8.2_A1_T2.js + * @description Checking if execution of "x = null" passes + */ + +////////////////////////////////////////////////////////////////////////////// +//CHECK#1 +var x = null; +// +////////////////////////////////////////////////////////////////////////////// + + diff --git a/js/src/tests/test262/ch08/8.2/S8.2_A2.js b/js/src/tests/test262/ch08/8.2/S8.2_A2.js new file mode 100644 index 000000000..8cecf3cf8 --- /dev/null +++ b/js/src/tests/test262/ch08/8.2/S8.2_A2.js @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * The null is resrved word + * + * @path ch08/8.2/S8.2_A2.js + * @description Checking if execution of "var null" fails + * @negative + */ + +var null; + + + diff --git a/js/src/tests/test262/ch08/8.2/S8.2_A3.js b/js/src/tests/test262/ch08/8.2/S8.2_A3.js new file mode 100644 index 000000000..2d5d49bdf --- /dev/null +++ b/js/src/tests/test262/ch08/8.2/S8.2_A3.js @@ -0,0 +1,23 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * 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 + * + * @path ch08/8.2/S8.2_A3.js + * @description Check type of null + */ + +////////////////////////////////////////////////////////////// +// CHECK#1 +if (typeof(null) !== "object") { + $ERROR('#1: typeof null === "object". Actual: ' + (typeof null)); +} +// +///////////////////////////////////////////////////////////// + diff --git a/js/src/tests/test262/ch08/8.2/browser.js b/js/src/tests/test262/ch08/8.2/browser.js new file mode 100644 index 000000000..e69de29bb diff --git a/js/src/tests/test262/ch08/8.2/shell.js b/js/src/tests/test262/ch08/8.2/shell.js new file mode 100644 index 000000000..e69de29bb -- cgit v1.2.3