diff options
Diffstat (limited to 'js/src/tests/test262/language/literals/null')
4 files changed, 30 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/literals/null/S7.8.1_A1_T1.js b/js/src/tests/test262/language/literals/null/S7.8.1_A1_T1.js new file mode 100644 index 0000000000..cafe52788e --- /dev/null +++ b/js/src/tests/test262/language/literals/null/S7.8.1_A1_T1.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. + +/*--- +info: "Literal :: NullLiteral" +es5id: 7.8.1_A1_T1 +description: Check null === null +---*/ + +//CHECK#1 +if (null !== null) { + throw new Test262Error('#1: null === null'); +} + +reportCompare(0, 0); diff --git a/js/src/tests/test262/language/literals/null/S7.8.1_A1_T2.js b/js/src/tests/test262/language/literals/null/S7.8.1_A1_T2.js new file mode 100644 index 0000000000..50216edf77 --- /dev/null +++ b/js/src/tests/test262/language/literals/null/S7.8.1_A1_T2.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. + +/*--- +info: "Literal :: NullLiteral" +es5id: 7.8.1_A1_T2 +description: Check RegExp("0").exec("1") === null +---*/ + +//CHECK#1 +if (RegExp("0").exec("1") !== null) { + throw new Test262Error('#1: RegExp("0").exec("1") === null'); +} + +reportCompare(0, 0); diff --git a/js/src/tests/test262/language/literals/null/browser.js b/js/src/tests/test262/language/literals/null/browser.js new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/js/src/tests/test262/language/literals/null/browser.js diff --git a/js/src/tests/test262/language/literals/null/shell.js b/js/src/tests/test262/language/literals/null/shell.js new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/js/src/tests/test262/language/literals/null/shell.js |