Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * White Space and Line Terminator between LogicalANDExpression and "&&" or between "&&" and BitwiseORExpression are allowed
6 *
7 * @path ch11/11.11/11.11.1/S11.11.1_A1.js
8 * @description Checking by using eval
9 */
11 //CHECK#1
12 if ((eval("true\u0009&&\u0009true")) !== true) {
13 $ERROR('#1: (true\\u0009&&\\u0009true) === true');
14 }
16 //CHECK#2
17 if ((eval("true\u000B&&\u000Btrue")) !== true) {
18 $ERROR('#2: (true\\u000B&&\\u000Btrue) === true');
19 }
21 //CHECK#3
22 if ((eval("true\u000C&&\u000Ctrue")) !== true) {
23 $ERROR('#3: (true\\u000C&&\\u000Ctrue) === true');
24 }
26 //CHECK#4
27 if ((eval("true\u0020&&\u0020true")) !== true) {
28 $ERROR('#4: (true\\u0020&&\\u0020true) === true');
29 }
31 //CHECK#5
32 if ((eval("true\u00A0&&\u00A0true")) !== true) {
33 $ERROR('#5: (true\\u00A0&&\\u00A0true) === true');
34 }
36 //CHECK#6
37 if ((eval("true\u000A&&\u000Atrue")) !== true) {
38 $ERROR('#6: (true\\u000A&&\\u000Atrue) === true');
39 }
41 //CHECK#7
42 if ((eval("true\u000D&&\u000Dtrue")) !== true) {
43 $ERROR('#7: (true\\u000D&&\\u000Dtrue) === true');
44 }
46 //CHECK#8
47 if ((eval("true\u2028&&\u2028true")) !== true) {
48 $ERROR('#8: (true\\u2028&&\\u2028true) === true');
49 }
51 //CHECK#9
52 if ((eval("true\u2029&&\u2029true")) !== true) {
53 $ERROR('#9: (true\\u2029&&\\u2029true) === true');
54 }
57 //CHECK#10
58 if ((eval("true\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029&&\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true")) !== true) {
59 $ERROR('#10: (true\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029&&\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true) === true');
60 }