diff options
Diffstat (limited to 'js/src/tests/test262/language/literals/boolean')
4 files changed, 30 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/literals/boolean/S7.8.2_A1_T1.js b/js/src/tests/test262/language/literals/boolean/S7.8.2_A1_T1.js new file mode 100644 index 0000000000..3884b64de3 --- /dev/null +++ b/js/src/tests/test262/language/literals/boolean/S7.8.2_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 :: BooleanLiteral" +es5id: 7.8.2_A1_T1 +description: "BooleanLiteral :: true" +---*/ + +//CHECK#1 +if (Boolean(true) !== true) { + throw new Test262Error('#1: Boolean(true) === true. Actual: Boolean(true) === ' + (Boolean(true))); +} + +reportCompare(0, 0); diff --git a/js/src/tests/test262/language/literals/boolean/S7.8.2_A1_T2.js b/js/src/tests/test262/language/literals/boolean/S7.8.2_A1_T2.js new file mode 100644 index 0000000000..b772876ff9 --- /dev/null +++ b/js/src/tests/test262/language/literals/boolean/S7.8.2_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 :: BooleanLiteral" +es5id: 7.8.2_A1_T2 +description: "BooleanLiteral :: false" +---*/ + +//CHECK#1 +if (Boolean(false) !== false) { + throw new Test262Error('#1: Boolean(false) === false. Actual: Boolean(false) === ' + (Boolean(false))); +} + +reportCompare(0, 0); diff --git a/js/src/tests/test262/language/literals/boolean/browser.js b/js/src/tests/test262/language/literals/boolean/browser.js new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/js/src/tests/test262/language/literals/boolean/browser.js diff --git a/js/src/tests/test262/language/literals/boolean/shell.js b/js/src/tests/test262/language/literals/boolean/shell.js new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/js/src/tests/test262/language/literals/boolean/shell.js |