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.9/7.9.2 | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'js/src/tests/test262/ch07/7.9/7.9.2')
-rw-r--r-- | js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T1.js | 14 | ||||
-rw-r--r-- | js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T2.js | 14 | ||||
-rw-r--r-- | js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T3.js | 15 | ||||
-rw-r--r-- | js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T4.js | 20 | ||||
-rw-r--r-- | js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T5.js | 18 | ||||
-rw-r--r-- | js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T6.js | 16 | ||||
-rw-r--r-- | js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T7.js | 23 | ||||
-rw-r--r-- | js/src/tests/test262/ch07/7.9/7.9.2/browser.js | 0 | ||||
-rw-r--r-- | js/src/tests/test262/ch07/7.9/7.9.2/shell.js | 0 |
9 files changed, 120 insertions, 0 deletions
diff --git a/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T1.js b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T1.js new file mode 100644 index 000000000..566fbbf47 --- /dev/null +++ b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_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. + +/** + * Check examples for automatic semicolon insertion from the Standart + * + * @path ch07/7.9/7.9.2/S7.9.2_A1_T1.js + * @description { 1 2 } 3 is not a valid sentence in the ECMAScript grammar + * @negative + */ + +//CHECK#1 +{ 1 2 } 3 + diff --git a/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T2.js b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T2.js new file mode 100644 index 000000000..565d860a2 --- /dev/null +++ b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_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. + +/** + * Check examples for automatic semicolon insertion from the Standart + * + * @path ch07/7.9/7.9.2/S7.9.2_A1_T2.js + * @description { 1 \n 2 } 3 is a valid sentence in the ECMAScript grammar with automatic semicolon insertion + */ + +//CHECK#1 +{ 1 +2 } 3 + diff --git a/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T3.js b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T3.js new file mode 100644 index 000000000..ab0d03265 --- /dev/null +++ b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_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. + +/** + * Check examples for automatic semicolon insertion from the Standart + * + * @path ch07/7.9/7.9.2/S7.9.2_A1_T3.js + * @description for( a ; b \n ) is not a valid sentence in the ECMAScript grammar + * @negative + */ + +//CHECK#1 +for( a ; b +) + diff --git a/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T4.js b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T4.js new file mode 100644 index 000000000..e4c39798a --- /dev/null +++ b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T4.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. + +/** + * Check examples for automatic semicolon insertion from the Standart + * + * @path ch07/7.9/7.9.2/S7.9.2_A1_T4.js + * @description return \n a+b is a valid sentence in the ECMAScript grammar + * with automatic semicolon insertion, but returned undefined + */ + +//CHECK#1 +var a=1,b=2; +function test(){ + return + a+b +} +var x=test(); +if (x!==undefined) $ERROR('#1: Automatic semicolon insertion not work with return'); + diff --git a/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T5.js b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T5.js new file mode 100644 index 000000000..3ca074a17 --- /dev/null +++ b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T5.js @@ -0,0 +1,18 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Check examples for automatic semicolon insertion from the Standart + * + * @path ch07/7.9/7.9.2/S7.9.2_A1_T5.js + * @description a=b \n ++c is a valid sentence in the ECMAScript grammar + * with automatic semicolon insertion, but a!==b++c + */ + +//CHECK#1 +var a=1,b=2,c=3; +a=b +++c + +if (a!==b) $ERROR('#1: Automatic semicolon insertion not work with ++'); + diff --git a/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T6.js b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T6.js new file mode 100644 index 000000000..8284f932a --- /dev/null +++ b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T6.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. + +/** + * Check examples for automatic semicolon insertion from the Standart + * + * @path ch07/7.9/7.9.2/S7.9.2_A1_T6.js + * @description if(a>b) \n else c=d is not a valid sentence in the ECMAScript grammar + * @negative + */ + +//CHECK#1 +var a=1,b=2,c=3,d; +if(a>b) +else c=d + diff --git a/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T7.js b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T7.js new file mode 100644 index 000000000..b2e1697bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T7.js @@ -0,0 +1,23 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Check examples for automatic semicolon insertion from the Standart + * + * @path ch07/7.9/7.9.2/S7.9.2_A1_T7.js + * @description a=b+c \n (d+e).print() is a valid sentence in the ECMAScript grammar, + * and automatic semicolon insertion not run + */ + +//CHECK#1 +function c (a){ + return 2*a; +} + +var a=1,b=2,d=4,e=5; + +a=b+c +(d+e) + +if (a !== 20) $ERROR('#1: Automatic semicolon insertion work wrong'); + diff --git a/js/src/tests/test262/ch07/7.9/7.9.2/browser.js b/js/src/tests/test262/ch07/7.9/7.9.2/browser.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.9/7.9.2/browser.js diff --git a/js/src/tests/test262/ch07/7.9/7.9.2/shell.js b/js/src/tests/test262/ch07/7.9/7.9.2/shell.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/js/src/tests/test262/ch07/7.9/7.9.2/shell.js |