diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /js/src/tests/test262/ch08/8.2 | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-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.2')
-rw-r--r-- | js/src/tests/test262/ch08/8.2/S8.2_A1_T1.js | 17 | ||||
-rw-r--r-- | js/src/tests/test262/ch08/8.2/S8.2_A1_T2.js | 17 | ||||
-rw-r--r-- | js/src/tests/test262/ch08/8.2/S8.2_A2.js | 15 | ||||
-rw-r--r-- | js/src/tests/test262/ch08/8.2/S8.2_A3.js | 23 | ||||
-rw-r--r-- | js/src/tests/test262/ch08/8.2/browser.js | 0 | ||||
-rw-r--r-- | js/src/tests/test262/ch08/8.2/shell.js | 0 |
6 files changed, 72 insertions, 0 deletions
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 --- /dev/null +++ b/js/src/tests/test262/ch08/8.2/browser.js 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 --- /dev/null +++ b/js/src/tests/test262/ch08/8.2/shell.js |