js/src/tests/test262/ch11/11.11/11.11.2/S11.11.2_A1.js

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:ee73b9c8675a
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /**
5 * White Space and Line Terminator between LogicalORExpression and "||" or between "||" and LogicalANDExpression are allowed
6 *
7 * @path ch11/11.11/11.11.2/S11.11.2_A1.js
8 * @description Checking by using eval
9 */
10
11 //CHECK#1
12 if ((eval("false\u0009||\u0009true")) !== true) {
13 $ERROR('#1: (false\\u0009||\\u0009true) === true');
14 }
15
16 //CHECK#2
17 if ((eval("false\u000B||\u000Btrue")) !== true) {
18 $ERROR('#2: (false\\u000B||\\u000Btrue) === true');
19 }
20
21 //CHECK#3
22 if ((eval("false\u000C||\u000Ctrue")) !== true) {
23 $ERROR('#3: (false\\u000C||\\u000Ctrue) === true');
24 }
25
26 //CHECK#4
27 if ((eval("false\u0020||\u0020true")) !== true) {
28 $ERROR('#4: (false\\u0020||\\u0020true) === true');
29 }
30
31 //CHECK#5
32 if ((eval("false\u00A0||\u00A0true")) !== true) {
33 $ERROR('#5: (false\\u00A0||\\u00A0true) === true');
34 }
35
36 //CHECK#6
37 if ((eval("false\u000A||\u000Atrue")) !== true) {
38 $ERROR('#6: (false\\u000A||\\u000Atrue) === true');
39 }
40
41 //CHECK#7
42 if ((eval("false\u000D||\u000Dtrue")) !== true) {
43 $ERROR('#7: (false\\u000D||\\u000Dtrue) === true');
44 }
45
46 //CHECK#8
47 if ((eval("false\u2028||\u2028true")) !== true) {
48 $ERROR('#8: (false\\u2028||\\u2028true) === true');
49 }
50
51 //CHECK#9
52 if ((eval("false\u2029||\u2029true")) !== true) {
53 $ERROR('#9: (false\\u2029||\\u2029true) === true');
54 }
55
56
57 //CHECK#10
58 if ((eval("false\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029||\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true")) !== true) {
59 $ERROR('#10: (false\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029||\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true) === true');
60 }
61

mercurial