js/src/tests/test262/ch11/11.8/11.8.6/S11.8.6_A1.js

branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
equal deleted inserted replaced
-1:000000000000 0:bb17cfa70091
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 "instanceof" and between "instanceof" and ShiftExpression are allowed
6 *
7 * @path ch11/11.8/11.8.6/S11.8.6_A1.js
8 * @description Checking by using eval
9 */
10
11 //CHECK#1
12 if (eval("({})\u0009instanceof\u0009Object") !== true) {
13 $ERROR('#1: ({})\\u0009instanceof\\u0009Object === true');
14 }
15
16 //CHECK#2
17 if (eval("({})\u000Binstanceof\u000BObject") !== true) {
18 $ERROR('#2: ({})\\u000Binstanceof\\u000BObject === true');
19 }
20
21 //CHECK#3
22 if (eval("({})\u000Cinstanceof\u000CObject") !== true) {
23 $ERROR('#3: ({})\\u000Cinstanceof\\u000CObject === true');
24 }
25
26 //CHECK#4
27 if (eval("({})\u0020instanceof\u0020Object") !== true) {
28 $ERROR('#4: ({})\\u0020instanceof\\u0020Object === true');
29 }
30
31 //CHECK#5
32 if (eval("({})\u00A0instanceof\u00A0Object") !== true) {
33 $ERROR('#5: ({})\\u00A0instanceof\\u00A0Object === true');
34 }
35
36 //CHECK#6
37 if (eval("({})\u000Ainstanceof\u000AObject") !== true) {
38 $ERROR('#6: ({})\\u000Ainstanceof\\u000AObject === true');
39 }
40
41 //CHECK#7
42 if (eval("({})\u000Dinstanceof\u000DObject") !== true) {
43 $ERROR('#7: ({})\\u000Dinstanceof\\u000DObject === true');
44 }
45
46 //CHECK#8
47 if (eval("({})\u2028instanceof\u2028Object") !== true) {
48 $ERROR('#8: ({})\\u2028instanceof\\u2028Object === true');
49 }
50
51 //CHECK#9
52 if (eval("({})\u2029instanceof\u2029Object") !== true) {
53 $ERROR('#9: ({})\\u2029instanceof\\u2029Object === true');
54 }
55
56 //CHECK#10
57 if (eval("({})\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029instanceof\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029Object") !== true) {
58 $ERROR('#10: ({})\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029instanceof\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029Object === true');
59 }
60

mercurial