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/ch07/7.8 | |
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/ch07/7.8')
226 files changed, 7423 insertions, 0 deletions
diff --git a/js/src/tests/test262/ch07/7.8/7.8.1/S7.8.1_A1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.1/S7.8.1_A1_T1.js new file mode 100644 index 000000000..e7b188b6c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.1/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. + +/** + * Literal :: NullLiteral + * + * @path ch07/7.8/7.8.1/S7.8.1_A1_T1.js + * @description Check null === null + */ + +//CHECK#1 +if (null !== null) { + $ERROR('#1: null === null'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.1/S7.8.1_A1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.1/S7.8.1_A1_T2.js new file mode 100644 index 000000000..340f8bed4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.1/S7.8.1_A1_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Literal :: NullLiteral + * + * @path ch07/7.8/7.8.1/S7.8.1_A1_T2.js + * @description Check RegExp("0").exec("1") === null + */ + +//CHECK#1 +if (RegExp("0").exec("1") !== null) { + $ERROR('#1: RegExp("0").exec("1") === null'); +} + + diff --git a/js/src/tests/test262/ch07/7.8/7.8.1/browser.js b/js/src/tests/test262/ch07/7.8/7.8.1/browser.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.1/browser.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.1/shell.js b/js/src/tests/test262/ch07/7.8/7.8.1/shell.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.1/shell.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.2/S7.8.2_A1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.2/S7.8.2_A1_T1.js new file mode 100644 index 000000000..f2925a291 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.2/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. + +/** + * Literal :: BooleanLiteral + * + * @path ch07/7.8/7.8.2/S7.8.2_A1_T1.js + * @description BooleanLiteral :: true + */ + +//CHECK#1 +if (Boolean(true) !== true) { + $ERROR('#1: Boolean(true) === true. Actual: Boolean(true) === ' + (Boolean(true))); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.2/S7.8.2_A1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.2/S7.8.2_A1_T2.js new file mode 100644 index 000000000..5adaf379d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.2/S7.8.2_A1_T2.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Literal :: BooleanLiteral + * + * @path ch07/7.8/7.8.2/S7.8.2_A1_T2.js + * @description BooleanLiteral :: false + */ + +//CHECK#1 +if (Boolean(false) !== false) { + $ERROR('#1: Boolean(false) === false. Actual: Boolean(false) === ' + (Boolean(false))); +} + + diff --git a/js/src/tests/test262/ch07/7.8/7.8.2/browser.js b/js/src/tests/test262/ch07/7.8/7.8.2/browser.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.2/browser.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.2/shell.js b/js/src/tests/test262/ch07/7.8/7.8.2/shell.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.2/shell.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1-s.js new file mode 100644 index 000000000..fa67b5095 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-1-s.js
+ * @description Strict Mode - octal extension (010) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_1 = 010;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_1 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1gs.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1gs.js new file mode 100644 index 000000000..91b6ceae2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-1gs.js @@ -0,0 +1,16 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-1gs.js
+ * @description Strict Mode - octal extension(010) is forbidden in strict mode
+ * @onlyStrict
+ * @negative ^((?!NotEarlyError).)*$
+ */
+
+"use strict";
+throw NotEarlyError;
+var y = 010;
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2-s.js new file mode 100644 index 000000000..79755f8df --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-2-s.js
+ * @description Strict Mode - octal extension (00) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_2 = 00;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_2 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2gs.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2gs.js new file mode 100644 index 000000000..dae203a53 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-2gs.js @@ -0,0 +1,17 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-2gs.js
+ * @description Strict Mode - octal extension is forbidden in strict mode (after a hex number is assigned to a variable)
+ * @onlyStrict
+ * @negative ^((?!NotEarlyError).)*$
+ */
+
+"use strict";
+throw NotEarlyError;
+var a;
+a = 0x1;
+a = 01;
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3-s.js new file mode 100644 index 000000000..7d33f9a5c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-3-s.js
+ * @description Strict Mode - octal extension (01) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_3 = 01;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_3 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3gs.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3gs.js new file mode 100644 index 000000000..48d56d63e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-3gs.js @@ -0,0 +1,15 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-3gs.js
+ * @description Strict Mode - octal extension is forbidden in strict mode (after a hex number is assigned to a variable from an eval)
+ * @onlyStrict
+ * @negative SyntaxError
+ */
+
+"use strict";
+var a;
+eval("a = 0x1;a = 01;");
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-4-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-4-s.js new file mode 100644 index 000000000..53a486b05 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-4-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-4-s.js
+ * @description Strict Mode - octal extension (06) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_4 = 06;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_4 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-5-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-5-s.js new file mode 100644 index 000000000..98ac43f58 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-5-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-5-s.js
+ * @description Strict Mode - octal extension (07) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_5 = 07;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_5 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-6-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-6-s.js new file mode 100644 index 000000000..fe2f60c64 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-6-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-6-s.js
+ * @description Strict Mode - octal extension (000) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_6 = 000;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_6 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-7-s.js b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-7-s.js new file mode 100644 index 000000000..d0ffda882 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/7.8.3-7-s.js @@ -0,0 +1,22 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.3/7.8.3-7-s.js
+ * @description Strict Mode - octal extension (005) is forbidden in strict mode
+ * @onlyStrict
+ */
+
+
+function testcase() {
+ "use strict";
+ try {
+ eval("var _7_8_3_7 = 005;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && typeof _7_8_3_7 === "undefined";
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T1.js new file mode 100644 index 000000000..ff82f498e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.1_T1.js + * @description DecimalIntegerLiteral :: 0, NoNZeroDigit + */ + +//CHECK#0 +if (0 !== 0) { + $ERROR('#0: 0 === 0'); +} + +//CHECK#1 +if (1 !== 1) { + $ERROR('#1: 1 === 1'); +} + +//CHECK#2 +if (2 !== 2) { + $ERROR('#2: 2 === 2'); +} + +//CHECK#3 +if (3 !== 3) { + $ERROR('#3: 3 === 3'); +} + +//CHECK#4 +if (4 !== 4) { + $ERROR('#4: 4 === 4'); +} + +//CHECK#5 +if (5 !== 5) { + $ERROR('#5: 5 === 5'); +} + +//CHECK#6 +if (6 !== 6) { + $ERROR('#6: 6 === 6'); +} + +//CHECK#7 +if (7 !== 7) { + $ERROR('#7: 7 === 7'); +} + +//CHECK#8 +if (8 !== 8) { + $ERROR('#8: 8 === 8'); +} + +//CHECK#9 +if (9 !== 9) { + $ERROR('#9: 9 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T2.js new file mode 100644 index 000000000..df2206462 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.1_T2.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.1_T2.js + * @description DecimalIntegerLiteral :: NoNZeroDigit DecimalDigits + */ + +//CHECK#1 +if (11 !== 11) { + $ERROR('#1: 11 === 11'); +} + +//CHECK#2 +if (22 !== 22) { + $ERROR('#2: 22 === 22'); +} + +//CHECK#3 +if (33 !== 33) { + $ERROR('#3: 33 === 33'); +} + +//CHECK#4 +if (44 !== 44) { + $ERROR('#4: 44 === 44'); +} + +//CHECK#5 +if (55 !== 55) { + $ERROR('#5: 55 === 55'); +} + +//CHECK#6 +if (66 !== 66) { + $ERROR('#6: 66 === 66'); +} + +//CHECK#7 +if (77 !== 77) { + $ERROR('#7: 77 === 77'); +} + +//CHECK#8 +if (88 !== 88) { + $ERROR('#8: 88 === 88'); +} + +//CHECK#9 +if (99 !== 99) { + $ERROR('#9: 99 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T1.js new file mode 100644 index 000000000..50a042d2c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T1.js + * @description ExponentPart :: e DecimalDigits + */ + +//CHECK#0 +if (0e1 !== 0) { + $ERROR('#0: 0e1 === 0'); +} + +//CHECK#1 +if (1e1 !== 10) { + $ERROR('#1: 1e1 === 10'); +} + +//CHECK#2 +if (2e1 !== 20) { + $ERROR('#2: 2e1 === 20'); +} + +//CHECK#3 +if (3e1 !== 30) { + $ERROR('#3: 3e1 === 30'); +} + +//CHECK#4 +if (4e1 !== 40) { + $ERROR('#4: 4e1 === 40'); +} + +//CHECK#5 +if (5e1 !== 50) { + $ERROR('#5: 5e1 === 50'); +} + +//CHECK#6 +if (6e1 !== 60) { + $ERROR('#6: 6e1 === 60'); +} + +//CHECK#7 +if (7e1 !== 70) { + $ERROR('#7: 7e1 === 70'); +} + +//CHECK#8 +if (8e1 !== 80) { + $ERROR('#8: 8e1 === 80'); +} + +//CHECK#9 +if (9e1 !== 90) { + $ERROR('#9: 9e1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T2.js new file mode 100644 index 000000000..f2398a460 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T2.js + * @description ExponentPart :: E DecimalDigits + */ + +//CHECK#0 +if (0E1 !== 0) { + $ERROR('#0: 0E1 === 0'); +} + +//CHECK#1 +if (1E1 !== 10) { + $ERROR('#1: 1E1 === 1'); +} + +//CHECK#2 +if (2E1 !== 20) { + $ERROR('#2: 2E1 === 20'); +} + +//CHECK#3 +if (3E1 !== 30) { + $ERROR('#3: 3E1 === 30'); +} + +//CHECK#4 +if (4E1 !== 40) { + $ERROR('#4: 4E1 === 40'); +} + +//CHECK#5 +if (5E1 !== 50) { + $ERROR('#5: 5E1 === 50'); +} + +//CHECK#6 +if (6E1 !== 60) { + $ERROR('#6: 6E1 === 60'); +} + +//CHECK#7 +if (7E1 !== 70) { + $ERROR('#7: 7E1 === 70'); +} + +//CHECK#8 +if (8E1 !== 80) { + $ERROR('#8: 8E1 === 80'); +} + +//CHECK#9 +if (9E1 !== 90) { + $ERROR('#9: 9E1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T3.js new file mode 100644 index 000000000..352745f8a --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T3.js + * @description ExponentPart :: e -DecimalDigits + */ + +//CHECK#0 +if (0e-1 !== 0) { + $ERROR('#0: 0e-1 === 0'); +} + +//CHECK#1 +if (1e-1 !== 0.1) { + $ERROR('#1: 1e-1 === 0.1'); +} + +//CHECK#2 +if (2e-1 !== 0.2) { + $ERROR('#2: 2e-1 === 0.2'); +} + +//CHECK#3 +if (3e-1 !== 0.3) { + $ERROR('#3: 3e-1 === 0.3'); +} + +//CHECK#4 +if (4e-1 !== 0.4) { + $ERROR('#4: 4e-1 === 0.4'); +} + +//CHECK#5 +if (5e-1 !== 0.5) { + $ERROR('#5: 5e-1 === 0.5'); +} + +//CHECK#6 +if (6e-1 !== 0.6) { + $ERROR('#6: 6e-1 === 0.6'); +} + +//CHECK#7 +if (7e-1 !== 0.7) { + $ERROR('#7: 7e-1 === 0.7'); +} + +//CHECK#8 +if (8e-1 !== 0.8) { + $ERROR('#8: 8e-1 === 0.8'); +} + +//CHECK#9 +if (9e-1 !== 0.9) { + $ERROR('#9: 9e-1 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T4.js new file mode 100644 index 000000000..b0f95210f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T4.js + * @description ExponentPart :: E -DecimalDigits + */ + +//CHECK#0 +if (0E-1 !== 0) { + $ERROR('#0: 0E-1 === 0'); +} + +//CHECK#1 +if (1E-1 !== 0.1) { + $ERROR('#1: 1E-1 === 0.1'); +} + +//CHECK#2 +if (2E-1 !== 0.2) { + $ERROR('#2: 2E-1 === 0.2'); +} + +//CHECK#3 +if (3E-1 !== 0.3) { + $ERROR('#3: 3E-1 === 0.3'); +} + +//CHECK#4 +if (4E-1 !== 0.4) { + $ERROR('#4: 4E-1 === 0.4'); +} + +//CHECK#5 +if (5E-1 !== 0.5) { + $ERROR('#5: 5E-1 === 0.5'); +} + +//CHECK#6 +if (6E-1 !== 0.6) { + $ERROR('#6: 6E-1 === 0.6'); +} + +//CHECK#7 +if (7E-1 !== 0.7) { + $ERROR('#7: 7E-1 === 0.7'); +} + +//CHECK#8 +if (8E-1 !== 0.8) { + $ERROR('#8: 8E-1 === 0.8'); +} + +//CHECK#9 +if (9E-1 !== 0.9) { + $ERROR('#9: 9E-1 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T5.js new file mode 100644 index 000000000..87c79f63d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T5.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (0e+1 !== 0) { + $ERROR('#0: 0e+1 === 0'); +} + +//CHe+CK#1 +if (1e+1 !== 10) { + $ERROR('#1: 1e+1 === 10'); +} + +//CHe+CK#2 +if (2e+1 !== 20) { + $ERROR('#2: 2e+1 === 20'); +} + +//CHe+CK#3 +if (3e+1 !== 30) { + $ERROR('#3: 3e+1 === 30'); +} + +//CHe+CK#4 +if (4e+1 !== 40) { + $ERROR('#4: 4e+1 === 40'); +} + +//CHe+CK#5 +if (5e+1 !== 50) { + $ERROR('#5: 5e+1 === 50'); +} + +//CHe+CK#6 +if (6e+1 !== 60) { + $ERROR('#6: 6e+1 === 60'); +} + +//CHe+CK#7 +if (7e+1 !== 70) { + $ERROR('#7: 7e+1 === 70'); +} + +//CHe+CK#8 +if (8e+1 !== 80) { + $ERROR('#8: 8e+1 === 80'); +} + +//CHe+CK#9 +if (9e+1 !== 90) { + $ERROR('#9: 9e+1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T6.js new file mode 100644 index 000000000..bdfc65d33 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T6.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (0E+1 !== 0) { + $ERROR('#0: 0E+1 === 0'); +} + +//CHE+CK#1 +if (1E+1 !== 10) { + $ERROR('#1: 1E+1 === 10'); +} + +//CHE+CK#2 +if (2E+1 !== 20) { + $ERROR('#2: 2E+1 === 20'); +} + +//CHE+CK#3 +if (3E+1 !== 30) { + $ERROR('#3: 3E+1 === 30'); +} + +//CHE+CK#4 +if (4E+1 !== 40) { + $ERROR('#4: 4E+1 === 40'); +} + +//CHE+CK#5 +if (5E+1 !== 50) { + $ERROR('#5: 5E+1 === 50'); +} + +//CHE+CK#6 +if (6E+1 !== 60) { + $ERROR('#6: 6E+1 === 60'); +} + +//CHE+CK#7 +if (7E+1 !== 70) { + $ERROR('#7: 7E+1 === 70'); +} + +//CHE+CK#8 +if (8E+1 !== 80) { + $ERROR('#8: 8E+1 === 80'); +} + +//CHE+CK#9 +if (9E+1 !== 90) { + $ERROR('#9: 9E+1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T7.js new file mode 100644 index 000000000..d636e7e6b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T7.js + * @description ExponentPart :: e 0 + */ + +//CHECK#0 +if (0e0 !== 0) { + $ERROR('#0: 0e0 === 0'); +} + +//CHECK#1 +if (1e0 !== 1) { + $ERROR('#1: 1e0 === 1'); +} + +//CHECK#2 +if (2e0 !== 2) { + $ERROR('#2: 2e0 === 2'); +} + +//CHECK#3 +if (3e0 !== 3) { + $ERROR('#3: 3e0 === 3'); +} + +//CHECK#4 +if (4e0 !== 4) { + $ERROR('#4: 4e0 === 4'); +} + +//CHECK#5 +if (5e0 !== 5) { + $ERROR('#5: 5e0 === 5'); +} + +//CHECK#6 +if (6e0 !== 6) { + $ERROR('#6: 6e0 === 6'); +} + +//CHECK#7 +if (7e0 !== 7) { + $ERROR('#7: 7e0 === 7'); +} + +//CHECK#8 +if (8e0 !== 8) { + $ERROR('#8: 8e0 === 8'); +} + +//CHECK#9 +if (9e0 !== 9) { + $ERROR('#9: 9e0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T8.js new file mode 100644 index 000000000..c45e4353d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A1.2_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A1.2_T8.js + * @description ExponentPart :: E 0 + */ + +//CHECK#0 +if (0E0 !== 0) { + $ERROR('#0: 0E0 === 0'); +} + +//CHECK#1 +if (1E0 !== 1) { + $ERROR('#1: 1E0 === 1'); +} + +//CHECK#2 +if (2E0 !== 2) { + $ERROR('#2: 2E0 === 2'); +} + +//CHECK#3 +if (3E0 !== 3) { + $ERROR('#3: 3E0 === 3'); +} + +//CHECK#4 +if (4E0 !== 4) { + $ERROR('#4: 4E0 === 4'); +} + +//CHECK#5 +if (5E0 !== 5) { + $ERROR('#5: 5E0 === 5'); +} + +//CHECK#6 +if (6E0 !== 6) { + $ERROR('#6: 6E0 === 6'); +} + +//CHECK#7 +if (7E0 !== 7) { + $ERROR('#7: 7E0 === 7'); +} + +//CHECK#8 +if (8E0 !== 8) { + $ERROR('#8: 8E0 === 8'); +} + +//CHECK#9 +if (9E0 !== 9) { + $ERROR('#9: 9E0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T1.js new file mode 100644 index 000000000..571cfe65e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.1_T1.js + * @description Use .DecimalDigit + */ + +//CHECK#0 +if (.0 !== 0.0) { + $ERROR('#0: .0 === 0.0'); +} + +//CHECK#1 +if (.1 !== 0.1) { + $ERROR('#1: .1 === 0.1'); +} + +//CHECK#2 +if (.2 !== 0.2) { + $ERROR('#2: .2 === 0.2'); +} + +//CHECK#3 +if (.3 !== 0.3) { + $ERROR('#3: .3 === 0.3'); +} + +//CHECK#4 +if (.4 !== 0.4) { + $ERROR('#4: .4 === 0.4'); +} + +//CHECK#5 +if (.5 !== 0.5) { + $ERROR('#5: .5 === 0.5'); +} + +//CHECK#6 +if (.6 !== 0.6) { + $ERROR('#6: .6 === 0.6'); +} + +//CHECK#7 +if (.7 !== 0.7) { + $ERROR('#7: .7 === 0.7'); +} + +//CHECK#8 +if (.8 !== 0.8) { + $ERROR('#8: .8 === 0.8'); +} + +//CHECK#9 +if (.9 !== 0.9) { + $ERROR('#9: .9 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T2.js new file mode 100644 index 000000000..88ed6fc02 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.1_T2.js + * @description Use .DecimalDigits + */ + +//CHECK#0 +if (.00 !== 0.00) { + $ERROR('#0: .00 === 0.00'); +} + +//CHECK#1 +if (.11 !== 0.11) { + $ERROR('#1: .11 === 0.11'); +} + +//CHECK#2 +if (.22 !== 0.22) { + $ERROR('#2: .22 === 0.22'); +} + +//CHECK#3 +if (.33 !== 0.33) { + $ERROR('#3: .33 === 0.33'); +} + +//CHECK#4 +if (.44 !== 0.44) { + $ERROR('#4: .44 === 0.44'); +} + +//CHECK#5 +if (.55 !== 0.55) { + $ERROR('#5: .55 === 0.55'); +} + +//CHECK#6 +if (.66 !== 0.66) { + $ERROR('#6: .66 === 0.66'); +} + +//CHECK#7 +if (.77 !== 0.77) { + $ERROR('#7: .77 === 0.77'); +} + +//CHECK#8 +if (.88 !== 0.88) { + $ERROR('#8: .88 === 0.88'); +} + +//CHECK#9 +if (.99 !== 0.99) { + $ERROR('#9: .99 === 0.99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T3.js new file mode 100644 index 000000000..2b5d47bd1 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.1_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.1_T3.js + * @description Use .DecimalDigits that have at the end zeros + */ + +//CHECK#0 +if (.00 !== 0.0) { + $ERROR('#0: .0 === 0.0'); +} + +//CHECK#1 +if (.10 !== 0.1) { + $ERROR('#1: .1 === 0.1'); +} + +//CHECK#2 +if (.20 !== 0.2) { + $ERROR('#2: .2 === 0.2'); +} + +//CHECK#3 +if (.30 !== 0.3) { + $ERROR('#3: .3 === 0.3'); +} + +//CHECK#4 +if (.40 !== 0.4) { + $ERROR('#4: .4 === 0.4'); +} + +//CHECK#5 +if (.50 !== 0.5) { + $ERROR('#5: .5 === 0.5'); +} + +//CHECK#6 +if (.60 !== 0.6) { + $ERROR('#6: .6 === 0.6'); +} + +//CHECK#7 +if (.70 !== 0.7) { + $ERROR('#7: .7 === 0.7'); +} + +//CHECK#8 +if (.80 !== 0.8) { + $ERROR('#8: .8 === 0.8'); +} + +//CHECK#9 +if (.90 !== 0.9) { + $ERROR('#9: .9 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T1.js new file mode 100644 index 000000000..bd80eb9d7 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T1.js + * @description ExponentPart :: e DecimalDigits + */ + +//CHECK#0 +if (.0e1 !== 0) { + $ERROR('#0: .0e1 === 0'); +} + +//CHECK#1 +if (.1e1 !== 1) { + $ERROR('#1: .1e1 === 1'); +} + +//CHECK#2 +if (.2e1 !== 2) { + $ERROR('#2: .2e1 === 2'); +} + +//CHECK#3 +if (.3e1 !== 3) { + $ERROR('#3: .3e1 === 3'); +} + +//CHECK#4 +if (.4e1 !== 4) { + $ERROR('#4: .4e1 === 4'); +} + +//CHECK#5 +if (.5e1 !== 5) { + $ERROR('#5: .5e1 === 5'); +} + +//CHECK#6 +if (.6e1 !== 6) { + $ERROR('#6: .6e1 === 6'); +} + +//CHECK#7 +if (.7e1 !== 7) { + $ERROR('#7: .7e1 === 7'); +} + +//CHECK#8 +if (.8e1 !== 8) { + $ERROR('#8: .8e1 === 8'); +} + +//CHECK#9 +if (.9e1 !== 9) { + $ERROR('#9: .9e1 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T2.js new file mode 100644 index 000000000..0e6db7925 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T2.js + * @description ExponentPart :: E DecimalDigits + */ + +//CHECK#0 +if (.0E1 !== 0) { + $ERROR('#0: .0E1 === 0'); +} + +//CHECK#1 +if (.1E1 !== 1) { + $ERROR('#1: .1E1 === 1'); +} + +//CHECK#2 +if (.2E1 !== 2) { + $ERROR('#2: .2E1 === 2'); +} + +//CHECK#3 +if (.3E1 !== 3) { + $ERROR('#3: .3E1 === 3'); +} + +//CHECK#4 +if (.4E1 !== 4) { + $ERROR('#4: .4E1 === 4'); +} + +//CHECK#5 +if (.5E1 !== 5) { + $ERROR('#5: .5E1 === 5'); +} + +//CHECK#6 +if (.6E1 !== 6) { + $ERROR('#6: .6E1 === 6'); +} + +//CHECK#7 +if (.7E1 !== 7) { + $ERROR('#7: .7E1 === 7'); +} + +//CHECK#8 +if (.8E1 !== 8) { + $ERROR('#8: .8E1 === 8'); +} + +//CHECK#9 +if (.9E1 !== 9) { + $ERROR('#9: .9E1 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T3.js new file mode 100644 index 000000000..513868760 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T3.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (.0e-1 !== 0) { + $ERROR('#0: .0e-1 === 0'); +} + +//CHECK#1 +if (.1e-1 !== 0.01) { + $ERROR('#1: .1e-1 === 0.01'); +} + +//CHECK#2 +if (.2e-1 !== 0.02) { + $ERROR('#2: .2e-1 === 0.02'); +} + +//CHECK#3 +if (.3e-1 !== 0.03) { + $ERROR('#3: .3e-1 === 0.03'); +} + +//CHECK#4 +if (.4e-1 !== 0.04) { + $ERROR('#4: .4e-1 === 0.04'); +} + +//CHECK#5 +if (.5e-1 !== 0.05) { + $ERROR('#5: .5e-1 === 0.05'); +} + +//CHECK#6 +if (.6e-1 !== 0.06) { + $ERROR('#6: .6e-1 === 0.06'); +} + +//CHECK#7 +if (.7e-1 !== 0.07) { + $ERROR('#7: .7e-1 === 0.07'); +} + +//CHECK#8 +if (.8e-1 !== 0.08) { + $ERROR('#8: .8e-1 === 0.08'); +} + +//CHECK#9 +if (.9e-1 !== 0.09) { + $ERROR('#9: .9e-1 === 0.09'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T4.js new file mode 100644 index 000000000..88ddf9858 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T4.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (.0E-1 !== 0) { + $ERROR('#0: .0E-1 === 0'); +} + +//CHECK#1 +if (.1E-1 !== 0.01) { + $ERROR('#1: .1E-1 === 0.01'); +} + +//CHECK#2 +if (.2E-1 !== 0.02) { + $ERROR('#2: .2E-1 === 0.02'); +} + +//CHECK#3 +if (.3E-1 !== 0.03) { + $ERROR('#3: .3E-1 === 0.03'); +} + +//CHECK#4 +if (.4E-1 !== 0.04) { + $ERROR('#4: .4E-1 === 0.04'); +} + +//CHECK#5 +if (.5E-1 !== 0.05) { + $ERROR('#5: .5E-1 === 0.05'); +} + +//CHECK#6 +if (.6E-1 !== 0.06) { + $ERROR('#6: .6E-1 === 0.06'); +} + +//CHECK#7 +if (.7E-1 !== 0.07) { + $ERROR('#7: .7E-1 === 0.07'); +} + +//CHECK#8 +if (.8E-1 !== 0.08) { + $ERROR('#8: .8E-1 === 0.08'); +} + +//CHECK#9 +if (.9E-1 !== 0.09) { + $ERROR('#9: .9E-1 === 0.09'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T5.js new file mode 100644 index 000000000..881511a10 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T5.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (.0e+1 !== 0) { + $ERROR('#0: .0e+1 === 0'); +} + +//CHECK#1 +if (.1e+1 !== 1) { + $ERROR('#1: .1e+1 === 1'); +} + +//CHECK#2 +if (.2e+1 !== 2) { + $ERROR('#2: .2e+1 === 2'); +} + +//CHECK#3 +if (.3e+1 !== 3) { + $ERROR('#3: .3e+1 === 3'); +} + +//CHECK#4 +if (.4e+1 !== 4) { + $ERROR('#4: .4e+1 === 4'); +} + +//CHECK#5 +if (.5e+1 !== 5) { + $ERROR('#5: .5e+1 === 5'); +} + +//CHECK#6 +if (.6e+1 !== 6) { + $ERROR('#6: .6e+1 === 6'); +} + +//CHECK#7 +if (.7e+1 !== 7) { + $ERROR('#7: .7e+1 === 7'); +} + +//CHECK#8 +if (.8e+1 !== 8) { + $ERROR('#8: .8e+1 === 8'); +} + +//CHECK#9 +if (.9e+1 !== 9) { + $ERROR('#9: .9e+1 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T6.js new file mode 100644 index 000000000..8b206eee7 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T6.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (.0E+1 !== 0) { + $ERROR('#0: .0E+1 === 0'); +} + +//CHECK#1 +if (.1E+1 !== 1) { + $ERROR('#1: .1E+1 === 1'); +} + +//CHECK#2 +if (.2E+1 !== 2) { + $ERROR('#2: .2E+1 === 2'); +} + +//CHECK#3 +if (.3E+1 !== 3) { + $ERROR('#3: .3E+1 === 3'); +} + +//CHECK#4 +if (.4E+1 !== 4) { + $ERROR('#4: .4E+1 === 4'); +} + +//CHECK#5 +if (.5E+1 !== 5) { + $ERROR('#5: .5E+1 === 5'); +} + +//CHECK#6 +if (.6E+1 !== 6) { + $ERROR('#6: .6E+1 === 6'); +} + +//CHECK#7 +if (.7E+1 !== 7) { + $ERROR('#7: .7E+1 === 7'); +} + +//CHECK#8 +if (.8E+1 !== 8) { + $ERROR('#8: .8E+1 === 8'); +} + +//CHECK#9 +if (.9E+1 !== 9) { + $ERROR('#9: .9E+1 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T7.js new file mode 100644 index 000000000..a3701e00c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T7.js + * @description ExponentPart :: e 0 + */ + +//CHECK#0 +if (.0e0 !== 0.0) { + $ERROR('#0: .0e0 === 0.0'); +} + +//CHECK#1 +if (.1e0 !== 0.1) { + $ERROR('#1: .1e0 === 0.1'); +} + +//CHECK#2 +if (.2e0 !== 0.2) { + $ERROR('#2: .2e0 === 0.2'); +} + +//CHECK#3 +if (.3e0 !== 0.3) { + $ERROR('#3: .3e0 === 0.3'); +} + +//CHECK#4 +if (.4e0 !== 0.4) { + $ERROR('#4: .4e0 === 0.4'); +} + +//CHECK#5 +if (.5e0 !== 0.5) { + $ERROR('#5: .5e0 === 0.5'); +} + +//CHECK#6 +if (.6e0 !== 0.6) { + $ERROR('#6: .6e0 === 0.6'); +} + +//CHECK#7 +if (.7e0 !== 0.7) { + $ERROR('#7: .7e0 === 0.7'); +} + +//CHECK#8 +if (.8e0 !== 0.8) { + $ERROR('#8: .8e0 === 0.8'); +} + +//CHECK#9 +if (.9e0 !== 0.9) { + $ERROR('#9: .9e0 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js new file mode 100644 index 000000000..d8bca29e1 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: .DecimalDigits ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A2.2_T8.js + * @description ExponentPart :: E 0 + */ + +//CHECK#0 +if (.0E0 !== 0.0) { + $ERROR('#0: .0E0 === 0.0'); +} + +//CHECK#1 +if (.1E0 !== 0.1) { + $ERROR('#1: .1E0 === 0.1'); +} + +//CHECK#2 +if (.2E0 !== 0.2) { + $ERROR('#2: .2E0 === 0.2'); +} + +//CHECK#3 +if (.3E0 !== 0.3) { + $ERROR('#3: .3E0 === 0.3'); +} + +//CHECK#4 +if (.4E0 !== 0.4) { + $ERROR('#4: .4E0 === 0.4'); +} + +//CHECK#5 +if (.5E0 !== 0.5) { + $ERROR('#5: .5E0 === 0.5'); +} + +//CHECK#6 +if (.6E0 !== 0.6) { + $ERROR('#6: .6E0 === 0.6'); +} + +//CHECK#7 +if (.7E0 !== 0.7) { + $ERROR('#7: .7E0 === 0.7'); +} + +//CHECK#8 +if (.8E0 !== 0.8) { + $ERROR('#8: .8E0 === 0.8'); +} + +//CHECK#9 +if (.9E0 !== 0.9) { + $ERROR('#9: .9E0 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T1.js new file mode 100644 index 000000000..0e34b120b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.1_T1.js + * @description DecimalIntegerLiteral :: 0, NoNZeroDigit + */ + +//CHECK#0 +if (0. !== 0) { + $ERROR('#0: 0. === 0'); +} + +//CHECK#1 +if (1. !== 1) { + $ERROR('#1: 1. === 1'); +} + +//CHECK#2 +if (2. !== 2) { + $ERROR('#2: 2. === 2'); +} + +//CHECK#3 +if (3. !== 3) { + $ERROR('#3: 3. === 3'); +} + +//CHECK#4 +if (4. !== 4) { + $ERROR('#4: 4. === 4'); +} + +//CHECK#5 +if (5. !== 5) { + $ERROR('#5: 5. === 5'); +} + +//CHECK#6 +if (6. !== 6) { + $ERROR('#6: 6. === 6'); +} + +//CHECK#7 +if (7. !== 7) { + $ERROR('#7: 7. === 7'); +} + +//CHECK#8 +if (8. !== 8) { + $ERROR('#8: 8. === 8'); +} + +//CHECK#9 +if (9. !== 9) { + $ERROR('#9: 9. === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T2.js new file mode 100644 index 000000000..6dcdd78e3 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.1_T2.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.1_T2.js + * @description DecimalIntegerLiteral :: NoNZeroDigit DecimalDigigts + */ + +//CHECK#1 +if (11. !== 11) { + $ERROR('#1: 11. === 11'); +} + +//CHECK#2 +if (22. !== 22) { + $ERROR('#2: 22. === 22'); +} + +//CHECK#3 +if (33. !== 33) { + $ERROR('#3: 33. === 33'); +} + +//CHECK#4 +if (44. !== 44) { + $ERROR('#4: 44. === 44'); +} + +//CHECK#5 +if (55. !== 55) { + $ERROR('#5: 55. === 55'); +} + +//CHECK#6 +if (66. !== 66) { + $ERROR('#6: 66. === 66'); +} + +//CHECK#7 +if (77. !== 77) { + $ERROR('#7: 77. === 77'); +} + +//CHECK#8 +if (88. !== 88) { + $ERROR('#8: 88. === 88'); +} + +//CHECK#9 +if (99. !== 99) { + $ERROR('#9: 99. === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T1.js new file mode 100644 index 000000000..5c0a5ffa7 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.2_T1.js + * @description After DecimalIntegerLiteral. used ZeroDigit + */ + +//CHECK#0 +if (0.0 !== 0) { + $ERROR('#0: 0.0 === 0'); +} + +//CHECK#1 +if (1.0 !== 1) { + $ERROR('#1: 1.0 === 1'); +} + +//CHECK#2 +if (2.0 !== 2) { + $ERROR('#2: 2.0 === 2'); +} + +//CHECK#3 +if (3.0 !== 3) { + $ERROR('#3: 3.0 === 3'); +} + +//CHECK#4 +if (4.0 !== 4) { + $ERROR('#4: 4.0 === 4'); +} + +//CHECK#5 +if (5.0 !== 5) { + $ERROR('#5: 5.0 === 5'); +} + +//CHECK#6 +if (6.0 !== 6) { + $ERROR('#6: 6.0 === 6'); +} + +//CHECK#7 +if (7.0 !== 7) { + $ERROR('#7: 7.0 === 7'); +} + +//CHECK#8 +if (8.0 !== 8) { + $ERROR('#8: 8.0 === 8'); +} + +//CHECK#9 +if (9.0 !== 9) { + $ERROR('#9: 9.0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T2.js new file mode 100644 index 000000000..110c931e5 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.2_T2.js + * @description After DecimalIntegerLiteral. used ZeroDigits + */ + +//CHECK#0 +if (0.00 !== 0) { + $ERROR('#0: 0.00 === 0'); +} + +//CHECK#1 +if (1.00 !== 1) { + $ERROR('#1: 1.00 === 1'); +} + +//CHECK#2 +if (2.00 !== 2) { + $ERROR('#2: 2.00 === 2'); +} + +//CHECK#3 +if (3.00 !== 3) { + $ERROR('#3: 3.00 === 3'); +} + +//CHECK#4 +if (4.00 !== 4) { + $ERROR('#4: 4.00 === 4'); +} + +//CHECK#5 +if (5.00 !== 5) { + $ERROR('#5: 5.00 === 5'); +} + +//CHECK#6 +if (6.00 !== 6) { + $ERROR('#6: 6.00 === 6'); +} + +//CHECK#7 +if (7.00 !== 7) { + $ERROR('#7: 7.00 === 7'); +} + +//CHECK#8 +if (8.00 !== 8) { + $ERROR('#8: 8.00 === 8'); +} + +//CHECK#9 +if (9.00 !== 9) { + $ERROR('#9: 9.00 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T3.js new file mode 100644 index 000000000..fe293b95b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.2_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigits + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.2_T3.js + * @description After DecimalIntegerLiteral. used NoNZeroDigit + */ + +//CHECK#0 +if (0.0 !== 0.0) { + $ERROR('#0: 0.0 === 0.0'); +} + +//CHECK#1 +if (1.1 !== 1.1) { + $ERROR('#1: 1.1 === 1.1'); +} + +//CHECK#2 +if (2.2 !== 2.2) { + $ERROR('#2: 2.2 === 2.2'); +} + +//CHECK#3 +if (3.3 !== 3.3) { + $ERROR('#3: 3.3 === 3.3'); +} + +//CHECK#4 +if (4.4 !== 4.4) { + $ERROR('#4: 4.4 === 4.4'); +} + +//CHECK#5 +if (5.5 !== 5.5) { + $ERROR('#5: 5.5 === 5.5'); +} + +//CHECK#6 +if (6.6 !== 6.6) { + $ERROR('#6: 6.6 === 6.6'); +} + +//CHECK#7 +if (7.7 !== 7.7) { + $ERROR('#7: 7.7 === 7.7'); +} + +//CHECK#8 +if (8.8 !== 8.8) { + $ERROR('#8: 8..8 === 8.8'); +} + +//CHECK#9 +if (9.9 !== 9.9) { + $ERROR('#9: 9.9 === 9.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T1.js new file mode 100644 index 000000000..e0a6edba5 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T1.js + * @description ExponentPart :: e DecimalDigits + */ + +//CHECK#0 +if (0.e1 !== 0) { + $ERROR('#0: 0.e1 === 0'); +} + +//CHECK#1 +if (1.e1 !== 10) { + $ERROR('#1: 1.e1 === 10'); +} + +//CHECK#2 +if (2.e1 !== 20) { + $ERROR('#2: 2.e1 === 20'); +} + +//CHECK#3 +if (3.e1 !== 30) { + $ERROR('#3: 3.e1 === 30'); +} + +//CHECK#4 +if (4.e1 !== 40) { + $ERROR('#4: 4.e1 === 40'); +} + +//CHECK#5 +if (5.e1 !== 50) { + $ERROR('#5: 5.e1 === 50'); +} + +//CHECK#6 +if (6.e1 !== 60) { + $ERROR('#6: 6.e1 === 60'); +} + +//CHECK#7 +if (7.e1 !== 70) { + $ERROR('#7: 7.e1 === 70'); +} + +//CHECK#8 +if (8.e1 !== 80) { + $ERROR('#8: 8.e1 === 80'); +} + +//CHECK#9 +if (9.e1 !== 90) { + $ERROR('#9: 9.e1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T2.js new file mode 100644 index 000000000..034d2c548 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T2.js + * @description ExponentPart :: E DecimalDigits + */ + +//CHECK#0 +if (0.E1 !== 0) { + $ERROR('#0: 0.E1 === 0'); +} + +//CHECK#1 +if (1.E1 !== 10) { + $ERROR('#1: 1.E1 === 10'); +} + +//CHECK#2 +if (2.E1 !== 20) { + $ERROR('#2: 2.E1 === 20'); +} + +//CHECK#3 +if (3.E1 !== 30) { + $ERROR('#3: 3.E1 === 30'); +} + +//CHECK#4 +if (4.E1 !== 40) { + $ERROR('#4: 4.E1 === 40'); +} + +//CHECK#5 +if (5.E1 !== 50) { + $ERROR('#5: 5.E1 === 50'); +} + +//CHECK#6 +if (6.E1 !== 60) { + $ERROR('#6: 6.E1 === 60'); +} + +//CHECK#7 +if (7.E1 !== 70) { + $ERROR('#7: 7.E1 === 70'); +} + +//CHECK#8 +if (8.E1 !== 80) { + $ERROR('#8: 8.E1 === 80'); +} + +//CHECK#9 +if (9.E1 !== 90) { + $ERROR('#9: 9.E1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T3.js new file mode 100644 index 000000000..a60c83d58 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T3.js + * @description ExponentPart :: e -DecimalDigits + */ + +//CHECK#0 +if (0.e-1 !== 0) { + $ERROR('#0: 0.e-1 === 0'); +} + +//CHECK#1 +if (1.e-1 !== 0.1) { + $ERROR('#1: 1.e-1 === 0.1'); +} + +//CHECK#2 +if (2.e-1 !== 0.2) { + $ERROR('#2: 2.e-1 === 0.2'); +} + +//CHECK#3 +if (3.e-1 !== 0.3) { + $ERROR('#3: 3.e-1 === 0.3'); +} + +//CHECK#4 +if (4.e-1 !== 0.4) { + $ERROR('#4: 4.e-1 === 0.4'); +} + +//CHECK#5 +if (5.e-1 !== 0.5) { + $ERROR('#5: 5.e-1 === 0.5'); +} + +//CHECK#6 +if (6.e-1 !== 0.6) { + $ERROR('#6: 6.e-1 === 0.6'); +} + +//CHECK#7 +if (7.e-1 !== 0.7) { + $ERROR('#7: 7.e-1 === 0.7'); +} + +//CHECK#8 +if (8.e-1 !== 0.8) { + $ERROR('#8: 8.e-1 === 0.8'); +} + +//CHECK#9 +if (9.e-1 !== 0.9) { + $ERROR('#9: 9.e-1 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T4.js new file mode 100644 index 000000000..9dc5be7a2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T4.js + * @description ExponentPart :: E -DecimalDigits + */ + +//CHECK#0 +if (0.E-1 !== 0) { + $ERROR('#0: 0.E-1 === 0'); +} + +//CHECK#1 +if (1.E-1 !== 0.1) { + $ERROR('#1: 1.E-1 === 0.1'); +} + +//CHECK#2 +if (2.E-1 !== 0.2) { + $ERROR('#2: 2.E-1 === 0.2'); +} + +//CHECK#3 +if (3.E-1 !== 0.3) { + $ERROR('#3: 3.E-1 === 0.3'); +} + +//CHECK#4 +if (4.E-1 !== 0.4) { + $ERROR('#4: 4.E-1 === 0.4'); +} + +//CHECK#5 +if (5.E-1 !== 0.5) { + $ERROR('#5: 5.E-1 === 0.5'); +} + +//CHECK#6 +if (6.E-1 !== 0.6) { + $ERROR('#6: 6.E-1 === 0.6'); +} + +//CHECK#7 +if (7.E-1 !== 0.7) { + $ERROR('#7: 7.E-1 === 0.7'); +} + +//CHECK#8 +if (8.E-1 !== 0.8) { + $ERROR('#8: 8.E-1 === 0.8'); +} + +//CHECK#9 +if (9.E-1 !== 0.9) { + $ERROR('#9: 9.E-1 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T5.js new file mode 100644 index 000000000..9b2e9b820 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T5.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (0.e+1 !== 0) { + $ERROR('#0: 0.e+1 === 0'); +} + +//CHECK#1 +if (1.e+1 !== 10) { + $ERROR('#1: 1.e+1 === 10'); +} + +//CHECK#2 +if (2.e+1 !== 20) { + $ERROR('#2: 2.e+1 === 20'); +} + +//CHECK#3 +if (3.e+1 !== 30) { + $ERROR('#3: 3.e+1 === 30'); +} + +//CHECK#4 +if (4.e+1 !== 40) { + $ERROR('#4: 4.e+1 === 40'); +} + +//CHECK#5 +if (5.e+1 !== 50) { + $ERROR('#5: 5.e+1 === 50'); +} + +//CHECK#6 +if (6.e+1 !== 60) { + $ERROR('#6: 6.e+1 === 60'); +} + +//CHECK#7 +if (7.e+1 !== 70) { + $ERROR('#7: 7.e+1 === 70'); +} + +//CHECK#8 +if (8.e+1 !== 80) { + $ERROR('#8: 8.e+1 === 80'); +} + +//CHECK#9 +if (9.e+1 !== 90) { + $ERROR('#9: 9.e+1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T6.js new file mode 100644 index 000000000..33c8a84c9 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T6.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (0.E+1 !== 0) { + $ERROR('#0: 0.E+1 === 0'); +} + +//CHECK#1 +if (1.E+1 !== 10) { + $ERROR('#1: 1.E+1 === 10'); +} + +//CHECK#2 +if (2.E+1 !== 20) { + $ERROR('#2: 2.E+1 === 20'); +} + +//CHECK#3 +if (3.E+1 !== 30) { + $ERROR('#3: 3.E+1 === 30'); +} + +//CHECK#4 +if (4.E+1 !== 40) { + $ERROR('#4: 4.E+1 === 40'); +} + +//CHECK#5 +if (5.E+1 !== 50) { + $ERROR('#5: 5.E+1 === 50'); +} + +//CHECK#6 +if (6.E+1 !== 60) { + $ERROR('#6: 6.E+1 === 60'); +} + +//CHECK#7 +if (7.E+1 !== 70) { + $ERROR('#7: 7.E+1 === 70'); +} + +//CHECK#8 +if (8.E+1 !== 80) { + $ERROR('#8: 8.E+1 === 80'); +} + +//CHECK#9 +if (9.E+1 !== 90) { + $ERROR('#9: 9.E+1 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T7.js new file mode 100644 index 000000000..628581d66 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T7.js + * @description ExponentPart :: e 0 + */ + +//CHECK#0 +if (0.e0 !== 0) { + $ERROR('#0: 0.e0 === 0'); +} + +//CHECK#1 +if (1.e0 !== 1) { + $ERROR('#1: 1.e0 === 1'); +} + +//CHECK#2 +if (2.e0 !== 2) { + $ERROR('#2: 2.e0 === 2'); +} + +//CHECK#3 +if (3.e0 !== 3) { + $ERROR('#3: 3.e0 === 3'); +} + +//CHECK#4 +if (4.e0 !== 4) { + $ERROR('#4: 4.e0 === 4'); +} + +//CHECK#5 +if (5.e0 !== 5) { + $ERROR('#5: 5.e0 === 5'); +} + +//CHECK#6 +if (6.e0 !== 6) { + $ERROR('#6: 6.e0 === 6'); +} + +//CHECK#7 +if (7.e0 !== 7) { + $ERROR('#7: 7.e0 === 7'); +} + +//CHECK#8 +if (8.e0 !== 8) { + $ERROR('#8: 8.e0 === 8'); +} + +//CHECK#9 +if (9.e0 !== 9) { + $ERROR('#9: 9.e0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T8.js new file mode 100644 index 000000000..b6f249124 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.3_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.3_T8.js + * @description ExponentPart :: E 0 + */ + +//CHECK#0 +if (0.E0 !== 0) { + $ERROR('#0: 0.E0 === 0'); +} + +//CHECK#1 +if (1.E0 !== 1) { + $ERROR('#1: 1.E0 === 1'); +} + +//CHECK#2 +if (2.E0 !== 2) { + $ERROR('#2: 2.E0 === 2'); +} + +//CHECK#3 +if (3.E0 !== 3) { + $ERROR('#3: 3.E0 === 3'); +} + +//CHECK#4 +if (4.E0 !== 4) { + $ERROR('#4: 4.E0 === 4'); +} + +//CHECK#5 +if (5.E0 !== 5) { + $ERROR('#5: 5.E0 === 5'); +} + +//CHECK#6 +if (6.E0 !== 6) { + $ERROR('#6: 6.E0 === 6'); +} + +//CHECK#7 +if (7.E0 !== 7) { + $ERROR('#7: 7.E0 === 7'); +} + +//CHECK#8 +if (8.E0 !== 8) { + $ERROR('#8: 8.E0 === 8'); +} + +//CHECK#9 +if (9.E0 !== 9) { + $ERROR('#9: 9.E0 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T1.js new file mode 100644 index 000000000..15ad5b224 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T1.js + * @description ExponentPart :: e DecimalDigits + */ + +//CHECK#0 +if (0.0e1 !== 0) { + $ERROR('#0: 0.0e1 === 0'); +} + +//CHECK#1 +if (1.1e1 !== 11) { + $ERROR('#1: 1.1e1 === 11'); +} + +//CHECK#2 +if (2.2e1 !== 22) { + $ERROR('#2: 2.2e1 === 22'); +} + +//CHECK#3 +if (3.3e1 !== 33) { + $ERROR('#3: 3.3e1 === 33'); +} + +//CHECK#4 +if (4.4e1 !== 44) { + $ERROR('#4: 4.4e1 === 44'); +} + +//CHECK#5 +if (5.5e1 !== 55) { + $ERROR('#5: 5.5e1 === 55'); +} + +//CHECK#6 +if (6.6e1 !== 66) { + $ERROR('#6: 6.e1 === 66'); +} + +//CHECK#7 +if (7.7e1 !== 77) { + $ERROR('#7: 7.7e1 === 77'); +} + +//CHECK#8 +if (8.8e1 !== 88) { + $ERROR('#8: 8.8e1 === 88'); +} + +//CHECK#9 +if (9.9e1 !== 99) { + $ERROR('#9: 9.9e1 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T2.js new file mode 100644 index 000000000..a3a67a30e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T2.js + * @description ExponentPart :: E DecimalDigits + */ + +//CHECK#0 +if (0.0E1 !== 0) { + $ERROR('#0: 0.0E1 === 0'); +} + +//CHECK#1 +if (1.1E1 !== 11) { + $ERROR('#1: 1.1E1 === 11'); +} + +//CHECK#2 +if (2.2E1 !== 22) { + $ERROR('#2: 2.2E1 === 22'); +} + +//CHECK#3 +if (3.3E1 !== 33) { + $ERROR('#3: 3.3E1 === 33'); +} + +//CHECK#4 +if (4.4E1 !== 44) { + $ERROR('#4: 4.4E1 === 44'); +} + +//CHECK#5 +if (5.5E1 !== 55) { + $ERROR('#5: 5.5E1 === 55'); +} + +//CHECK#6 +if (6.6E1 !== 66) { + $ERROR('#6: 6.E1 === 66'); +} + +//CHECK#7 +if (7.7E1 !== 77) { + $ERROR('#7: 7.7E1 === 77'); +} + +//CHECK#8 +if (8.8E1 !== 88) { + $ERROR('#8: 8.8E1 === 88'); +} + +//CHECK#9 +if (9.9E1 !== 99) { + $ERROR('#9: 9.9E1 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T3.js new file mode 100644 index 000000000..fef945e47 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T3.js + * @description ExponentPart :: e -DecimalDigits + */ + +//CHECK#0 +if (0.0e-1 !== 0) { + $ERROR('#0: 0.0e-1 === 0'); +} + +//CHECK#1 +if (1.1e-1 !== 0.11) { + $ERROR('#1: 1.1e-1 === 0.11'); +} + +//CHECK#2 +if (2.2e-1 !== 0.22) { + $ERROR('#2: 2.2e-1 === 0.22'); +} + +//CHECK#3 +if (3.3e-1 !== 0.33) { + $ERROR('#3: 3.3e-1 === 0.33'); +} + +//CHECK#4 +if (4.4e-1 !== 0.44) { + $ERROR('#4: 4.4e-1 === 0.44'); +} + +//CHECK#5 +if (5.5e-1 !== 0.55) { + $ERROR('#5: 5.5e-1 === 0.55'); +} + +//CHECK#6 +if (6.6e-1 !== 0.66) { + $ERROR('#6: 6.e-1 === 0.66'); +} + +//CHECK#7 +if (7.7e-1 !== 0.77) { + $ERROR('#7: 7.7e-1 === 0.77'); +} + +//CHECK#8 +if (8.8e-1 !== 0.88) { + $ERROR('#8: 8.8e-1 === 0.88'); +} + +//CHECK#9 +if (9.9e-1 !== 0.99) { + $ERROR('#9: 9.9e-1 === 0.99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js new file mode 100644 index 000000000..f68532fd8 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js + * @description ExponentPart :: E -DecimalDigits + */ + +//CHECK#0 +if (0.0E-1 !== 0) { + $ERROR('#0: 0.0E-1 === 0'); +} + +//CHECK#1 +if (1.1E-1 !== 0.11) { + $ERROR('#1: 1.1E-1 === 0.11'); +} + +//CHECK#2 +if (2.2E-1 !== 0.22) { + $ERROR('#2: 2.2E-1 === 0.22'); +} + +//CHECK#3 +if (3.3E-1 !== 0.33) { + $ERROR('#3: 3.3E-1 === 0.33'); +} + +//CHECK#4 +if (4.4E-1 !== 0.44) { + $ERROR('#4: 4.4E-1 === 0.44'); +} + +//CHECK#5 +if (5.5E-1 !== 0.55) { + $ERROR('#5: 5.5E-1 === 0.55'); +} + +//CHECK#6 +if (6.6E-1 !== 0.66) { + $ERROR('#6: 6.E-1 === 0.66'); +} + +//CHECK#7 +if (7.7E-1 !== 0.77) { + $ERROR('#7: 7.7E-1 === 0.77'); +} + +//CHECK#8 +if (8.8E-1 !== 0.88) { + $ERROR('#8: 8.8E-1 === 0.88'); +} + +//CHECK#9 +if (9.9E-1 !== 0.99) { + $ERROR('#9: 9.9E-1 === 0.99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T5.js new file mode 100644 index 000000000..161105928 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T5.js + * @description ExponentPart :: e +DecimalDigits + */ + +//CHECK#0 +if (0.0e+1 !== 0) { + $ERROR('#0: 0.0e+1 === 0'); +} + +//CHECK#1 +if (1.1e+1 !== 11) { + $ERROR('#1: 1.1e+1 === 11'); +} + +//CHECK#2 +if (2.2e+1 !== 22) { + $ERROR('#2: 2.2e+1 === 22'); +} + +//CHECK#3 +if (3.3e+1 !== 33) { + $ERROR('#3: 3.3e+1 === 33'); +} + +//CHECK#4 +if (4.4e+1 !== 44) { + $ERROR('#4: 4.4e+1 === 44'); +} + +//CHECK#5 +if (5.5e+1 !== 55) { + $ERROR('#5: 5.5e+1 === 55'); +} + +//CHECK#6 +if (6.6e+1 !== 66) { + $ERROR('#6: 6.e+1 === 66'); +} + +//CHECK#7 +if (7.7e+1 !== 77) { + $ERROR('#7: 7.7e+1 === 77'); +} + +//CHECK#8 +if (8.8e+1 !== 88) { + $ERROR('#8: 8.8e+1 === 88'); +} + +//CHECK#9 +if (9.9e+1 !== 99) { + $ERROR('#9: 9.9e+1 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T6.js new file mode 100644 index 000000000..5d28f6609 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T6.js + * @description ExponentPart :: E +DecimalDigits + */ + +//CHECK#0 +if (0.0E+1 !== 0) { + $ERROR('#0: 0.0E+1 === 0'); +} + +//CHECK#1 +if (1.1E+1 !== 11) { + $ERROR('#1: 1.1E+1 === 11'); +} + +//CHECK#2 +if (2.2E+1 !== 22) { + $ERROR('#2: 2.2E+1 === 22'); +} + +//CHECK#3 +if (3.3E+1 !== 33) { + $ERROR('#3: 3.3E+1 === 33'); +} + +//CHECK#4 +if (4.4E+1 !== 44) { + $ERROR('#4: 4.4E+1 === 44'); +} + +//CHECK#5 +if (5.5E+1 !== 55) { + $ERROR('#5: 5.5E+1 === 55'); +} + +//CHECK#6 +if (6.6E+1 !== 66) { + $ERROR('#6: 6.E+1 === 66'); +} + +//CHECK#7 +if (7.7E+1 !== 77) { + $ERROR('#7: 7.7E+1 === 77'); +} + +//CHECK#8 +if (8.8E+1 !== 88) { + $ERROR('#8: 8.8E+1 === 88'); +} + +//CHECK#9 +if (9.9E+1 !== 99) { + $ERROR('#9: 9.9E+1 === 99'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T7.js new file mode 100644 index 000000000..b5ebe39d4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T7.js + * @description ExponentPart :: e 0 + */ + +//CHECK#0 +if (0.0e0 !== 0.0) { + $ERROR('#0: 0.0e0 === 0.0'); +} + +//CHECK#1 +if (1.1e0 !== 1.1) { + $ERROR('#1: 1.1e0 === 1.1'); +} + +//CHECK#2 +if (2.2e0 !== 2.2) { + $ERROR('#2: 2.2e0 === 2.2'); +} + +//CHECK#3 +if (3.3e0 !== 3.3) { + $ERROR('#3: 3.3e0 === 3.3'); +} + +//CHECK#4 +if (4.4e0 !== 4.4) { + $ERROR('#4: 4.4e0 === 4.4'); +} + +//CHECK#5 +if (5.5e0 !== 5.5) { + $ERROR('#5: 5.5e0 === 5.5'); +} + +//CHECK#6 +if (6.6e0 !== 6.6) { + $ERROR('#6: 6.e0 === 6.6'); +} + +//CHECK#7 +if (7.7e0 !== 7.7) { + $ERROR('#7: 7.7e0 === 7.7'); +} + +//CHECK#8 +if (8.8e0 !== 8.8) { + $ERROR('#8: 8.8e0 === 8.8'); +} + +//CHECK#9 +if (9.9e0 !== 9.9) { + $ERROR('#9: 9.9e0 === 9.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T8.js new file mode 100644 index 000000000..36b643364 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A3.4_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart + * + * @path ch07/7.8/7.8.3/S7.8.3_A3.4_T8.js + * @description ExponentPart :: E 0 + */ + +//CHECK#0 +if (0.0E0 !== 0.0) { + $ERROR('#0: 0.0E0 === 0.0'); +} + +//CHECK#1 +if (1.1E0 !== 1.1) { + $ERROR('#1: 1.1E0 === 1.1'); +} + +//CHECK#2 +if (2.2E0 !== 2.2) { + $ERROR('#2: 2.2E0 === 2.2'); +} + +//CHECK#3 +if (3.3E0 !== 3.3) { + $ERROR('#3: 3.3E0 === 3.3'); +} + +//CHECK#4 +if (4.4E0 !== 4.4) { + $ERROR('#4: 4.4E0 === 4.4'); +} + +//CHECK#5 +if (5.5E0 !== 5.5) { + $ERROR('#5: 5.5E0 === 5.5'); +} + +//CHECK#6 +if (6.6E0 !== 6.6) { + $ERROR('#6: 6.E0 === 6.6'); +} + +//CHECK#7 +if (7.7E0 !== 7.7) { + $ERROR('#7: 7.7E0 === 7.7'); +} + +//CHECK#8 +if (8.8E0 !== 8.8) { + $ERROR('#8: 8.8E0 === 8.8'); +} + +//CHECK#9 +if (9.9E0 !== 9.9) { + $ERROR('#9: 9.9E0 === 9.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T1.js new file mode 100644 index 000000000..eaed76725 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T1.js + * @description ExponentPart :: e DecimalDigits + * @negative + */ + +//CHECK#1 +e1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T2.js new file mode 100644 index 000000000..306ed8ba2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T2.js + * @description ExponentPart :: E DecimalDigits + * @negative + */ + +//CHECK#1 +E1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T3.js new file mode 100644 index 000000000..b7c5e5a9f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T3.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T3.js + * @description ExponentPart :: e DecimalDigits + * @negative + */ + +//CHECK#1 +e-1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T4.js new file mode 100644 index 000000000..fb21413d4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T4.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T4.js + * @description ExponentPart :: E DecimalDigits + * @negative + */ + +//CHECK#1 +E-1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T5.js new file mode 100644 index 000000000..89719f0f7 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T5.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T5.js + * @description ExponentPart :: e DecimalDigits + * @negative + */ + +//CHECK#1 +e+1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T6.js new file mode 100644 index 000000000..533e23bc4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T6.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T6.js + * @description ExponentPart :: E DecimalDigits + * @negative + */ + +//CHECK#1 +E+1 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T7.js new file mode 100644 index 000000000..d6475e50f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T7.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T7.js + * @description ExponentPart :: e 0 + * @negative + */ + +//CHECK#1 +e0 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T8.js new file mode 100644 index 000000000..89e284f4f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.1_T8.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: ExponentPart is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.1_T8.js + * @description ExponentPart :: E 0 + * @negative + */ + +//CHECK#1 +E0 + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js new file mode 100644 index 000000000..a925aaed9 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js + * @description ExponentIndicator :: e + */ + +//CHECK#0 +if (0e01 !== 0) { + $ERROR('#0: 0e01 === 0'); +} + +//CHECK#1 +if (1e01 !== 10) { + $ERROR('#1: 1e01 === 10'); +} + +//CHECK#2 +if (2e01 !== 20) { + $ERROR('#2: 2e01 === 20'); +} + +//CHECK#3 +if (3e01 !== 30) { + $ERROR('#3: 3e01 === 30'); +} + +//CHECK#4 +if (4e01 !== 40) { + $ERROR('#4: 4e01 === 40'); +} + +//CHECK#5 +if (5e01 !== 50) { + $ERROR('#5: 5e01 === 50'); +} + +//CHECK#6 +if (6e01 !== 60) { + $ERROR('#6: 6e01 === 60'); +} + +//CHECK#7 +if (7e01 !== 70) { + $ERROR('#7: 7e01 === 70'); +} + +//CHECK#8 +if (8e01 !== 80) { + $ERROR('#8: 8e01 === 80'); +} + +//CHECK#9 +if (9e01 !== 90) { + $ERROR('#9: 9e01 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T2.js new file mode 100644 index 000000000..bfc6f4eee --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T2.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T2.js + * @description ExponentIndicator :: E + */ + +//CHECK#0 +if (0E01 !== 0) { + $ERROR('#0: 0E01 === 0'); +} + +//CHECK#1 +if (1E01 !== 10) { + $ERROR('#1: 1E01 === 10'); +} + +//CHECK#2 +if (2E01 !== 20) { + $ERROR('#2: 2E01 === 20'); +} + +//CHECK#3 +if (3E01 !== 30) { + $ERROR('#3: 3E01 === 30'); +} + +//CHECK#4 +if (4E01 !== 40) { + $ERROR('#4: 4E01 === 40'); +} + +//CHECK#5 +if (5E01 !== 50) { + $ERROR('#5: 5E01 === 50'); +} + +//CHECK#6 +if (6E01 !== 60) { + $ERROR('#6: 6E01 === 60'); +} + +//CHECK#7 +if (7E01 !== 70) { + $ERROR('#7: 7E01 === 70'); +} + +//CHECK#8 +if (8E01 !== 80) { + $ERROR('#8: 8E01 === 80'); +} + +//CHECK#9 +if (9E01 !== 90) { + $ERROR('#9: 9E01 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T3.js new file mode 100644 index 000000000..15f7bf7bd --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T3.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T3.js + * @description ExponentIndicator :: e + */ + +//CHECK#0 +if (0e-01 !== 0) { + $ERROR('#0: 0e-01 === 0'); +} + +//CHECK#1 +if (1e-01 !== 0.1) { + $ERROR('#1: 1e-01 === 0.1'); +} + +//CHECK#2 +if (2e-01 !== 0.2) { + $ERROR('#2: 2e-01 === 0.2'); +} + +//CHECK#3 +if (3e-01 !== 0.3) { + $ERROR('#3: 3e-01 === 0.3'); +} + +//CHECK#4 +if (4e-01 !== 0.4) { + $ERROR('#4: 4e-01 === 0.4'); +} + +//CHECK#5 +if (5e-01 !== 0.5) { + $ERROR('#5: 5e-01 === 0.5'); +} + +//CHECK#6 +if (6e-01 !== 0.6) { + $ERROR('#6: 6e-01 === 0.6'); +} + +//CHECK#7 +if (7e-01 !== 0.7) { + $ERROR('#7: 7e-01 === 0.7'); +} + +//CHECK#8 +if (8e-01 !== 0.8) { + $ERROR('#8: 8e-01 === 0.8'); +} + +//CHECK#9 +if (9e-01 !== 0.9) { + $ERROR('#9: 9e-01 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T4.js new file mode 100644 index 000000000..2682b8f0e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T4.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T4.js + * @description ExponentIndicator :: E + */ + +//CHECK#0 +if (0E-01 !== 0) { + $ERROR('#0: 0E-01 === 0'); +} + +//CHECK#1 +if (1E-01 !== 0.1) { + $ERROR('#1: 1E-01 === 0.1'); +} + +//CHECK#2 +if (2E-01 !== 0.2) { + $ERROR('#2: 2E-01 === 0.2'); +} + +//CHECK#3 +if (3E-01 !== 0.3) { + $ERROR('#3: 3E-01 === 0.3'); +} + +//CHECK#4 +if (4E-01 !== 0.4) { + $ERROR('#4: 4E-01 === 0.4'); +} + +//CHECK#5 +if (5E-01 !== 0.5) { + $ERROR('#5: 5E-01 === 0.5'); +} + +//CHECK#6 +if (6E-01 !== 0.6) { + $ERROR('#6: 6E-01 === 0.6'); +} + +//CHECK#7 +if (7E-01 !== 0.7) { + $ERROR('#7: 7E-01 === 0.7'); +} + +//CHECK#8 +if (8E-01 !== 0.8) { + $ERROR('#8: 8E-01 === 0.8'); +} + +//CHECK#9 +if (9E-01 !== 0.9) { + $ERROR('#9: 9E-01 === 0.9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T5.js new file mode 100644 index 000000000..386daa930 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T5.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T5.js + * @description ExponentIndicator :: e + */ + +//CHECK#0 +if (0e+01 !== 0) { + $ERROR('#0: 0e+01 === 0'); +} + +//CHECK#1 +if (1e+01 !== 10) { + $ERROR('#1: 1e+01 === 10'); +} + +//CHECK#2 +if (2e+01 !== 20) { + $ERROR('#2: 2e+01 === 20'); +} + +//CHECK#3 +if (3e+01 !== 30) { + $ERROR('#3: 3e+01 === 30'); +} + +//CHECK#4 +if (4e+01 !== 40) { + $ERROR('#4: 4e+01 === 40'); +} + +//CHECK#5 +if (5e+01 !== 50) { + $ERROR('#5: 5e+01 === 50'); +} + +//CHECK#6 +if (6e+01 !== 60) { + $ERROR('#6: 6e+01 === 60'); +} + +//CHECK#7 +if (7e+01 !== 70) { + $ERROR('#7: 7e+01 === 70'); +} + +//CHECK#8 +if (8e+01 !== 80) { + $ERROR('#8: 8e+01 === 80'); +} + +//CHECK#9 +if (9e+01 !== 90) { + $ERROR('#9: 9e+01 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T6.js new file mode 100644 index 000000000..df360f5ea --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T6.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T6.js + * @description ExponentIndicator :: E + */ + +//CHECK#0 +if (0E+01 !== 0) { + $ERROR('#0: 0E+01 === 0'); +} + +//CHECK#1 +if (1E+01 !== 10) { + $ERROR('#1: 1E+01 === 10'); +} + +//CHECK#2 +if (2E+01 !== 20) { + $ERROR('#2: 2E+01 === 20'); +} + +//CHECK#3 +if (3E+01 !== 30) { + $ERROR('#3: 3E+01 === 30'); +} + +//CHECK#4 +if (4E+01 !== 40) { + $ERROR('#4: 4E+01 === 40'); +} + +//CHECK#5 +if (5E+01 !== 50) { + $ERROR('#5: 5E+01 === 50'); +} + +//CHECK#6 +if (6E+01 !== 60) { + $ERROR('#6: 6E+01 === 60'); +} + +//CHECK#7 +if (7E+01 !== 70) { + $ERROR('#7: 7E+01 === 70'); +} + +//CHECK#8 +if (8E+01 !== 80) { + $ERROR('#8: 8E+01 === 80'); +} + +//CHECK#9 +if (9E+01 !== 90) { + $ERROR('#9: 9E+01 === 90'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T7.js new file mode 100644 index 000000000..9fbd8a679 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T7.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T7.js + * @description ExponentIndicator :: e + */ + +//CHECK#0 +if (0e00 !== 0) { + $ERROR('#0: 0e00 === 0'); +} + +//CHECK#1 +if (1e00 !== 1) { + $ERROR('#1: 1e00 === 1'); +} + +//CHECK#2 +if (2e00 !== 2) { + $ERROR('#2: 2e00 === 2'); +} + +//CHECK#3 +if (3e00 !== 3) { + $ERROR('#3: 3e00 === 3'); +} + +//CHECK#4 +if (4e00 !== 4) { + $ERROR('#4: 4e00 === 4'); +} + +//CHECK#5 +if (5e00 !== 5) { + $ERROR('#5: 5e00 === 5'); +} + +//CHECK#6 +if (6e00 !== 6) { + $ERROR('#6: 6e00 === 6'); +} + +//CHECK#7 +if (7e00 !== 7) { + $ERROR('#7: 7e00 === 7'); +} + +//CHECK#8 +if (8e00 !== 8) { + $ERROR('#8: 8e00 === 8'); +} + +//CHECK#9 +if (9e00 !== 9) { + $ERROR('#9: 9e00 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T8.js new file mode 100644 index 000000000..2c62351fa --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A4.2_T8.js @@ -0,0 +1,60 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed + * + * @path ch07/7.8/7.8.3/S7.8.3_A4.2_T8.js + * @description ExponentIndicator :: E + */ + +//CHECK#0 +if (0E00 !== 0) { + $ERROR('#0: 0E00 === 0'); +} + +//CHECK#1 +if (1E00 !== 1) { + $ERROR('#1: 1E00 === 1'); +} + +//CHECK#2 +if (2E00 !== 2) { + $ERROR('#2: 2E00 === 2'); +} + +//CHECK#3 +if (3E00 !== 3) { + $ERROR('#3: 3E00 === 3'); +} + +//CHECK#4 +if (4E00 !== 4) { + $ERROR('#4: 4E00 === 4'); +} + +//CHECK#5 +if (5E00 !== 5) { + $ERROR('#5: 5E00 === 5'); +} + +//CHECK#6 +if (6E00 !== 6) { + $ERROR('#6: 6E00 === 6'); +} + +//CHECK#7 +if (7E00 !== 7) { + $ERROR('#7: 7E00 === 7'); +} + +//CHECK#8 +if (8E00 !== 8) { + $ERROR('#8: 8E00 === 8'); +} + +//CHECK#9 +if (9E00 !== 9) { + $ERROR('#9: 9E00 === 9'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T1.js new file mode 100644 index 000000000..2e6b786b4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T1.js @@ -0,0 +1,90 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T1.js + * @description HexIntegerLiteral :: 0x Digit + */ + +//CHECK#0 +if (0x0 !== 0) { + $ERROR('#0: 0x0 === 0'); +} + +//CHECK#1 +if (0x1 !== 1) { + $ERROR('#1: 0x1 === 1'); +} + +//CHECK#2 +if (0x2 !== 2) { + $ERROR('#2: 0x2 === 2'); +} + +//CHECK#3 +if (0x3 !== 3) { + $ERROR('#3: 0x3 === 3'); +} + +//CHECK#4 +if (0x4 !== 4) { + $ERROR('#4: 0x4 === 4'); +} + +//CHECK#5 +if (0x5 !== 5) { + $ERROR('#5: 0x5 === 5'); +} + +//CHECK#6 +if (0x6 !== 6) { + $ERROR('#6: 0x6 === 6'); +} + +//CHECK#7 +if (0x7 !== 7) { + $ERROR('#7: 0x7 === 7'); +} + +//CHECK#8 +if (0x8 !== 8) { + $ERROR('#8: 0x8 === 8'); +} + +//CHECK#9 +if (0x9 !== 9) { + $ERROR('#9: 0x9 === 9'); +} + +//CHECK#A +if (0xA !== 10) { + $ERROR('#A: 0xA === 10'); +} + +//CHECK#B +if (0xB !== 11) { + $ERROR('#B: 0xB === 11'); +} + +//CHECK#C +if (0xC !== 12) { + $ERROR('#C: 0xC === 12'); +} + +//CHECK#D +if (0xD !== 13) { + $ERROR('#D: 0xD === 13'); +} + +//CHECK#E +if (0xE !== 14) { + $ERROR('#E: 0xE === 14'); +} + +//CHECK#F +if (0xF !== 15) { + $ERROR('#F: 0xF === 15'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T2.js new file mode 100644 index 000000000..ca55655e2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T2.js @@ -0,0 +1,90 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T2.js + * @description HexIntegerLiteral :: 0X Digit + */ + +//CHECK#0 +if (0X0 !== 0) { + $ERROR('#0: 0X0 === 0'); +} + +//CHECK#1 +if (0X1 !== 1) { + $ERROR('#1: 0X1 === 1'); +} + +//CHECK#2 +if (0X2 !== 2) { + $ERROR('#2: 0X2 === 2'); +} + +//CHECK#3 +if (0X3 !== 3) { + $ERROR('#3: 0X3 === 3'); +} + +//CHECK#4 +if (0X4 !== 4) { + $ERROR('#4: 0X4 === 4'); +} + +//CHECK#5 +if (0X5 !== 5) { + $ERROR('#5: 0X5 === 5'); +} + +//CHECK#6 +if (0X6 !== 6) { + $ERROR('#6: 0X6 === 6'); +} + +//CHECK#7 +if (0X7 !== 7) { + $ERROR('#7: 0X7 === 7'); +} + +//CHECK#8 +if (0X8 !== 8) { + $ERROR('#8: 0X8 === 8'); +} + +//CHECK#9 +if (0X9 !== 9) { + $ERROR('#9: 0X9 === 9'); +} + +//CHECK#A +if (0XA !== 10) { + $ERROR('#A: 0XA === 10'); +} + +//CHECK#B +if (0XB !== 11) { + $ERROR('#B: 0XB === 11'); +} + +//CHECK#C +if (0XC !== 12) { + $ERROR('#C: 0XC === 12'); +} + +//CHECK#D +if (0XD !== 13) { + $ERROR('#D: 0XD === 13'); +} + +//CHECK#E +if (0XE !== 14) { + $ERROR('#E: 0XE === 14'); +} + +//CHECK#F +if (0XF !== 15) { + $ERROR('#F: 0XF === 15'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T3.js new file mode 100644 index 000000000..089a84112 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T3.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T3.js + * @description HexIntegerLiteral :: 0x NonZeroDigit Digits + */ + +//CHECK#0 +if (0x0 !== 0) { + $ERROR('#0: 0x0 === 0'); +} + +//CHECK#1 +if (0x1 !== 1) { + $ERROR('#1: 0x1 === 1'); +} + +//CHECK#2 +if (0x10 !== 16) { + $ERROR('#2: 0x10 === 16'); +} + +//CHECK3 +if (0x100 !== 256) { + $ERROR('3: 0x100 === 256'); +} + +//CHECK#4 +if (0x1000 !== 4096) { + $ERROR('#4: 0x1000 === 4096'); +} + +//CHECK#5 +if (0x10000 !== 65536) { + $ERROR('#5: 0x10000 === 65536'); +} + +//CHECK#6 +if (0x100000 !== 1048576) { + $ERROR('#6: 0x100000 === 1048576'); +} + +//CHECK#7 +if (0x1000000 !== 16777216) { + $ERROR('#7: 0x1000000 === 16777216'); +} + +//CHECK#8 +if (0x10000000 !== 268435456) { + $ERROR('#8: 0x10000000 === 268435456'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T4.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T4.js new file mode 100644 index 000000000..5ddc484a8 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T4.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T4.js + * @description HexIntegerLiteral :: 0X NonZeroDigit Digits + */ + +//CHECK#0 +if (0X0 !== 0) { + $ERROR('#0: 0X0 === 0'); +} + +//CHECK#1 +if (0X1 !== 1) { + $ERROR('#1: 0X1 === 1'); +} + +//CHECK#2 +if (0X10 !== 16) { + $ERROR('#2: 0X10 === 16'); +} + +//CHECK3 +if (0X100 !== 256) { + $ERROR('3: 0X100 === 256'); +} + +//CHECK#4 +if (0X1000 !== 4096) { + $ERROR('#4: 0X1000 === 4096'); +} + +//CHECK#5 +if (0X10000 !== 65536) { + $ERROR('#5: 0X10000 === 65536'); +} + +//CHECK#6 +if (0X100000 !== 1048576) { + $ERROR('#6: 0X100000 === 1048576'); +} + +//CHECK#7 +if (0X1000000 !== 16777216) { + $ERROR('#7: 0X1000000 === 16777216'); +} + +//CHECK#8 +if (0X10000000 !== 268435456) { + $ERROR('#8: 0X10000000 === 268435456'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T5.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T5.js new file mode 100644 index 000000000..da8e61ed4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T5.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T5.js + * @description HexIntegerLiteral :: 0x0 Digits + */ + +//CHECK#0 +if (0x00 !== 0) { + $ERROR('#0: 0x00 === 0'); +} + +//CHECK#1 +if (0x01 !== 1) { + $ERROR('#1: 0x01 === 1'); +} + +//CHECK#2 +if (0x010 !== 16) { + $ERROR('#2: 0x010 === 16'); +} + +//CHECK3 +if (0x0100 !== 256) { + $ERROR('3: 0x0100 === 256'); +} + +//CHECK#4 +if (0x01000 !== 4096) { + $ERROR('#4: 0x01000 === 4096'); +} + +//CHECK#5 +if (0x010000 !== 65536) { + $ERROR('#5: 0x010000 === 65536'); +} + +//CHECK#6 +if (0x0100000 !== 1048576) { + $ERROR('#6: 0x0100000 === 1048576'); +} + +//CHECK#7 +if (0x01000000 !== 16777216) { + $ERROR('#7: 0x01000000 === 16777216'); +} + +//CHECK#8 +if (0x010000000 !== 268435456) { + $ERROR('#8: 0x010000000 === 268435456'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T6.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T6.js new file mode 100644 index 000000000..659c7dfbb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T6.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T6.js + * @description HexIntegerLiteral :: 0X0 Digits + */ + +//CHECK#0 +if (0X00 !== 0) { + $ERROR('#0: 0X00 === 0'); +} + +//CHECK#1 +if (0X01 !== 1) { + $ERROR('#1: 0X01 === 1'); +} + +//CHECK#2 +if (0X010 !== 16) { + $ERROR('#2: 0X010 === 16'); +} + +//CHECK3 +if (0X0100 !== 256) { + $ERROR('3: 0X0100 === 256'); +} + +//CHECK#4 +if (0X01000 !== 4096) { + $ERROR('#4: 0X01000 === 4096'); +} + +//CHECK#5 +if (0X010000 !== 65536) { + $ERROR('#5: 0X010000 === 65536'); +} + +//CHECK#6 +if (0X0100000 !== 1048576) { + $ERROR('#6: 0X0100000 === 1048576'); +} + +//CHECK#7 +if (0X01000000 !== 16777216) { + $ERROR('#7: 0X01000000 === 16777216'); +} + +//CHECK#8 +if (0X010000000 !== 268435456) { + $ERROR('#8: 0X010000000 === 268435456'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T7.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T7.js new file mode 100644 index 000000000..7bc52989c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T7.js @@ -0,0 +1,40 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T7.js + * @description HexIntegerLiteral :: 0x one of a, b, c, d, e, f + */ + +//CHECK#a +if (0xa !== 10) { + $ERROR('#a: 0xa === 10'); +} + +//CHECK#b +if (0xb !== 11) { + $ERROR('#b: 0xb === 11'); +} + +//CHECK#c +if (0xc !== 12) { + $ERROR('#c: 0xc === 12'); +} + +//CHECK#d +if (0xd !== 13) { + $ERROR('#d: 0xd === 13'); +} + +//CHECK#e +if (0xe !== 14) { + $ERROR('#e: 0xe === 14'); +} + +//CHECK#f +if (0xf !== 15) { + $ERROR('#f: 0xf === 15'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T8.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T8.js new file mode 100644 index 000000000..1f95ab586 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A5.1_T8.js @@ -0,0 +1,40 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * DecimalLiteral :: HexIntegerLiteral + * + * @path ch07/7.8/7.8.3/S7.8.3_A5.1_T8.js + * @description HexIntegerLiteral :: 0X one of a, b, c, d, e, f + */ + +//CHECK#a +if (0Xa !== 10) { + $ERROR('#a: 0Xa === 10'); +} + +//CHECK#b +if (0Xb !== 11) { + $ERROR('#b: 0Xb === 11'); +} + +//CHECK#c +if (0Xc !== 12) { + $ERROR('#c: 0Xc === 12'); +} + +//CHECK#d +if (0Xd !== 13) { + $ERROR('#d: 0Xd === 13'); +} + +//CHECK#e +if (0Xe !== 14) { + $ERROR('#e: 0Xe === 14'); +} + +//CHECK#f +if (0Xf !== 15) { + $ERROR('#f: 0Xf === 15'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T1.js new file mode 100644 index 000000000..3be2b908f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * HexIntegerLiteral :: 0(x/X) is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A6.1_T1.js + * @description Checking if execution of "0x" passes + * @negative + */ + +//CHECK#1 +0x + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T2.js new file mode 100644 index 000000000..8b813b81f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.1_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * HexIntegerLiteral :: 0(x/X) is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A6.1_T2.js + * @description Checking if execution of "0X" passes + * @negative + */ + +//CHECK#1 +0X + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T1.js new file mode 100644 index 000000000..accd26589 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * 0xG is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A6.2_T1.js + * @description Checking if execution of "0xG" fails + * @negative + */ + +//CHECK#1 +0xG + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T2.js new file mode 100644 index 000000000..7a14fef29 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/S7.8.3_A6.2_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * 0xG is incorrect + * + * @path ch07/7.8/7.8.3/S7.8.3_A6.2_T2.js + * @description Checking if execution of "0xg" fails + * @negative + */ + +//CHECK#1 +0xg + diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/browser.js b/js/src/tests/test262/ch07/7.8/7.8.3/browser.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/browser.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.3/shell.js b/js/src/tests/test262/ch07/7.8/7.8.3/shell.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.3/shell.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-1-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-1-s.js new file mode 100644 index 000000000..f5548e4f3 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-1-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-1-s.js
+ * @description A directive preceeding an 'use strict' directive may not contain an OctalEscapeSequence
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval(' "asterisk: \\052" /* octal escape sequences forbidden in strict mode*/ ; "use strict";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-10-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-10-s.js new file mode 100644 index 000000000..c7069c0fa --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-10-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-10-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = " \\10 ";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-11-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-11-s.js new file mode 100644 index 000000000..02e5264b9 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-11-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-11-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\16";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-12-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-12-s.js new file mode 100644 index 000000000..27211ab83 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-12-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-12-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\17";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-13-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-13-s.js new file mode 100644 index 000000000..a5641d491 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-13-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-13-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\30";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-14-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-14-s.js new file mode 100644 index 000000000..11a3ceaba --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-14-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-14-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\31";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-15-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-15-s.js new file mode 100644 index 000000000..ddf59df33 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-15-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-15-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\37";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-16-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-16-s.js new file mode 100644 index 000000000..add6f1b16 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-16-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-16-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\400";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-17-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-17-s.js new file mode 100644 index 000000000..f132d927c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-17-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-17-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\411";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-18-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-18-s.js new file mode 100644 index 000000000..db679216f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-18-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-18-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\43a";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-19-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-19-s.js new file mode 100644 index 000000000..c1792cfa3 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-19-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-19-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\463";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-1gs.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-1gs.js new file mode 100644 index 000000000..4974d0b5f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-1gs.js @@ -0,0 +1,14 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-1gs.js
+ * @description Strict Mode - OctalEscapeSequence(\0110) is forbidden in strict mode
+ * @onlyStrict
+ * @negative ^((?!NotEarlyError).)*$
+ */
+"use strict";
+throw NotEarlyError;
+var _7_8_4_2 = '100abc\0110def';
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-2-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-2-s.js new file mode 100644 index 000000000..5d5e02dc3 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-2-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-2-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\1";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-20-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-20-s.js new file mode 100644 index 000000000..170cb4c5a --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-20-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-20-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\474";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-21-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-21-s.js new file mode 100644 index 000000000..1dca614fc --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-21-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-21-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\77";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-22-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-22-s.js new file mode 100644 index 000000000..dc7399147 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-22-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-22-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\777";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-23-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-23-s.js new file mode 100644 index 000000000..e8d7c1204 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-23-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-23-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\000";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-24-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-24-s.js new file mode 100644 index 000000000..e0cea8f6e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-24-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-24-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\001";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-25-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-25-s.js new file mode 100644 index 000000000..060d0cd07 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-25-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-25-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\106";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-26-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-26-s.js new file mode 100644 index 000000000..d986b4de9 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-26-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-26-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\207";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-27-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-27-s.js new file mode 100644 index 000000000..b208bdb6f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-27-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-27-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\377";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-28-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-28-s.js new file mode 100644 index 000000000..a0967eb8e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-28-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-28-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\376";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-29-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-29-s.js new file mode 100644 index 000000000..60e65af65 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-29-s.js @@ -0,0 +1,26 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-29-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\3760";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+}
+runTestCase(testcase);
\ No newline at end of file diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-3-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-3-s.js new file mode 100644 index 000000000..0885c5c74 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-3-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-3-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "a\\4";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-30-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-30-s.js new file mode 100644 index 000000000..73cbdfedc --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-30-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-30-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\' + '1";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-31-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-31-s.js new file mode 100644 index 000000000..a33c8bbc6 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-31-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-31-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\" + "1";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-32-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-32-s.js new file mode 100644 index 000000000..312e870c3 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-32-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-32-s.js
+ * @description Two OctalEscapeSequences in a String are not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\1\\1";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-33-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-33-s.js new file mode 100644 index 000000000..639313c92 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-33-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-33-s.js
+ * @description Three OctalEscapeSequences in a String are not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\1\\2\\7";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-4-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-4-s.js new file mode 100644 index 000000000..bd4e93fe6 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-4-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-4-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "z\\7";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-5-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-5-s.js new file mode 100644 index 000000000..1108364ab --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-5-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-5-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\00a";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-6-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-6-s.js new file mode 100644 index 000000000..119415796 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-6-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-6-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\01z";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-7-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-7-s.js new file mode 100644 index 000000000..254d2953e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-7-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-7-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "a\\03z";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-8-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-8-s.js new file mode 100644 index 000000000..04e3eac9b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-8-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-8-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = " \\06";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-9-s.js b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-9-s.js new file mode 100644 index 000000000..1efa2e57a --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/7.8.4-9-s.js @@ -0,0 +1,24 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.4/7.8.4-9-s.js
+ * @description An OctalEscapeSequence is not allowed in a String under Strict Mode
+ * @onlyStrict
+ */
+
+
+function testcase()
+{
+ try
+ {
+ eval('"use strict"; var x = "\\07 ";');
+ return false;
+ }
+ catch (e) {
+ return (e instanceof SyntaxError);
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.1_T1.js new file mode 100644 index 000000000..02c823418 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.1_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * StringLiteral :: "DoubleStringCharacters_opt" + * + * @path ch07/7.8/7.8.4/S7.8.4_A1.1_T1.js + * @description DoubleStringCharacter :: SourceCharacter but not double-quote " or LineTerminator + * @negative + */ + +//CHECK#1 +""" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.1_T2.js new file mode 100644 index 000000000..bedbcea86 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.1_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. + +/** + * StringLiteral :: "DoubleStringCharacters_opt" + * + * @path ch07/7.8/7.8.4/S7.8.4_A1.1_T2.js + * @description DoubleStringCharacter :: SourceCharacter but not double-quote " or LineTerminator + * @negative + */ + +//CHECK#1 +" +" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.2_T1.js new file mode 100644 index 000000000..964e5be6c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.2_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * StringLiteral :: 'SingleStringCharacters_opt' + * + * @path ch07/7.8/7.8.4/S7.8.4_A1.2_T1.js + * @description SingleStringCharacter :: SourceCharacter but not single-quote ' or LineTerminator + * @negative + */ + +//CHECK#1 +''' + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.2_T2.js new file mode 100644 index 000000000..82890f5c2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A1.2_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. + +/** + * StringLiteral :: 'SingleStringCharacters_opt' + * + * @path ch07/7.8/7.8.4/S7.8.4_A1.2_T2.js + * @description SingleStringCharacter :: SourceCharacter but not single-quote ' or LineTerminator + * @negative + */ + +//CHECK#1 +' +' + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.1_T1.js new file mode 100644 index 000000000..9a555b814 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.1_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Correct interpretation of ENGLISH ALPHABET + * + * @path ch07/7.8/7.8.4/S7.8.4_A2.1_T1.js + * @description Check ENGLISH CAPITAL ALPHABET + */ + +//CHECK#A-Z +var unicode = ["\u0041", "\u0042", "\u0043", "\u0044", "\u0045", "\u0046", "\u0047", "\u0048", "\u0049", "\u004A", "\u004B", "\u004C", "\u004D", "\u004E", "\u004F", "\u0050", "\u0051", "\u0052", "\u0053", "\u0054", "\u0055", "\u0056", "\u0057", "\u0058", "\u0059", "\u005A"]; +var character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; +for (var index = 0; index <= 25; index++) { + if (unicode[index] !== character[index]) { + $ERROR('#' + character[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.1_T2.js new file mode 100644 index 000000000..f7e8ccfa3 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.1_T2.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Correct interpretation of ENGLISH ALPHABET + * + * @path ch07/7.8/7.8.4/S7.8.4_A2.1_T2.js + * @description Check ENGLISH SMALL ALPHABET + */ + +//CHECK#a-z +var hex = ["\u0061", "\u0062", "\u0063", "\u0064", "\u0065", "\u0066", "\u0067", "\u0068", "\u0069", "\u006A", "\u006B", "\u006C", "\u006D", "\u006E", "\u006F", "\u0070", "\u0071", "\u0072", "\u0073", "\u0074", "\u0075", "\u0076", "\u0077", "\u0078", "\u0079", "\u007A"]; +var character = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; +for (var index = 0; index <= 25; index++) { + if (hex[index] !== character[index]) { + $ERROR('#' + character[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.2_T1.js new file mode 100644 index 000000000..cefe28d57 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.2_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Correct interpretation of RUSSIAN ALPHABET + * + * @path ch07/7.8/7.8.4/S7.8.4_A2.2_T1.js + * @description Check RUSSIAN CAPITAL ALPHABET + */ + +//CHECK#А-Я +var unicode = ["\u0410", "\u0411", "\u0412", "\u0413", "\u0414", "\u0415", "\u0416", "\u0417", "\u0418", "\u0419", "\u041A", "\u041B", "\u041C", "\u041D", "\u041E", "\u041F", "\u0420", "\u0421", "\u0422", "\u0423", "\u0424", "\u0425", "\u0426", "\u0427", "\u0428", "\u0429", "\u042A", "\u042B", "\u042C", "\u042D", "\u042E", "\u042F", "\u0401"]; +var character = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ъ", "Ы", "Ь", "Э", "Ю", "Я", "Ё"]; +for (var index = 0; index <= 32; index++) { + if (unicode[index] !== character[index]) { + $ERROR('#' + character[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.2_T2.js new file mode 100644 index 000000000..09fc5877b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.2_T2.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Correct interpretation of RUSSIAN ALPHABET + * + * @path ch07/7.8/7.8.4/S7.8.4_A2.2_T2.js + * @description Check RUSSIAN SMALL ALPHABET + */ + +//CHECK#а-я +var unicode = ["\u0430", "\u0431", "\u0432", "\u0433", "\u0434", "\u0435", "\u0436", "\u0437", "\u0438", "\u0439", "\u043A", "\u043B", "\u043C", "\u043D", "\u043E", "\u043F", "\u0440", "\u0441", "\u0442", "\u0443", "\u0444", "\u0445", "\u0446", "\u0447", "\u0448", "\u0449", "\u044A", "\u044B", "\u044C", "\u044D", "\u044E", "\u044F", "\u0451"]; +var character = ["а", "б", "в", "г", "д", "е", "ж", "з", "и", "й", "к", "л", "м", "н", "о", "п", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"]; +for (var index = 0; index <= 32; index++) { + if (unicode[index] !== character[index]) { + $ERROR('#' + character[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.3_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.3_T1.js new file mode 100644 index 000000000..30e6133b7 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A2.3_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Correct interpretation of DIGITS + * + * @path ch07/7.8/7.8.4/S7.8.4_A2.3_T1.js + * @description Check DIGITS + */ + +//CHECK#0-9 +var unicode = ["\u0030", "\u0031", "\u0032", "\u0033", "\u0034", "\u0035", "\u0036", "\u0037", "\u0038", "\u0039"]; +var character = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; +for (var index = 0; index <= 9; index++) { + if (unicode[index] !== character[index]) { + $ERROR('#' + character[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.1_T1.js new file mode 100644 index 000000000..f25e6538d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.1_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * StringLiteral :: "\" or '\' is not correct + * + * @path ch07/7.8/7.8.4/S7.8.4_A3.1_T1.js + * @description Checking if execution of "\" fails + * @negative + */ + +//CHECK#1 +"\" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.1_T2.js new file mode 100644 index 000000000..82cf8717b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.1_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * StringLiteral :: "\" or '\' is not correct + * + * @path ch07/7.8/7.8.4/S7.8.4_A3.1_T2.js + * @description Checking if execution of "'\'" fails + * @negative + */ + +//CHECK#1 +'\' + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.2_T1.js new file mode 100644 index 000000000..54aaf12c6 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.2_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * StringLiteral :: "\\\" or '\\\' is not correct + * + * @path ch07/7.8/7.8.4/S7.8.4_A3.2_T1.js + * @description Checking if execution of "\\\" fails + * @negative + */ + +//CHECK#1 +"\\\" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.2_T2.js new file mode 100644 index 000000000..a26421e76 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A3.2_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * StringLiteral :: "\\\" or '\\\' is not correct + * + * @path ch07/7.8/7.8.4/S7.8.4_A3.2_T2.js + * @description Checking if execution of '\\\' fails + * @negative + */ + +//CHECK#1 +'\\\' + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.1_T1.js new file mode 100644 index 000000000..9cac9a2d9 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.1_T1.js @@ -0,0 +1,40 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: SingleEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.1_T1.js + * @description SingleEscapeSequence :: one of b f n r t v + */ + +//CHECK#1 +if (String.fromCharCode(0x0008) !== "\b") { + $ERROR('#1: String.fromCharCode(0x0008) === "\\b"'); +} + +//CHECK#2 +if (String.fromCharCode(0x0009) !== "\t") { + $ERROR('#2: String.fromCharCode(0x0009) === "\\t"'); +} + +//CHECK#3 +if (String.fromCharCode(0x000A) !== "\n") { + $ERROR('#3: String.fromCharCode(0x000A) === "\\n"'); +} + +//CHECK#4 +if (String.fromCharCode(0x000B) !== "\v") { + $ERROR('#4: String.fromCharCode(0x000B) === "\\v"'); +} + +//CHECK#5 +if (String.fromCharCode(0x000C) !== "\f") { + $ERROR('#5: String.fromCharCode(0x000C) === "\\f"'); +} + +//CHECK#6 +if (String.fromCharCode(0x000D) !== "\r") { + $ERROR('#6: String.fromCharCode(0x000D) === "\\r"'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.1_T2.js new file mode 100644 index 000000000..c99f669ef --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.1_T2.js @@ -0,0 +1,35 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: SingleEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.1_T2.js + * @description SingleEscapeSequence :: one of ' " \ + */ + +//CHECK#1 +if (String.fromCharCode(0x0027) !== "\'") { + $ERROR('#1: String.fromCharCode(0x0027) === "\\\'"'); +} + +//CHECK#2 +if (String.fromCharCode(0x0022) !== '\"') { + $ERROR('#2: String.fromCharCode(0x0027) === \'\\\"\''); +} + +//CHECK#3 +if (String.fromCharCode(0x005C) !== "\\") { + $ERROR('#3: String.fromCharCode(0x005C) === "\\\"'); +} + +//CHECK#4 +if ("\'" !== "'") { + $ERROR('#4: "\'" === "\\\'"'); +} + +//CHECK#5 +if ('\"' !== '"') { + $ERROR('#5: \'\"\' === \'\\\"\''); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T1.js new file mode 100644 index 000000000..8abfdd031 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T1.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: NonEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.2_T1.js + * @description NonEscapeSequence :: ENGLISH CAPITAL ALPHABET + */ + +//CHECK#A-Z +var CharacterCode = [0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F, 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, 0x0058, 0x0059, 0x005A]; +var NonEscapeCharacter = ["\A", "\B", "\C", "\D", "\E", "\F", "\G", "\H", "\I", "\J", "\K", "\L", "\M", "\N", "\O", "\P", "\Q", "\R", "\S", "\T", "\U", "\V", "\W", "\X", "\Y", "\Z"]; +for (var index = 0; index <= 25; index++) { + if (String.fromCharCode(CharacterCode[index]) !== NonEscapeCharacter[index]) { + $ERROR('#' + NonEscapeCharacter[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T2.js new file mode 100644 index 000000000..660d2e62e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T2.js @@ -0,0 +1,115 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: NonEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.2_T2.js + * @description NonEscapeSequence :: ENGLISH CAPITAL ALPHABET + */ + +//CHECK#A-Z +if ("A" !== "\A") { + $ERROR('#A'); +} + +if ("B" !== "\B") { + $ERROR('#B'); +} + +if ("C" !== "\C") { + $ERROR('#C'); +} + +if ("D" !== "\D") { + $ERROR('#D'); +} + +if ("E" !== "\E") { + $ERROR('#E'); +} + +if ("F" !== "\F") { + $ERROR('#F'); +} + +if ("G" !== "\G") { + $ERROR('#G'); +} + +if ("H" !== "\H") { + $ERROR('#H'); +} + +if ("I" !== "\I") { + $ERROR('#I'); +} + +if ("J" !== "\J") { + $ERROR('#J'); +} + +if ("K" !== "\K") { + $ERROR('#K'); +} + +if ("L" !== "\L") { + $ERROR('#L'); +} + +if ("M" !== "\M") { + $ERROR('#M'); +} + +if ("N" !== "\N") { + $ERROR('#N'); +} + +if ("O" !== "\O") { + $ERROR('#O'); +} + +if ("P" !== "\P") { + $ERROR('#P'); +} + +if ("Q" !== "\Q") { + $ERROR('#Q'); +} + +if ("R" !== "\R") { + $ERROR('#R'); +} + +if ("S" !== "\S") { + $ERROR('#S'); +} + +if ("T" !== "\T") { + $ERROR('#T'); +} + +if ("U" !== "\U") { + $ERROR('#U'); +} + +if ("V" !== "\V") { + $ERROR('#V'); +} + +if ("W" !== "\W") { + $ERROR('#W'); +} + +if ("X" !== "\X") { + $ERROR('#X'); +} + +if ("Y" !== "\Y") { + $ERROR('#Y'); +} + +if ("Z" !== "\Z") { + $ERROR('#Z'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T3.js new file mode 100644 index 000000000..39194063a --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T3.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: NonEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.2_T3.js + * @description NonEscapeSequence :: ENGLISH SMALL ALPHABET + */ + +//CHECK#a-z without b, f, n, r, t, v, x, u +var CharacterCode = [0x0061, 0x0063, 0x0064, 0x0065, 0x0067, 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006F, 0x0070, 0x0071, 0x0073, 0x0077, 0x0079, 0x007A]; +var NonEscapeCharacter = ["\a", "\c", "\d", "\e", "\g", "\h", "\i", "\j", "\k", "\l", "\m", "\o", "\p", "\q", "\s", "\w", "\y", "\z"]; +for (var index = 0; index <= 17; index++) { + if (String.fromCharCode(CharacterCode[index]) !== NonEscapeCharacter[index]) { + $ERROR('#' + NonEscapeCharacter[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T4.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T4.js new file mode 100644 index 000000000..19e61c5e1 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T4.js @@ -0,0 +1,86 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: NonEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.2_T4.js + * @description NonEscapeSequence :: ENGLISH SMALL ALPHABET + */ + +//CHECK#a-z without b, f, n, r, t, v, x, u + +if ("a" !== "\a") { + $ERROR('#a'); +} + +if ("c" !== "\c") { + $ERROR('#c'); +} + +if ("d" !== "\d") { + $ERROR('#d'); +} + +if ("e" !== "\e") { + $ERROR('#e'); +} + +if ("g" !== "\g") { + $ERROR('#g'); +} + +if ("h" !== "\h") { + $ERROR('#h'); +} + +if ("i" !== "\i") { + $ERROR('#i'); +} + +if ("j" !== "\j") { + $ERROR('#j'); +} + +if ("k" !== "\k") { + $ERROR('#k'); +} + +if ("l" !== "\l") { + $ERROR('#l'); +} + +if ("m" !== "\m") { + $ERROR('#m'); +} + + +if ("o" !== "\o") { + $ERROR('#o'); +} + +if ("p" !== "\p") { + $ERROR('#p'); +} + +if ("q" !== "\q") { + $ERROR('#q'); +} + +if ("s" !== "\s") { + $ERROR('#s'); +} + +if ("w" !== "\w") { + $ERROR('#w'); +} + +if ("y" !== "\y") { + $ERROR('#y'); +} + +if ("z" !== "\z") { + $ERROR('#z'); +} + + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T5.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T5.js new file mode 100644 index 000000000..57c1b8efd --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T5.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: NonEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.2_T5.js + * @description NonEscapeSequence :: RUSSIAN CAPITAL ALPHABET + */ + +//CHECK#А-Я +var CharacterCode = [0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, 0x0401]; +var NonEscapeCharacter = ["\А", "\Б", "\В", "\Г", "\Д", "\Е", "\Ж", "\З", "\И", "\Й", "\К", "\Л", "\М", "\Н", "\О", "\П", "\Р", "\С", "\Т", "\У", "\Ф", "\Х", "\Ц", "\Ч", "\Ш", "\Щ", "\Ъ", "\Ы", "\Ь", "\Э", "\Ю", "\Я", "\Ё"]; +for (var index = 0; index <= 32; index++) { + if (String.fromCharCode(CharacterCode[index]) !== NonEscapeCharacter[index]) { + $ERROR('#' + NonEscapeCharacter[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T6.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T6.js new file mode 100644 index 000000000..86e7ac2ca --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T6.js @@ -0,0 +1,144 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: NonEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.2_T6.js + * @description NonEscapeSequence :: RUSSIAN CAPITAL ALPHABET + */ + +//CHECK#А-Я + +if ("А" !== "\А") { + $ERROR('#А'); +} + +if ("Б" !== "\Б") { + $ERROR('#Б'); +} + +if ("В" !== "\В") { + $ERROR('#В'); +} + +if ("Г" !== "\Г") { + $ERROR('#Г'); +} + +if ("Д" !== "\Д") { + $ERROR('#Д'); +} + +if ("Е" !== "\Е") { + $ERROR('#Е'); +} + +if ("Ж" !== "\Ж") { + $ERROR('#Ж'); +} + +if ("З" !== "\З") { + $ERROR('#З'); +} + +if ("И" !== "\И") { + $ERROR('#И'); +} + +if ("Й" !== "\Й") { + $ERROR('#Й'); +} + +if ("К" !== "\К") { + $ERROR('#К'); +} + +if ("Л" !== "\Л") { + $ERROR('#Л'); +} + +if ("М" !== "\М") { + $ERROR('#М'); +} + +if ("Н" !== "\Н") { + $ERROR('#Н'); +} + +if ("О" !== "\О") { + $ERROR('#О'); +} + +if ("П" !== "\П") { + $ERROR('#П'); +} + +if ("Р" !== "\Р") { + $ERROR('#Р'); +} + +if ("С" !== "\С") { + $ERROR('#С'); +} + +if ("Т" !== "\Т") { + $ERROR('#Т'); +} + +if ("У" !== "\У") { + $ERROR('#У'); +} + +if ("Ф" !== "\Ф") { + $ERROR('#Ф'); +} + +if ("Х" !== "\Х") { + $ERROR('#Х'); +} + +if ("Ц" !== "\Ц") { + $ERROR('#Ц'); +} + +if ("Ч" !== "\Ч") { + $ERROR('#Ч'); +} + +if ("Ш" !== "\Ш") { + $ERROR('#Ш'); +} + +if ("Щ" !== "\Щ") { + $ERROR('#Щ'); +} + +if ("Ъ" !== "\Ъ") { + $ERROR('#Ъ'); +} + +if ("Ы" !== "\Ы") { + $ERROR('#Ы'); +} + +if ("Ь" !== "\Ь") { + $ERROR('#Ь'); +} + +if ("Э" !== "\Э") { + $ERROR('#Э'); +} + +if ("Ю" !== "\Ю") { + $ERROR('#Ю'); +} + +if ("Я" !== "\Я") { + $ERROR('#Я'); +} + +if ("Ё" !== "\Ё") { + $ERROR('#Ё'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T7.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T7.js new file mode 100644 index 000000000..78915dce4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T7.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: NonEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.2_T7.js + * @description NonEscapeSequence :: RUSSIAN SMALL ALPHABET + */ + +//CHECK#а-я +var CharacterCode = [0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F, 0x0451]; +var NonEscapeCharacter = ["\а", "\б", "\в", "\г", "\д", "\е", "\ж", "\з", "\и", "\й", "\к", "\л", "\м", "\н", "\о", "\п", "\р", "\с", "\т", "\у", "\ф", "\х", "\ц", "\ч", "\ш", "\щ", "\ъ", "\ы", "\ь", "\э", "\ю", "\я", "\ё"]; +for (var index = 0; index <= 32; index++) { + if (String.fromCharCode(CharacterCode[index]) !== NonEscapeCharacter[index]) { + $ERROR('#' + NonEscapeCharacter[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T8.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T8.js new file mode 100644 index 000000000..3ef3f843e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.2_T8.js @@ -0,0 +1,144 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * CharacterEscapeSequnce :: NonEscapeSequence + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.2_T8.js + * @description NonEscapeSequence :: RUSSIAN SMALL ALPHABET + */ + +//CHECK#а-я + +if ("а" !== "\а") { + $ERROR('#а'); +} + +if ("б" !== "\б") { + $ERROR('#б'); +} + +if ("в" !== "\в") { + $ERROR('#в'); +} + +if ("г" !== "\г") { + $ERROR('#г'); +} + +if ("д" !== "\д") { + $ERROR('#д'); +} + +if ("е" !== "\е") { + $ERROR('#е'); +} + +if ("ж" !== "\ж") { + $ERROR('#ж'); +} + +if ("з" !== "\з") { + $ERROR('#з'); +} + +if ("и" !== "\и") { + $ERROR('#и'); +} + +if ("й" !== "\й") { + $ERROR('#й'); +} + +if ("к" !== "\к") { + $ERROR('#к'); +} + +if ("л" !== "\л") { + $ERROR('#л'); +} + +if ("м" !== "\м") { + $ERROR('#м'); +} + +if ("н" !== "\н") { + $ERROR('#н'); +} + +if ("о" !== "\о") { + $ERROR('#о'); +} + +if ("п" !== "\п") { + $ERROR('#п'); +} + +if ("р" !== "\р") { + $ERROR('#р'); +} + +if ("с" !== "\с") { + $ERROR('#с'); +} + +if ("т" !== "\т") { + $ERROR('#т'); +} + +if ("у" !== "\у") { + $ERROR('#у'); +} + +if ("ф" !== "\ф") { + $ERROR('#ф'); +} + +if ("х" !== "\х") { + $ERROR('#х'); +} + +if ("ц" !== "\ц") { + $ERROR('#ц'); +} + +if ("ч" !== "\ч") { + $ERROR('#ч'); +} + +if ("ш" !== "\ш") { + $ERROR('#ш'); +} + +if ("щ" !== "\щ") { + $ERROR('#щ'); +} + +if ("ъ" !== "\ъ") { + $ERROR('#ъ'); +} + +if ("ы" !== "\ы") { + $ERROR('#ы'); +} + +if ("ь" !== "\ь") { + $ERROR('#ь'); +} + +if ("э" !== "\э") { + $ERROR('#э'); +} + +if ("ю" !== "\ю") { + $ERROR('#ю'); +} + +if ("я" !== "\я") { + $ERROR('#я'); +} + +if ("ё" !== "\ё") { + $ERROR('#ё'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.3_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.3_T1.js new file mode 100644 index 000000000..96c823ee8 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.3_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. + +/** + * NonEscapeSequence is not EscapeCharacter + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.3_T1.js + * @description EscapeCharacter :: DecimalDigits :: 1 + * @onlyStrict + * @negative + */ + +"use strict"; + +//CHECK#1 +"\1" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.3_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.3_T2.js new file mode 100644 index 000000000..b7f743e49 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.3_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. + +/** + * NonEscapeSequence is not EscapeCharacter + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.3_T2.js + * @description EscapeCharacter :: DecimalDigits :: 7 + * @onlyStrict + * @negative + */ + +"use strict"; + +//CHECK#1 +"\7" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.3_T7.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.3_T7.js new file mode 100644 index 000000000..063930342 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A4.3_T7.js @@ -0,0 +1,36 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * NonEscapeSequence is not EscapeCharacter + * + * @path ch07/7.8/7.8.4/S7.8.4_A4.3_T7.js + * @description EscapeCharacter :: SingleEscapeCharacter :: one of b f n r t v + */ + +//CHECK#bfnrtv +if ("b" === "\b") { + $ERROR('#b'); +} + +if ("f" === "\f") { + $ERROR('#f'); +} + +if ("n" === "\n") { + $ERROR('#n'); +} + +if ("r" === "\r") { + $ERROR('#r'); +} + +if ("t" === "\t") { + $ERROR('#t'); +} + +if ("v" === "\v") { + $ERROR('#v'); +} + + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A5.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A5.1_T1.js new file mode 100644 index 000000000..aa0acecb6 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A5.1_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. + +/** + * EscapeSequence :: 0 + * + * @path ch07/7.8/7.8.4/S7.8.4_A5.1_T1.js + * @description String.fromCharCode(0x0000) + */ + +//CHECK#1 +if (String.fromCharCode(0x0000) !== "\0") { + $ERROR('#1: String.fromCharCode(0x0000) === "\\0"'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A5.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A5.1_T2.js new file mode 100644 index 000000000..06830f080 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A5.1_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. + +/** + * EscapeSequence :: 0 + * + * @path ch07/7.8/7.8.4/S7.8.4_A5.1_T2.js + * @description "\u0000" + */ + +//CHECK#1 +if ("\u0000" !== "\0") { + $ERROR('#1: "\\u0000" === "\\0"'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A5.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A5.1_T3.js new file mode 100644 index 000000000..f7a1de6ac --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A5.1_T3.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. + +/** + * EscapeSequence :: 0 + * + * @path ch07/7.8/7.8.4/S7.8.4_A5.1_T3.js + * @description "\x00" + */ + +//CHECK#1 +if ("\x00" !== "\0") { + $ERROR('#1: "\\x00" === "\\0"'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.1_T1.js new file mode 100644 index 000000000..ce8f5dae8 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.1_T1.js @@ -0,0 +1,90 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit + * + * @path ch07/7.8/7.8.4/S7.8.4_A6.1_T1.js + * @description HexEscapeSequence :: HexDigit + */ + +//CHECK#0 +if ("\x00" !== String.fromCharCode("0")) { + $ERROR('#0: "\\x00" === String.fromCharCode("0")'); +} + +//CHECK#1 +if ("\x01" !== String.fromCharCode("1")) { + $ERROR('#1: "\\x01" === String.fromCharCode("1")'); +} + +//CHECK#2 +if ("\x02" !== String.fromCharCode("2")) { + $ERROR('#2: "\\x02" === String.fromCharCode("2")'); +} + +//CHECK#3 +if ("\x03" !== String.fromCharCode("3")) { + $ERROR('#3: "\\x03" === String.fromCharCode("3")'); +} + +//CHECK#4 +if ("\x04" !== String.fromCharCode("4")) { + $ERROR('#4: "\\x04" === String.fromCharCode("4")'); +} + +//CHECK#5 +if ("\x05" !== String.fromCharCode("5")) { + $ERROR('#5: "\\x05" === String.fromCharCode("5")'); +} + +//CHECK#6 +if ("\x06" !== String.fromCharCode("6")) { + $ERROR('#6: "\\x06" === String.fromCharCode("6")'); +} + +//CHECK#7 +if ("\x07" !== String.fromCharCode("7")) { + $ERROR('#7: "\\x07" === String.fromCharCode("7")'); +} + +//CHECK#8 +if ("\x08" !== String.fromCharCode("8")) { + $ERROR('#8: "\\x08" === String.fromCharCode("8")'); +} + +//CHECK#9 +if ("\x09" !== String.fromCharCode("9")) { + $ERROR('#9: "\\x09" === String.fromCharCode("9")'); +} + +//CHECK#A +if ("\x0A" !== String.fromCharCode("10")) { + $ERROR('#A: "\\x0A" === String.fromCharCode("10")'); +} + +//CHECK#B +if ("\x0B" !== String.fromCharCode("11")) { + $ERROR('#B: "\\x0B" === String.fromCharCode("11")'); +} + +//CHECK#C +if ("\x0C" !== String.fromCharCode("12")) { + $ERROR('#C: "\\x0C" === String.fromCharCode("12")'); +} + +//CHECK#D +if ("\x0D" !== String.fromCharCode("13")) { + $ERROR('#D: "\\x0D" === String.fromCharCode("13")'); +} + +//CHECK#E +if ("\x0E" !== String.fromCharCode("14")) { + $ERROR('#E: "\\x0E" === String.fromCharCode("14")'); +} + +//CHECK#F +if ("\x0F" !== String.fromCharCode("15")) { + $ERROR('#F: "\\x0F" === String.fromCharCode("15")'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.1_T2.js new file mode 100644 index 000000000..64cdc0ebe --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.1_T2.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit + * + * @path ch07/7.8/7.8.4/S7.8.4_A6.1_T2.js + * @description HexEscapeSequence :: ENGLISH CAPITAL ALPHABET + */ + +//CHECK#A-Z +var hex = ["\x41", "\x42", "\x43", "\x44", "\x45", "\x46", "\x47", "\x48", "\x49", "\x4A", "\x4B", "\x4C", "\x4D", "\x4E", "\x4F", "\x50", "\x51", "\x52", "\x53", "\x54", "\x55", "\x56", "\x57", "\x58", "\x59", "\x5A"]; +var character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; +for (var index = 0; index <= 25; index++) { + if (hex[index] !== character[index]) { + $ERROR('#' + character[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.1_T3.js new file mode 100644 index 000000000..c3ef6e4d3 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.1_T3.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit + * + * @path ch07/7.8/7.8.4/S7.8.4_A6.1_T3.js + * @description HexEscapeSequence :: ENGLISH SMALL ALPHABET + */ + +//CHECK#a-z +var hex = ["\x61", "\x62", "\x63", "\x64", "\x65", "\x66", "\x67", "\x68", "\x69", "\x6A", "\x6B", "\x6C", "\x6D", "\x6E", "\x6F", "\x70", "\x71", "\x72", "\x73", "\x74", "\x75", "\x76", "\x77", "\x78", "\x79", "\x7A"]; +var character = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; +for (var index = 0; index <= 25; index++) { + if (hex[index] !== character[index]) { + $ERROR('#' + character[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.3_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.3_T1.js new file mode 100644 index 000000000..4611ba25a --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.3_T1.js @@ -0,0 +1,85 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * \x HexDigit HexDigit SingleStringCharacter + * + * @path ch07/7.8/7.8.4/S7.8.4_A6.3_T1.js + * @description Check similar to ('\x01F' === String.fromCharCode('1') + 'F') + */ + +//CHECK#1 +if ('\x01F' !== String.fromCharCode('1') + 'F') { + $ERROR("#1: '\x01F' === String.fromCharCode('1') + 'F'"); +} + +//CHECK#2 +if ('\x02E' !== String.fromCharCode('2') + 'E') { + $ERROR("#2: '\x02E' === String.fromCharCode('2') + 'E'"); +} + +//CHECK#3 +if ('\x03D' !== String.fromCharCode('3') + 'D') { + $ERROR("#3: '\x03D' === String.fromCharCode('3') + 'D'"); +} + +//CHECK#4 +if ('\x04C' !== String.fromCharCode('4') + 'C') { + $ERROR("#4: '\x04C' === String.fromCharCode('4') + 'C'"); +} + +//CHECK#5 +if ('\x05B' !== String.fromCharCode('5') + 'B') { + $ERROR("#5: '\x05B' === String.fromCharCode('5') + 'B'"); +} + +//CHECK#6 +if ('\x06A' !== String.fromCharCode('6') + 'A') { + $ERROR("#6: '\x06A' === String.fromCharCode('6') + 'A'"); +} + +//CHECK#7 +if ('\x079' !== String.fromCharCode('7') + '9') { + $ERROR("#7: '\x079' === String.fromCharCode('7') + '9'"); +} + +//CHECK#8 +if ('\x088' !== String.fromCharCode('8') + '8') { + $ERROR("#8: '\x088' === String.fromCharCode('8') + '8'"); +} + +//CHECK#9 +if ('\x097' !== String.fromCharCode('9') + '7') { + $ERROR("#9: '\x097' === String.fromCharCode('9') + '7'"); +} + +//CHECK#A +if ('\x0A6' !== String.fromCharCode('10') + '6') { + $ERROR("#A: '\x0A6' === String.fromCharCode('10') + '6'"); +} + +//CHECK#B +if ('\x0B5' !== String.fromCharCode('11') + '5') { + $ERROR("#B: '\x0B5' === String.fromCharCode('11') + '5'"); +} + +//CHECK#C +if ('\x0C4' !== String.fromCharCode('12') + '4') { + $ERROR("#C: '\x0C4' === String.fromCharCode('12') + '4'"); +} + +//CHECK#D +if ('\x0D3' !== String.fromCharCode('13') + '3') { + $ERROR("#D: '\x0D3' === String.fromCharCode('13') + '3'"); +} + +//CHECK#E +if ('\x0E2' !== String.fromCharCode('14') + '2') { + $ERROR("#E: '\x0E2' === String.fromCharCode('14') + '2'"); +} + +//CHECK#F +if ('\x0F1' !== String.fromCharCode('15') + '1') { + $ERROR("#F: '\x0F1' === String.fromCharCode('15') + '1'"); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T1.js new file mode 100644 index 000000000..512de11f2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T1.js @@ -0,0 +1,90 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit HexDigit + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.1_T1.js + * @description Check similar to ("\u0000" === String.fromCharCode("0")) + */ + +//CHECK#0 +if ("\u0000" !== String.fromCharCode("0")) { + $ERROR('#0: "\\u0000" === String.fromCharCode("0")'); +} + +//CHECK#1 +if ("\u0001" !== String.fromCharCode("1")) { + $ERROR('#1: "\\u0001" === String.fromCharCode("1")'); +} + +//CHECK#2 +if ("\u0002" !== String.fromCharCode("2")) { + $ERROR('#2: "\\u0002" === String.fromCharCode("2")'); +} + +//CHECK#3 +if ("\u0003" !== String.fromCharCode("3")) { + $ERROR('#3: "\\u0003" === String.fromCharCode("3")'); +} + +//CHECK#4 +if ("\u0004" !== String.fromCharCode("4")) { + $ERROR('#4: "\\u0004" === String.fromCharCode("4")'); +} + +//CHECK#5 +if ("\u0005" !== String.fromCharCode("5")) { + $ERROR('#5: "\\u0005" === String.fromCharCode("5")'); +} + +//CHECK#6 +if ("\u0006" !== String.fromCharCode("6")) { + $ERROR('#6: "\\u0006" === String.fromCharCode("6")'); +} + +//CHECK#7 +if ("\u0007" !== String.fromCharCode("7")) { + $ERROR('#7: "\\u0007" === String.fromCharCode("7")'); +} + +//CHECK#8 +if ("\u0008" !== String.fromCharCode("8")) { + $ERROR('#8: "\\u0008" === String.fromCharCode("8")'); +} + +//CHECK#9 +if ("\u0009" !== String.fromCharCode("9")) { + $ERROR('#9: "\\u0009" === String.fromCharCode("9")'); +} + +//CHECK#A +if ("\u000A" !== String.fromCharCode("10")) { + $ERROR('#A: "\\u000A" === String.fromCharCode("10")'); +} + +//CHECK#B +if ("\u000B" !== String.fromCharCode("11")) { + $ERROR('#B: "\\u000B" === String.fromCharCode("11")'); +} + +//CHECK#C +if ("\u000C" !== String.fromCharCode("12")) { + $ERROR('#C: "\\u000C" === String.fromCharCode("12")'); +} + +//CHECK#D +if ("\u000D" !== String.fromCharCode("13")) { + $ERROR('#D: "\\u000D" === String.fromCharCode("13")'); +} + +//CHECK#E +if ("\u000E" !== String.fromCharCode("14")) { + $ERROR('#E: "\\u000E" === String.fromCharCode("14")'); +} + +//CHECK#F +if ("\u000F" !== String.fromCharCode("15")) { + $ERROR('#F: "\\u000F" === String.fromCharCode("15")'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T2.js new file mode 100644 index 000000000..32c6c3455 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T2.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit HexDigit + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.1_T2.js + * @description UnicodeEscapeSequence :: ENGLISH CAPITAL ALPHABET + */ + +//CHECK#A-Z +var unicode = ["\u0041", "\u0042", "\u0043", "\u0044", "\u0045", "\u0046", "\u0047", "\u0048", "\u0049", "\u004A", "\u004B", "\u004C", "\u004D", "\u004E", "\u004F", "\u0050", "\u0051", "\u0052", "\u0053", "\u0054", "\u0055", "\u0056", "\u0057", "\u0058", "\u0059", "\u005A"]; +var character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; +for (var index = 0; index <= 25; index++) { + if (unicode[index] !== character[index]) { + $ERROR('#' + character[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T3.js new file mode 100644 index 000000000..7bf3ef85c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T3.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit HexDigit + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.1_T3.js + * @description UnicodeEscapeSequence :: ENGLISH SMALL ALPHABET + */ + +//CHECK#a-z +var unicode = ["\u0061", "\u0062", "\u0063", "\u0064", "\u0065", "\u0066", "\u0067", "\u0068", "\u0069", "\u006A", "\u006B", "\u006C", "\u006D", "\u006E", "\u006F", "\u0070", "\u0071", "\u0072", "\u0073", "\u0074", "\u0075", "\u0076", "\u0077", "\u0078", "\u0079", "\u007A"]; +var character = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; +for (var index = 0; index <= 25; index++) { + if (unicode[index] !== character[index]) { + $ERROR('#' + character[index] + ' '); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T4.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T4.js new file mode 100644 index 000000000..11b4f5620 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.1_T4.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit HexDigit + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.1_T4.js + * @description UnicodeEscapeSequence :: u000G is incorrect + * @negative + */ + +//CHECK# +"\u000G" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T1.js new file mode 100644 index 000000000..6c3cff0dd --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.2_T1.js + * @description :: HexDigit :: 1 + * @negative + */ + +//CHECK#1 +"\u1" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T2.js new file mode 100644 index 000000000..c1918f414 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.2_T2.js + * @description :: HexDigit :: A + * @negative + */ + +//CHECK#1 +"\uA" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T3.js new file mode 100644 index 000000000..b1eee5923 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T3.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.2_T3.js + * @description :: HexDigit :: 1 + * @negative + */ + +//CHECK#1 +"\u11" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T4.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T4.js new file mode 100644 index 000000000..6fe1c8afe --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T4.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.2_T4.js + * @description :: HexDigit :: A + * @negative + */ + +//CHECK#1 +"\uAA" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T5.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T5.js new file mode 100644 index 000000000..f047e5337 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T5.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.2_T5.js + * @description :: HexDigit :: 1 + * @negative + */ + +//CHECK#1 +"\u111" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T6.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T6.js new file mode 100644 index 000000000..5d28d4a5e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.2_T6.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * UnicodeEscapeSequence :: u HexDigit (one, two or three time) is incorrect + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.2_T6.js + * @description :: HexDigit :: A + * @negative + */ + +//CHECK#1 +"\uAAA" + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.3_T1.js b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.3_T1.js new file mode 100644 index 000000000..baaeaae6f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A7.3_T1.js @@ -0,0 +1,85 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * \u HexDigit HexDigit HexDigit HexDigit DoubleStringCharacter + * + * @path ch07/7.8/7.8.4/S7.8.4_A7.3_T1.js + * @description Check similar to ("\u0001F" === String.fromCharCode("1") + "F") + */ + +//CHECK#1 +if ("\u0001F" !== String.fromCharCode("1") + "F") { + $ERROR('#1: "\\u0001F" === String.fromCharCode("1") + "F"'); +} + +//CHECK#2 +if ("\u0002E" !== String.fromCharCode("2") + "E") { + $ERROR('#2: "\\u0002E" === String.fromCharCode("2") + "E"'); +} + +//CHECK#3 +if ("\u0003D" !== String.fromCharCode("3") + "D") { + $ERROR('#3: "\\u0003D" === String.fromCharCode("3") + "D"'); +} + +//CHECK#4 +if ("\u0004C" !== String.fromCharCode("4") + "C") { + $ERROR('#4: "\\u0004C" === String.fromCharCode("4") + "C"'); +} + +//CHECK#5 +if ("\u0005B" !== String.fromCharCode("5") + "B") { + $ERROR('#5: "\\u0005B" === String.fromCharCode("5") + "B"'); +} + +//CHECK#6 +if ("\u0006A" !== String.fromCharCode("6") + "A") { + $ERROR('#6: "\\u0006A" === String.fromCharCode("6") + "A"'); +} + +//CHECK#7 +if ("\u00079" !== String.fromCharCode("7") + "9") { + $ERROR('#7: "\\u00079" === String.fromCharCode("7") + "9"'); +} + +//CHECK#8 +if ("\u00088" !== String.fromCharCode("8") + "8") { + $ERROR('#8: "\\u00088" === String.fromCharCode("8") + "8"'); +} + +//CHECK#9 +if ("\u00097" !== String.fromCharCode("9") + "7") { + $ERROR('#9: "\\u00097" === String.fromCharCode("9") + "7"'); +} + +//CHECK#A +if ("\u000A6" !== String.fromCharCode("10") + "6") { + $ERROR('#A: "\\u000A6" === String.fromCharCode("10") + "6"'); +} + +//CHECK#B +if ("\u000B5" !== String.fromCharCode("11") + "5") { + $ERROR('#B: "\\u000B5" === String.fromCharCode("11") + "5"'); +} + +//CHECK#C +if ("\u000C4" !== String.fromCharCode("12") + "4") { + $ERROR('#C: "\\u000C4" === String.fromCharCode("12") + "4"'); +} + +//CHECK#D +if ("\u000D3" !== String.fromCharCode("13") + "3") { + $ERROR('#D: "\\u000D3" === String.fromCharCode("13") + "3"'); +} + +//CHECK#E +if ("\u000E2" !== String.fromCharCode("14") + "2") { + $ERROR('#E: "\\u000E2" === String.fromCharCode("14") + "2"'); +} + +//CHECK#F +if ("\u000F1" !== String.fromCharCode("15") + "1") { + $ERROR('#F: "\\u000F1" === String.fromCharCode("15") + "1"'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/browser.js b/js/src/tests/test262/ch07/7.8/7.8.4/browser.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/browser.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.4/shell.js b/js/src/tests/test262/ch07/7.8/7.8.4/shell.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.4/shell.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/7.8.5-1.js b/js/src/tests/test262/ch07/7.8/7.8.5/7.8.5-1.js new file mode 100644 index 000000000..a8fe6e29f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/7.8.5-1.js @@ -0,0 +1,20 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved. +/// Ecma International makes this code available under the terms and conditions set +/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +/// "Use Terms"). Any redistribution of this code must retain the above +/// copyright and this notice and otherwise comply with the Use Terms.
+/**
+ * @path ch07/7.8/7.8.5/7.8.5-1.js
+ * @description Literal RegExp Objects - SyntaxError exception is thrown if the RegularExpressionNonTerminator position of a RegularExpressionBackslashSequence is a LineTerminator.
+ */
+
+
+function testcase() {
+ try {
+ eval("var regExp = /\\\rn/;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/7.8.5-1gs.js b/js/src/tests/test262/ch07/7.8/7.8.5/7.8.5-1gs.js new file mode 100644 index 000000000..4b22a6193 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/7.8.5-1gs.js @@ -0,0 +1,15 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+
+/**
+ * @path ch07/7.8/7.8.5/7.8.5-1gs.js
+ * @description Empty literal RegExp should result in a SyntaxError
+ * @negative ^((?!NotEarlyError).)*$
+ */
+
+throw NotEarlyError;
+var re = //;
+
diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/7.8.5-2gs.js b/js/src/tests/test262/ch07/7.8/7.8.5/7.8.5-2gs.js new file mode 100644 index 000000000..b67638b03 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/7.8.5-2gs.js @@ -0,0 +1,13 @@ +/// Copyright (c) 2012 Ecma International. All rights reserved.
+/// Ecma International makes this code available under the terms and conditions set
+/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+/// "Use Terms"). Any redistribution of this code must retain the above
+/// copyright and this notice and otherwise comply with the Use Terms.
+
+/**
+ * @path ch07/7.8/7.8.5/7.8.5-2gs.js
+ * @description Empty dynamic RegExp should not result in a SyntaxError
+ */
+
+var re = new RegExp("");
+
diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.1_T1.js new file mode 100644 index 000000000..638177170 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.1_T1.js @@ -0,0 +1,36 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: NonTerminator but not * or \ or /, + * RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.1_T1.js + * @description Without eval + */ + +//CHECK#1 +if (/1/.source !== "1") { + $ERROR('#1: /1/'); +} + +//CHECK#2 +if (/a/.source !== "a") { + $ERROR('#2: /a/'); +} + +//CHECK#3 +if (/;/.source !== ";") { + $ERROR('#3: /;/'); +} + +//CHECK#4 +if (/ /.source !== " ") { + $ERROR('#4: / /'); +} + +//CHECK#5 +if (/\u0041/.source !== "\\u0041") { + $ERROR('#5: /\\u0041/'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.1_T2.js new file mode 100644 index 000000000..e46d2e24d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.1_T2.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: NonTerminator but not * or \ or /, + * RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.1_T2.js + * @description Complex test with eval, using syntax pattern + */ + +//CHECK +var errorCount = 0; +var count = 0; +var hex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; +for (var i1 = 0; i1 < 16; i1++) { + for (var i2 = 0; i2 < 16; i2++) { + for (var i3 = 0; i3 < 16; i3++) { + for (var i4 = 0; i4 < 16; i4++) { + try { + var uu = hex[i1] + hex[i2] + hex[i3] + hex[i4]; + var Elimination = + ((uu === "002A") || (uu === "002F") || (uu === "005C") || (uu === "002B") || + (uu === "003F") || (uu === "0028") || (uu === "0029") || + (uu === "005B") || (uu === "005D") || (uu === "007B") || (uu === "007D")); + /* + * \u002A / \u002F \ \u005C + \u002B + ? \u003F ( \u0028 ) \u0029 + [ \u005B ] \u005D { \u007B } \u007D + */ + var LineTerminator = ((uu === "000A") || (uu === "000D") || (uu === "2028") || (uu === "2029")); + if ((Elimination || LineTerminator ) === false) { + var xx = String.fromCharCode("0x" + uu); + var pattern = eval("/" + xx + "/"); + if (pattern.source !== xx) { + $ERROR('#' + uu + ' '); + errorCount++; + } + } else { + count--; + } + } catch (e) { + $ERROR('#' + uu + ' '); + errorCount++; + } + count++; + } + } + } +} + +if (errorCount > 0) { + $ERROR('Total error: ' + errorCount + ' bad Regular Expression First Char in ' + count); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T1.js new file mode 100644 index 000000000..d7013d049 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: * or \ or / or [empty] is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.2_T1.js + * @description * + * @negative + */ + +//CHECK#1 +/*/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js new file mode 100644 index 000000000..b050d8c53 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: * or \ or / or [empty] is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js + * @description \ + * @negative + */ + +//CHECK#1 +/\/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T3.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T3.js new file mode 100644 index 000000000..abd943bac --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T3.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. + +/** + * RegularExpressionFirstChar :: * or \ or / or [empty] is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.2_T3.js + * @description / + * @negative + */ + +//CHECK#1 +/// +.source; + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T4.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T4.js new file mode 100644 index 000000000..6d341f991 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.2_T4.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. + +/** + * RegularExpressionFirstChar :: * or \ or / or [empty] is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.2_T4.js + * @description [empty] + * @negative + */ + +//CHECK#1 +// +.source; + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T1.js new file mode 100644 index 000000000..4fdba3e4c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_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. + +/** + * RegularExpressionFirstChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T1.js + * @description Line Feed, without eval + * @negative + */ + +//CHECK#1 +/ +/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T2.js new file mode 100644 index 000000000..a2ac51235 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T2.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T2.js + * @description Line Feed, with eval + */ + +//CHECK#1 +try { + eval("/\u000A/").source; + $ERROR('#1.1: RegularExpressionFirstChar :: Line Feed is incorrect. Actual: ' + (eval("/\u000A/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionFirstChar :: Line Feed is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T3.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T3.js new file mode 100644 index 000000000..95d7ebcd6 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T3.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. + +/** + * RegularExpressionFirstChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T3.js + * @description Carriage Return, without eval + * @negative + */ + +//CHECK#1 +/ +/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T4.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T4.js new file mode 100644 index 000000000..638eecf69 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T4.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T4.js + * @description Carriage Return, with eval + */ + +//CHECK#1 +try { + eval("/\u000D/").source; + $ERROR('#1.1: RegularExpressionFirstChar :: Carriage Return is incorrect. Actual: ' + (eval("/\u000D/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionFirstChar :: Carriage Return is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T5.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T5.js new file mode 100644 index 000000000..c621df543 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T5.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T5.js + * @description Line separator, with eval + */ + +//CHECK#1 +try { + eval("/\u2028/").source; + $ERROR('#1.1: RegularExpressionFirstChar :: Line separator is incorrect. Actual: ' + (eval("/\u2028/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionFirstChar :: Line separator is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T6.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T6.js new file mode 100644 index 000000000..1ad88db22 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.3_T6.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T6.js + * @description Paragraph separator, with eval + */ + +//CHECK#1 +try { + eval("/\u2029/").source; + $ERROR('#1.1: RegularExpressionFirstChar :: Paragraph separator is incorrect. Actual: ' + (eval("/\u2029/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionFirstChar :: Paragraph separator is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.4_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.4_T1.js new file mode 100644 index 000000000..0c87e0b3d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.4_T1.js @@ -0,0 +1,31 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: BackslashSequence :: \NonTerminator, + * RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.4_T1.js + * @description Check similar to (/\1/.source === "\\1") + */ + +//CHECK#1 +if (/\1/.source !== "\\1") { + $ERROR('#1: /\\1/'); +} + +//CHECK#2 +if (/\a/.source !== "\\a") { + $ERROR('#2: /\\a/'); +} + +//CHECK#3 +if (/\;/.source !== "\\;") { + $ERROR('#3: /\\;/'); +} + +//CHECK#4 +if (/\ /.source !== "\\ ") { + $ERROR('#4: /\\ /'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js new file mode 100644 index 000000000..f17d8332a --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: BackslashSequence :: \NonTerminator, + * RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js + * @description Complex test with eval, using syntax pattern + */ + +//CHECK +var errorCount = 0; +var count = 0; +var hex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; +for (var i1 = 0; i1 < 16; i1++) { + for (var i2 = 0; i2 < 16; i2++) { + for (var i3 = 0; i3 < 16; i3++) { + for (var i4 = 0; i4 < 16; i4++) { + try { + var uu = hex[i1] + hex[i2] + hex[i3] + hex[i4]; + var Elimination = + ((uu === "002A") || (uu === "002F") || (uu === "005C") || (uu === "002B") || + (uu === "003F") || (uu === "0028") || (uu === "0029") || + (uu === "005B") || (uu === "005D") || (uu === "007B") || (uu === "007D")); + /* + * \u002A / \u002F \ \u005C + \u002B + ? \u003F ( \u0028 ) \u0029 + [ \u005B ] \u005D { \u007B } \u007D + */ + var LineTerminator = ((uu === "000A") || (uu === "000D") || (uu === "2028") || (uu === "2029")); + if ((Elimination || LineTerminator ) === false) { + var xx = "\\" + String.fromCharCode("0x" + uu); + var pattern = eval("/" + xx + "/"); + if (pattern.source !== xx) { + $ERROR('#' + uu + ' '); + errorCount++; + } + } else { + count--; + } + } catch (e) { + $ERROR('#' + uu + ' '); + errorCount++; + } + count++; + } + } + } +} + +if (errorCount > 0) { + $ERROR('Total error: ' + errorCount + ' bad Regular Expression First Char in ' + count); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T1.js new file mode 100644 index 000000000..94a9734d0 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_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. + +/** + * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T1.js + * @description Line Feed, without eval + * @negative + */ + +//CHECK#1 +/\ +/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T2.js new file mode 100644 index 000000000..923e3f737 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T2.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T2.js + * @description Line Feed, with eval + */ + +//CHECK#1 +try { + eval("/\\\u000A/").source; + $ERROR('#1.1: RegularExpressionFirstChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (eval("/\\\u000A/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionFirstChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T3.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T3.js new file mode 100644 index 000000000..3c349c10b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T3.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. + +/** + * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T3.js + * @description Carriage Return, without eval + * @negative + */ + +//CHECK#1 +/\ +/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T4.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T4.js new file mode 100644 index 000000000..e5b89920a --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T4.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T4.js + * @description Carriage Return, with eval + */ + +//CHECK#1 +try { + eval("/\\\u000D/").source; + $ERROR('#1.1: RegularExpressionFirstChar :: BackslashSequence :: \\Carriage Return is incorrect. Actual: ' + (eval("/\\\u000D/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionFirstChar :: BackslashSequence :: \\Carriage Return is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T5.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T5.js new file mode 100644 index 000000000..a9b6d9696 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T5.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T5.js + * @description Line separator, with eval + */ + +//CHECK#1 +try { + eval("/\\\u2028/").source; + $ERROR('#1.1: RegularExpressionFirstChar :: BackslashSequence :: \\Line separator is incorrect. Actual: ' + (eval("/\\\u2028/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionFirstChar :: BackslashSequence :: \\Line separator is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T6.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T6.js new file mode 100644 index 000000000..73345ed41 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A1.5_T6.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T6.js + * @description Paragraph separator, with eval + */ + +//CHECK#1 +try { + eval("/\\\u2029/").source; + $ERROR('#1.1: RegularExpressionFirstChar :: BackslashSequence :: \\Paragraph separator is incorrect. Actual: ' + (eval("/\\\u2029/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionFirstChar :: BackslashSequence :: \\Paragraph separator is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.1_T1.js new file mode 100644 index 000000000..5b69da20d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.1_T1.js @@ -0,0 +1,36 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: NonTerminator but not \ or /, + * RegularExpressionFlags :: [empty] + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.1_T1.js + * @description Without eval + */ + +//CHECK#1 +if (/1a/.source !== "1a") { + $ERROR('#1: /1a/'); +} + +//CHECK#2 +if (/aa/.source !== "aa") { + $ERROR('#2: /aa/'); +} + +//CHECK#3 +if (/,;/.source !== ",;") { + $ERROR('#3: /,;/'); +} + +//CHECK#4 +if (/ /.source !== " ") { + $ERROR('#4: / /'); +} + +//CHECK#5 +if (/a\u0041/.source !== "a\\u0041") { + $ERROR('#5: /a\\u0041/'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.1_T2.js new file mode 100644 index 000000000..b8e66b23e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.1_T2.js @@ -0,0 +1,56 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: NonTerminator but not \ or /, + * RegularExpressionFlags :: [empty] + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.1_T2.js + * @description Complex test with eval, using syntax pattern + */ + +//CHECK +var errorCount = 0; +var count = 0; +var hex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; +for (var i1 = 0; i1 < 16; i1++) { + for (var i2 = 0; i2 < 16; i2++) { + for (var i3 = 0; i3 < 16; i3++) { + for (var i4 = 0; i4 < 16; i4++) { + try { + var uu = hex[i1] + hex[i2] + hex[i3] + hex[i4]; + var Elimination = + ((uu === "002A") || (uu === "002F") || (uu === "005C") || (uu === "002B") || + (uu === "003F") || (uu === "0028") || (uu === "0029") || + (uu === "005B") || (uu === "005D") || (uu === "007B") || (uu === "007D")); + /* + * \u002A / \u002F \ \u005C + \u002B + ? \u003F ( \u0028 ) \u0029 + [ \u005B ] \u005D { \u007B } \u007D + */ + var LineTerminator = ((uu === "000A") || (uu === "000D") || (uu === "2028") || (uu === "2029")); + if ((Elimination || LineTerminator ) === false) { + var xx = "nnnn" + String.fromCharCode("0x" + uu); + var pattern = eval("/" + xx + "/"); + if (pattern.source !== xx) { + $ERROR('#' + uu + ' '); + errorCount++; + } + + } else { + count--; + } + } catch (e) { + $ERROR('#' + uu + ' '); + errorCount++; + } + count++; + } + } + } +} + +if (errorCount > 0) { + $ERROR('Total error: ' + errorCount + ' bad Regular Expression First Char in ' + count); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js new file mode 100644 index 000000000..8231c0407 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: \ or / is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js + * @description \ + * @negative + */ + +//CHECK#1 +/a\/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.2_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.2_T2.js new file mode 100644 index 000000000..b80f21691 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.2_T2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: \ or / is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.2_T2.js + * @description / + * @negative + */ + +//CHECK#1 +/a//.source; + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T1.js new file mode 100644 index 000000000..fd42341e0 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_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. + +/** + * RegularExpressionChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T1.js + * @description Line Feed, without eval + * @negative + */ + +//CHECK#1 +/a +/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T2.js new file mode 100644 index 000000000..8f3523088 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T2.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T2.js + * @description Line Feed, with eval + */ + +//CHECK#1 +try { + eval("/a\u000A/").source; + $ERROR('#1.1: RegularExpressionChar :: Line Feedis incorrect. Actual: ' + (eval("/a\u000A/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionChar :: Line Feed is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T3.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T3.js new file mode 100644 index 000000000..c9debb5c5 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T3.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. + +/** + * RegularExpressionChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T3.js + * @description Carriage Return, without eval + * @negative + */ + +//CHECK#1 +/a +/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T4.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T4.js new file mode 100644 index 000000000..4c2dda384 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T4.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T4.js + * @description Carriage Return, with eval + */ + +//CHECK#1 +try { + eval("/a\u000D/").source; + $ERROR('#1.1: RegularExpressionChar :: Carriage Retur is incorrect. Actual: ' + (eval("/a\u000D/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionChar :: Carriage Retur is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T5.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T5.js new file mode 100644 index 000000000..85d43801f --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T5.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T5.js + * @description Line separator, with eval + */ + +//CHECK#1 +try { + eval("/a\u2028/").source; + $ERROR('#1.1: RegularExpressionChar :: Line separator is incorrect. Actual: ' + (eval("/a\u2028/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionChar :: Line separator is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T6.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T6.js new file mode 100644 index 000000000..abf9833c5 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.3_T6.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T6.js + * @description Paragraph separator, with eval + */ + +//CHECK#1 +try { + eval("/s\u2029/").source; + $ERROR('#1.1: RegularExpressionChar :: Paragraph separator is incorrect. Actual: ' + (eval("/s\u2029/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionChar :: Paragraph separator is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.4_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.4_T1.js new file mode 100644 index 000000000..8a67dc42a --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.4_T1.js @@ -0,0 +1,31 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: BackslashSequence :: \NonTerminator, + * RegularExpressionFlags :: [empty] + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.4_T1.js + * @description Check similar to (/a\1/.source === "a\\1") + */ + +//CHECK#1 +if (/a\1/.source !== "a\\1") { + $ERROR('#1: /a\\1/'); +} + +//CHECK#2 +if (/a\a/.source !== "a\\a") { + $ERROR('#2: /a\\a/'); +} + +//CHECK#3 +if (/,\;/.source !== ",\\;") { + $ERROR('#3: /,\\;/'); +} + +//CHECK#4 +if (/ \ /.source !== " \\ ") { + $ERROR('#4: / \\ /'); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.4_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.4_T2.js new file mode 100644 index 000000000..fa26a976b --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.4_T2.js @@ -0,0 +1,55 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: BackslashSequence :: \NonTerminator, + * RegularExpressionFlags :: [empty] + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.4_T2.js + * @description Complex test with eval, using syntax pattern + */ + +//CHECK +var errorCount = 0; +var count = 0; +var hex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; +for (var i1 = 0; i1 < 16; i1++) { + for (var i2 = 0; i2 < 16; i2++) { + for (var i3 = 0; i3 < 16; i3++) { + for (var i4 = 0; i4 < 16; i4++) { + try { + var uu = hex[i1] + hex[i2] + hex[i3] + hex[i4]; + var Elimination = + ((uu === "002A") || (uu === "002F") || (uu === "005C") || (uu === "002B") || + (uu === "003F") || (uu === "0028") || (uu === "0029") || + (uu === "005B") || (uu === "005D") || (uu === "007B") || (uu === "007D")); + /* + * \u002A / \u002F \ \u005C + \u002B + ? \u003F ( \u0028 ) \u0029 + [ \u005B ] \u005D { \u007B } \u007D + */ + var LineTerminator = ((uu === "000A") || (uu === "000D") || (uu === "2028") || (uu === "2029")); + if ((Elimination || LineTerminator ) === false) { + var xx = "a\\" + String.fromCharCode("0x" + uu); + var pattern = eval("/" + xx + "/"); + if (pattern.source !== xx) { + $ERROR('#' + uu + ' '); + errorCount++; + } + } else { + count--; + } + } catch (e) { + $ERROR('#' + uu + ' '); + errorCount++; + } + count++; + } + } + } +} + +if (errorCount > 0) { + $ERROR('Total error: ' + errorCount + ' bad Regular Expression First Char in ' + count); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T1.js new file mode 100644 index 000000000..a3d5e5b4e --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_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. + +/** + * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T1.js + * @description Line Feed, without eval + * @negative + */ + +//CHECK#1 +/a\ +/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T2.js new file mode 100644 index 000000000..685ada093 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T2.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T2.js + * @description Line Feed, with eval + */ + +//CHECK#1 +try { + eval("/a\\\u000A/").source; + $ERROR('#1.1: RegularExpressionChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (eval("/a\\\u000A/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T3.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T3.js new file mode 100644 index 000000000..e85821870 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T3.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. + +/** + * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T3.js + * @description Carriage Return, without eval + * @negative + */ + +//CHECK#1 +/a\ +/ + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T4.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T4.js new file mode 100644 index 000000000..5cdea0817 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T4.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T4.js + * @description Carriage Return, with eval + */ + +//CHECK#1 +try { + eval("/a\\\u000D/").source; + $ERROR('#1.1: RegularExpressionChar :: BackslashSequence :: \\Carriage Return is incorrect. Actual: ' + (eval("/a\\\u000D/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionChar :: BackslashSequence :: \\Carriage Return is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T5.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T5.js new file mode 100644 index 000000000..acc1f3080 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T5.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T5.js + * @description Line separator, with eval + */ + +//CHECK#1 +try { + eval("/a\\\u2028/").source; + $ERROR('#1.1: RegularExpressionChar :: BackslashSequence :: \\Line separator is incorrect. Actual: ' + (eval("/a\\\u2028/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionChar :: BackslashSequence :: \\Line separator is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T6.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T6.js new file mode 100644 index 000000000..d33041021 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A2.5_T6.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect + * + * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T6.js + * @description Paragraph separator, with eval + */ + +//CHECK#1 +try { + eval("/a\\\u2029/").source; + $ERROR('#1.1: RegularExpressionChar :: BackslashSequence :: \\Paragraph separator is incorrect. Actual: ' + (eval("/a\\\u2029/").source)); +} +catch (e) { + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegularExpressionChar :: BackslashSequence :: \\Paragraph separator is incorrect. Actual: ' + (e)); + } +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T1.js new file mode 100644 index 000000000..14ea4d7ea --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T1.js @@ -0,0 +1,26 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFlags :: IdentifierPart + * + * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T1.js + * @description IdentifierPart :: g + */ + +//CHECK#1 +var regexp = /(?:)/g; +if (regexp.global !== true) { + $ERROR('#1: var regexp = /(?:)/g; regexp.global === true. Actual: ' + (regexp.global)); +} + +//CHECK#2 +if (regexp.ignoreCase !== false) { + $ERROR('#2: var regexp = /(?:)/g; regexp.ignoreCase === false. Actual: ' + (regexp.ignoreCase)); +} + +//CHECK#3 +if (regexp.multiline !== false) { + $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === false. Actual: ' + (regexp.multiline)); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T2.js new file mode 100644 index 000000000..f247140d2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T2.js @@ -0,0 +1,26 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFlags :: IdentifierPart + * + * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T2.js + * @description IdentifierPart :: i + */ + +//CHECK#1 +var regexp = /(?:)/i; +if (regexp.global !== false) { + $ERROR('#1: var regexp = /(?:)/g; regexp.global === false. Actual: ' + (regexp.global)); +} + +//CHECK#2 +if (regexp.ignoreCase !== true) { + $ERROR('#2: var regexp = /(?:)/g; regexp.ignoreCase === true. Actual: ' + (regexp.ignoreCase)); +} + +//CHECK#3 +if (regexp.multiline !== false) { + $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === false. Actual: ' + (regexp.multiline)); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T3.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T3.js new file mode 100644 index 000000000..4f0e6f14d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T3.js @@ -0,0 +1,26 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFlags :: IdentifierPart + * + * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T3.js + * @description IdentifierPart :: m + */ + +//CHECK#1 +var regexp = /(?:)/m; +if (regexp.global !== false) { + $ERROR('#1: var regexp = /(?:)/g; regexp.global === false. Actual: ' + (regexp.global)); +} + +//CHECK#2 +if (regexp.ignoreCase !== false) { + $ERROR('#2: var regexp = /(?:)/g; regexp.ignoreCase === false. Actual: ' + (regexp.ignoreCase)); +} + +//CHECK#3 +if (regexp.multiline !== true) { + $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === true. Actual: ' + (regexp.multiline)); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T4.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T4.js new file mode 100644 index 000000000..fd56ca01c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T4.js @@ -0,0 +1,26 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFlags :: IdentifierPart + * + * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T4.js + * @description IdentifierPart :: gi + */ + +//CHECK#1 +var regexp = /(?:)/gi; +if (regexp.global !== true) { + $ERROR('#1: var regexp = /(?:)/g; regexp.global === true. Actual: ' + (regexp.global)); +} + +//CHECK#2 +if (regexp.ignoreCase !== true) { + $ERROR('#2: var regexp = /(?:)/g; regexp.ignoreCase === true. Actual: ' + (regexp.ignoreCase)); +} + +//CHECK#3 +if (regexp.multiline !== false) { + $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === false. Actual: ' + (regexp.multiline)); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T5.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T5.js new file mode 100644 index 000000000..3b45a94ca --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T5.js @@ -0,0 +1,26 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFlags :: IdentifierPart + * + * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T5.js + * @description IdentifierPart :: mg + */ + +//CHECK#1 +var regexp = /(?:)/mg; +if (regexp.global !== true) { + $ERROR('#1: var regexp = /(?:)/g; regexp.global === true. Actual: ' + (regexp.global)); +} + +//CHECK#2 +if (regexp.ignoreCase !== false) { + $ERROR('#2: var regexp = /(?:)/g; regexp.ignoreCase === false. Actual: ' + (regexp.ignoreCase)); +} + +//CHECK#3 +if (regexp.multiline !== true) { + $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === true. Actual: ' + (regexp.multiline)); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T6.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T6.js new file mode 100644 index 000000000..fb188ed6c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T6.js @@ -0,0 +1,26 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * RegularExpressionFlags :: IdentifierPart + * + * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T6.js + * @description IdentifierPart :: mig + */ + +//CHECK#1 +var regexp = /(?:)/mig; +if (regexp.global !== true) { + $ERROR('#1: var regexp = /(?:)/g; regexp.global === true. Actual: ' + (regexp.global)); +} + +//CHECK#2 +if (regexp.ignoreCase !== true) { + $ERROR('#2: var regexp = /(?:)/g; regexp.ignoreCase === true. Actual: ' + (regexp.ignoreCase)); +} + +//CHECK#3 +if (regexp.multiline !== true) { + $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === true. Actual: ' + (regexp.multiline)); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js new file mode 100644 index 000000000..299241d4c --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.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. + +/** + * RegularExpressionFlags :: IdentifierPart + * + * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js + * @description IdentifierPart :: \u0067 (g) + */ + +//CHECK#1 +var regexp; +eval("regexp = /(?:)/\u0067"); +if (regexp.global !== true) { + $ERROR('#1: var regexp = /(?:)/\\u0067; regexp.global === true. Actual: ' + (regexp.global)); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js new file mode 100644 index 000000000..de78b6f23 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.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. + +/** + * RegularExpressionFlags :: IdentifierPart + * + * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js + * @description IdentifierPart :: \u0069 (i) + */ + +//CHECK#1 +var regexp; +eval("regexp = /(?:)/\u0069"); +if (regexp.ignoreCase !== true) { + $ERROR('#1: var regexp = /(?:)/\\u0069; regexp.ignoreCase === true. Actual: ' + (regexp.ignoreCase)); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js new file mode 100644 index 000000000..132586af4 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.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. + +/** + * RegularExpressionFlags :: IdentifierPart + * + * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js + * @description IdentifierPart :: \u006D (m) + */ + +//CHECK#1 +var regexp; +eval("regexp = /(?:)/\u006D"); +if (regexp.multiline !== true) { + $ERROR('#1: var regexp = /(?:)/\\u006D; regexp.multiline === true. Actual: ' + (regexp.multiline)); +} + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A4.1.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A4.1.js new file mode 100644 index 000000000..d8f33d67d --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A4.1.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. + +/** + * A regular expression literal is an input element that is converted to + * a RegExp object when it is scanned + * + * @path ch07/7.8/7.8.5/S7.8.5_A4.1.js + * @description Check ((/(?:)/ instanceof RegExp) === true) + */ + +//CHECK#1 +if ((/(?:)/ instanceof RegExp) !== true) { + $ERROR('#1: (/(?:)/ instanceof RegExp) === true. Actual: ' + ((/(?:)/ instanceof RegExp))); +} + + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A4.2.js b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A4.2.js new file mode 100644 index 000000000..569e4cbd2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/S7.8.5_A4.2.js @@ -0,0 +1,20 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Two regular expression literals in a program evaluate to + * regular expression objects that never compare as === to each other even + * if the two literals' contents are identical + * + * @path ch07/7.8/7.8.5/S7.8.5_A4.2.js + * @description Check equality two regular expression literals + */ + +//CHECK#1 +var regexp1 = /(?:)/; +var regexp2 = /(?:)/; +if (regexp1 === regexp2) { + $ERROR('#1: var regexp1 = /(?:)/; var regexp2 = /(?:)/; regexp1 !== regexp2'); +} + + diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/browser.js b/js/src/tests/test262/ch07/7.8/7.8.5/browser.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/browser.js diff --git a/js/src/tests/test262/ch07/7.8/7.8.5/shell.js b/js/src/tests/test262/ch07/7.8/7.8.5/shell.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/7.8.5/shell.js diff --git a/js/src/tests/test262/ch07/7.8/browser.js b/js/src/tests/test262/ch07/7.8/browser.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/browser.js diff --git a/js/src/tests/test262/ch07/7.8/shell.js b/js/src/tests/test262/ch07/7.8/shell.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.8/shell.js |