js/src/tests/test262/ch11/11.8/11.8.7/S11.8.7_A1.js

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:b332b980b62e
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 RelationalExpression and "in" and between "in" and ShiftExpression are allowed
6 *
7 * @path ch11/11.8/11.8.7/S11.8.7_A1.js
8 * @description Checking by using eval
9 */
10
11 //CHECK#1
12 if (eval("'MAX_VALUE'\u0009in\u0009Number") !== true) {
13 $ERROR('#1: "MAX_VALUE"\\u0009in\\u0009Number === true');
14 }
15
16 //CHECK#2
17 if (eval("'MAX_VALUE'\u000Bin\u000BNumber") !== true) {
18 $ERROR('#2: "MAX_VALUE"\\u000Bin\\u000BNumber === true');
19 }
20
21 //CHECK#3
22 if (eval("'MAX_VALUE'\u000Cin\u000CNumber") !== true) {
23 $ERROR('#3: "MAX_VALUE"\\u000Cin\\u000CNumber === true');
24 }
25
26 //CHECK#4
27 if (eval("'MAX_VALUE'\u0020in\u0020Number") !== true) {
28 $ERROR('#4: "MAX_VALUE"\\u0020in\\u0020Number === true');
29 }
30
31 //CHECK#5
32 if (eval("'MAX_VALUE'\u00A0in\u00A0Number") !== true) {
33 $ERROR('#5: "MAX_VALUE"\\u00A0in\\u00A0Number === true');
34 }
35
36 //CHECK#6
37 if (eval("'MAX_VALUE'\u000Ain\u000ANumber") !== true) {
38 $ERROR('#6: "MAX_VALUE"\\u000Ain\\u000ANumber === true');
39 }
40
41 //CHECK#7
42 if (eval("'MAX_VALUE'\u000Din\u000DNumber") !== true) {
43 $ERROR('#7: "MAX_VALUE"\\u000Din\\u000DNumber === true');
44 }
45
46 //CHECK#8
47 if (eval("'MAX_VALUE'\u2028in\u2028Number") !== true) {
48 $ERROR('#8: "MAX_VALUE"\\u2028in\\u2028Number === true');
49 }
50
51 //CHECK#9
52 if (eval("'MAX_VALUE'\u2029in\u2029Number") !== true) {
53 $ERROR('#9: "MAX_VALUE"\\u2029in\\u2029Number === true');
54 }
55
56 //CHECK#10
57 if (eval("'MAX_VALUE'\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029in\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029Number") !== true) {
58 $ERROR('#10: "MAX_VALUE"\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029in\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029Number === true');
59 }
60

mercurial