Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: autotest/test_abprewrite.js.expected

Issue 29354754: Issue 4467 - Fixed hex encoding of characters in string literal and adjusted tests for newer Spider… (Closed) Base URL: https://hg.adblockplus.org/jshydra
Patch Set: Better approach Created Sept. 23, 2016, 10:57 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « autotest/abprewrite_source.js ('k') | autotest/test_abprewrite_autoload.js.expected » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 // 18 //
19 // This file has been generated automatically, relevant repositories: 19 // This file has been generated automatically, relevant repositories:
20 // * https://hg.adblockplus.org/jshydra/ 20 // * https://hg.adblockplus.org/jshydra/
21 // 21 //
22 22
23 var Cl = Components.unknown; 23 var Cl = Components.unknown;
24 "foo + bar \n\r\x02\x0f\x1e";
24 var Utils = require("utils").Utils; 25 var Utils = require("utils").Utils;
25 var _tempVar0 = require("filterClasses"); 26 var _tempVar0 = require("filterClasses");
26 var Filter = _tempVar0.Filter; 27 var Filter = _tempVar0.Filter;
27 var BlockingFilter = _tempVar0.BlockingFilter; 28 var BlockingFilter = _tempVar0.BlockingFilter;
28 var foo; 29 var foovar;
29 var bar = 2; 30 var bar = 2;
30 var bas; 31 var bas;
31 var FOO = "FOO"; 32 var FOO = "FOO";
32 var _tempVar1 = foo(); 33 var _tempVar1 = foo();
33 var a = _tempVar1[0]; 34 var a = _tempVar1[0];
34 var b = _tempVar1[1]; 35 var b = _tempVar1[1];
35 var _tempVar2 = [1, 2]; 36 var _tempVar2 = [1, 2];
36 a = _tempVar2[0]; 37 a = _tempVar2[0];
37 b = _tempVar2[1]; 38 b = _tempVar2[1];
38 var y = foo().x; 39 var prop = foo().x;
39 var _tempVar3 = foo(); 40 var _tempVar3 = foo();
40 var v1 = _tempVar3.k1; 41 var v1 = _tempVar3.k1;
41 var v2 = _tempVar3.k2; 42 var v2 = _tempVar3.k2;
42 for (var _loopIndex4 = 0; _loopIndex4 < fooList.length; ++_loopIndex4) 43 for (var _loopIndex4 = 0; _loopIndex4 < fooList.length; ++_loopIndex4)
43 { 44 {
44 var v = fooList[_loopIndex4]; 45 var v = fooList[_loopIndex4];
45 alert(v); 46 alert(v);
46 } 47 }
47 for (var _loopIndex5 = 0; _loopIndex5 < fooList.length; ++_loopIndex5) 48 for (var _loopIndex5 = 0; _loopIndex5 < fooList.length; ++_loopIndex5)
48 { 49 {
49 var _tempVar6 = fooList[_loopIndex5]; 50 var _tempVar6 = fooList[_loopIndex5];
50 var a = _tempVar6[0]; 51 var i1 = _tempVar6[0];
51 var b = _tempVar6[1]; 52 var i2 = _tempVar6[1];
52 a += b; 53 i1 += i2;
53 b -= a; 54 i2 -= i1;
54 } 55 }
55 for (var _loopIndex7 = 0; _loopIndex7 < fooList.length; ++_loopIndex7) 56 for (var _loopIndex7 = 0; _loopIndex7 < fooList.length; ++_loopIndex7)
56 { 57 {
57 var _tempVar8 = fooList[_loopIndex7]; 58 var _tempVar8 = fooList[_loopIndex7];
58 var a = _tempVar8[0]; 59 var j1 = _tempVar8[0];
59 var b = _tempVar8[1]; 60 var j2 = _tempVar8[1];
60 } 61 }
61 for (var _loopIndex9 = 0; _loopIndex9 < fooList.length; ++_loopIndex9) 62 for (var _loopIndex9 = 0; _loopIndex9 < fooList.length; ++_loopIndex9)
62 { 63 {
63 k = fooList[_loopIndex9]; 64 k = fooList[_loopIndex9];
64 alert(k); 65 alert(k);
65 } 66 }
66 var a = function() 67 var arrow = function()
67 { 68 {
68 return 1; 69 return 1;
69 }; 70 };
70 var b = { 71 var getter = {
71 get foo() 72 get foo()
72 { 73 {
73 return 1; 74 return 1;
74 } 75 }
75 }; 76 };
76 77
77 function foo() 78 function foo()
78 { 79 {
79 return { 80 return {
80 foo: 1, 81 foo: 1,
81 bar: 2 82 bar: 2
82 }; 83 };
83 } 84 }
84 if (a == b) 85 if (a == b)
85 { 86 {
86 foo(); 87 foo();
87 } 88 }
88 else if (a == c) 89 else if (a == c)
89 { 90 {
90 bar(); 91 bar();
91 } 92 }
92 else 93 else
93 { 94 {
94 bas(); 95 bas();
95 } 96 }
96 if (a == b) 97 if (a == b)
97 {} 98 {}
98 for (var a = 0; a < b.length; a++) 99 for (var x = 0; x < b.length; x++)
99 { 100 {
100 foo(); 101 foo();
101 } 102 }
102 for (var a = 0; a < b.length; a++) 103 for (var y = 0; y < b.length; y++)
103 {} 104 {}
104 for (var a in b) 105 for (var i in b)
105 { 106 {
106 foo(); 107 foo();
107 } 108 }
108 for (var a in b) 109 for (var j in b)
109 {} 110 {}
110 while (a == b) 111 while (a == b)
111 { 112 {
112 foo(); 113 foo();
113 } 114 }
114 while (a == b) 115 while (a == b)
115 {} 116 {}
116 117
117 function genFunc() 118 function genFunc()
118 { 119 {
119 var _generatorResult10 = []; 120 var _generatorResult10 = [];
120 for (var i = 0; i < 10; i++) 121 for (var i = 0; i < 10; i++)
121 { 122 {
122 _generatorResult10.push(i); 123 _generatorResult10.push(i);
123 } 124 }
124 return _generatorResult10; 125 return _generatorResult10;
125 } 126 }
126 var a = function() 127 var func = function()
127 { 128 {
128 var _generatorResult10 = []; 129 var _generatorResult10 = [];
129 for (var i = 0; i < 10; i++) 130 for (var i = 0; i < 10; i++)
130 { 131 {
131 _generatorResult10.push(i); 132 _generatorResult10.push(i);
132 } 133 }
133 return _generatorResult10; 134 return _generatorResult10;
134 }; 135 };
135 var x = function(y) 136 var x = function(y)
136 { 137 {
137 return y + 1; 138 return y + 1;
138 }; 139 };
139 x = function(y) 140 x = function(y)
140 { 141 {
141 return y + 1; 142 return y + 1;
142 }; 143 };
143 x = function(a, b) 144 x = function(a, b)
144 { 145 {
145 return this[a] + b; 146 return this[a] + b;
146 }.bind(this); 147 }.bind(this);
147 x = function(a, b) 148 x = function(a, b)
148 { 149 {
149 return function() 150 return function()
150 { 151 {
151 return 1; 152 return 1;
152 }; 153 };
153 }.bind(this); 154 }.bind(this);
OLDNEW
« no previous file with comments | « autotest/abprewrite_source.js ('k') | autotest/test_abprewrite_autoload.js.expected » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld