Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 Expression and , or between , and AssignmentExpression are allowed
6 *
7 * @path ch11/11.14/S11.14_A1.js
8 * @description Checking by using eval
9 */
11 //CHECK#1
12 if ((eval("false\u0009,\u0009true")) !== true) {
13 $ERROR('#1: (false\\u0009,\\u0009true) === true');
14 }
16 //CHECK#2
17 if ((eval("false\u000B,\u000Btrue")) !== true) {
18 $ERROR('#2: (false\\u000B,\\u000Btrue) === true');
19 }
21 //CHECK#3
22 if ((eval("false\u000C,\u000Ctrue")) !== true) {
23 $ERROR('#3: (false\\u000C,\\u000Ctrue) === true');
24 }
26 //CHECK#4
27 if ((eval("false\u0020,\u0020true")) !== true) {
28 $ERROR('#4: (false\\u0020,\\u0020true) === true');
29 }
31 //CHECK#5
32 if ((eval("false\u00A0,\u00A0true")) !== true) {
33 $ERROR('#5: (false\\u00A0,\\u00A0true) === true');
34 }
36 //CHECK#6
37 if ((eval("false\u000A,\u000Atrue")) !== true) {
38 $ERROR('#6: (false\\u000A,\\u000Atrue) === true');
39 }
41 //CHECK#7
42 if ((eval("false\u000D,\u000Dtrue")) !== true) {
43 $ERROR('#7: (false\\u000D,\\u000Dtrue) === true');
44 }
46 //CHECK#8
47 if ((eval("false\u2028,\u2028true")) !== true) {
48 $ERROR('#8: (false\\u2028,\\u2028true) === true');
49 }
51 //CHECK#9
52 if ((eval("false\u2029,\u2029true")) !== true) {
53 $ERROR('#9: (false\\u2029,\\u2029true) === true');
54 }
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 }