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

Side by Side Diff: autotest/test_abprewrite_module.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: Created Sept. 23, 2016, 10:50 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/test_abprewrite_autoload.js.expected ('k') | scripts/astDecompile.js » ('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 require.scopes["abprewrite_source"] = (function() 23 require.scopes["abprewrite_source"] = (function()
24 { 24 {
25 var exports = {}; 25 var exports = {};
26 var Cl = Components.unknown; 26 var Cl = Components.unknown;
27 "foo + bar \n\r\x02\x0f\x1e";
27 var Utils = require("utils").Utils; 28 var Utils = require("utils").Utils;
28 var _tempVar0 = require("filterClasses"); 29 var _tempVar0 = require("filterClasses");
29 var Filter = _tempVar0.Filter; 30 var Filter = _tempVar0.Filter;
30 var BlockingFilter = _tempVar0.BlockingFilter; 31 var BlockingFilter = _tempVar0.BlockingFilter;
31 var foo; 32 var foovar;
32 var bar = 2; 33 var bar = 2;
33 var bas; 34 var bas;
34 var FOO = "FOO"; 35 var FOO = "FOO";
35 var _tempVar1 = foo(); 36 var _tempVar1 = foo();
36 var a = _tempVar1[0]; 37 var a = _tempVar1[0];
37 var b = _tempVar1[1]; 38 var b = _tempVar1[1];
38 var _tempVar2 = [1, 2]; 39 var _tempVar2 = [1, 2];
39 a = _tempVar2[0]; 40 a = _tempVar2[0];
40 b = _tempVar2[1]; 41 b = _tempVar2[1];
41 var y = foo().x; 42 var prop = foo().x;
42 var _tempVar3 = foo(); 43 var _tempVar3 = foo();
43 var v1 = _tempVar3.k1; 44 var v1 = _tempVar3.k1;
44 var v2 = _tempVar3.k2; 45 var v2 = _tempVar3.k2;
45 for (var _loopIndex4 = 0; _loopIndex4 < fooList.length; ++_loopIndex4) 46 for (var _loopIndex4 = 0; _loopIndex4 < fooList.length; ++_loopIndex4)
46 { 47 {
47 var v = fooList[_loopIndex4]; 48 var v = fooList[_loopIndex4];
48 alert(v); 49 alert(v);
49 } 50 }
50 for (var _loopIndex5 = 0; _loopIndex5 < fooList.length; ++_loopIndex5) 51 for (var _loopIndex5 = 0; _loopIndex5 < fooList.length; ++_loopIndex5)
51 { 52 {
52 var _tempVar6 = fooList[_loopIndex5]; 53 var _tempVar6 = fooList[_loopIndex5];
53 var a = _tempVar6[0]; 54 var i1 = _tempVar6[0];
54 var b = _tempVar6[1]; 55 var i2 = _tempVar6[1];
55 a += b; 56 i1 += i2;
56 b -= a; 57 i2 -= i1;
57 } 58 }
58 for (var _loopIndex7 = 0; _loopIndex7 < fooList.length; ++_loopIndex7) 59 for (var _loopIndex7 = 0; _loopIndex7 < fooList.length; ++_loopIndex7)
59 { 60 {
60 var _tempVar8 = fooList[_loopIndex7]; 61 var _tempVar8 = fooList[_loopIndex7];
61 var a = _tempVar8[0]; 62 var j1 = _tempVar8[0];
62 var b = _tempVar8[1]; 63 var j2 = _tempVar8[1];
63 } 64 }
64 for (var _loopIndex9 = 0; _loopIndex9 < fooList.length; ++_loopIndex9) 65 for (var _loopIndex9 = 0; _loopIndex9 < fooList.length; ++_loopIndex9)
65 { 66 {
66 k = fooList[_loopIndex9]; 67 k = fooList[_loopIndex9];
67 alert(k); 68 alert(k);
68 } 69 }
69 var a = function() 70 var arrow = function()
70 { 71 {
71 return 1; 72 return 1;
72 }; 73 };
73 var b = { 74 var getter = {
74 get foo() 75 get foo()
75 { 76 {
76 return 1; 77 return 1;
77 } 78 }
78 }; 79 };
79 80
80 function foo() 81 function foo()
81 { 82 {
82 return { 83 return {
83 foo: 1, 84 foo: 1,
84 bar: 2 85 bar: 2
85 }; 86 };
86 } 87 }
87 if (a == b) 88 if (a == b)
88 { 89 {
89 foo(); 90 foo();
90 } 91 }
91 else if (a == c) 92 else if (a == c)
92 { 93 {
93 bar(); 94 bar();
94 } 95 }
95 else 96 else
96 { 97 {
97 bas(); 98 bas();
98 } 99 }
99 if (a == b) 100 if (a == b)
100 {} 101 {}
101 for (var a = 0; a < b.length; a++) 102 for (var x = 0; x < b.length; x++)
102 { 103 {
103 foo(); 104 foo();
104 } 105 }
105 for (var a = 0; a < b.length; a++) 106 for (var y = 0; y < b.length; y++)
106 {} 107 {}
107 for (var a in b) 108 for (var i in b)
108 { 109 {
109 foo(); 110 foo();
110 } 111 }
111 for (var a in b) 112 for (var j in b)
112 {} 113 {}
113 while (a == b) 114 while (a == b)
114 { 115 {
115 foo(); 116 foo();
116 } 117 }
117 while (a == b) 118 while (a == b)
118 {} 119 {}
119 120
120 function genFunc() 121 function genFunc()
121 { 122 {
122 var _generatorResult10 = []; 123 var _generatorResult10 = [];
123 for (var i = 0; i < 10; i++) 124 for (var i = 0; i < 10; i++)
124 { 125 {
125 _generatorResult10.push(i); 126 _generatorResult10.push(i);
126 } 127 }
127 return _generatorResult10; 128 return _generatorResult10;
128 } 129 }
129 var a = function() 130 var func = function()
130 { 131 {
131 var _generatorResult10 = []; 132 var _generatorResult10 = [];
132 for (var i = 0; i < 10; i++) 133 for (var i = 0; i < 10; i++)
133 { 134 {
134 _generatorResult10.push(i); 135 _generatorResult10.push(i);
135 } 136 }
136 return _generatorResult10; 137 return _generatorResult10;
137 }; 138 };
138 var x = function(y) 139 var x = function(y)
139 { 140 {
140 return y + 1; 141 return y + 1;
141 }; 142 };
142 x = function(y) 143 x = function(y)
143 { 144 {
144 return y + 1; 145 return y + 1;
145 }; 146 };
146 x = function(a, b) 147 x = function(a, b)
147 { 148 {
148 return this[a] + b; 149 return this[a] + b;
149 }.bind(this); 150 }.bind(this);
150 x = function(a, b) 151 x = function(a, b)
151 { 152 {
152 return function() 153 return function()
153 { 154 {
154 return 1; 155 return 1;
155 }; 156 };
156 }.bind(this); 157 }.bind(this);
157 return exports; 158 return exports;
158 }); 159 });
OLDNEW
« no previous file with comments | « autotest/test_abprewrite_autoload.js.expected ('k') | scripts/astDecompile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld