diff options
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 |