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

Side by Side Diff: autotest/abprewrite_source.js

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 | « no previous file | autotest/test_abprewrite.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 const Cc = Components.classes 1 const Cc = Components.classes
2 const Ci = Components.interfaces; 2 const Ci = Components.interfaces;
3 const Cu = Components.utils; 3 const Cu = Components.utils;
4 const Cr = Components.results; 4 const Cr = Components.results;
5 const Cl = Components.unknown; 5 const Cl = Components.unknown;
6 6
7 Cu.import("foo/bar.jsm"); 7 Cu.import("foo/bar.jsm");
8 8
9 "foo \x2B bar \n\r\x02\x0F\x1E";
10
9 let {Utils} = require("utils"); 11 let {Utils} = require("utils");
10 let {Filter, BlockingFilter} = require("filterClasses"); 12 let {Filter, BlockingFilter} = require("filterClasses");
11 13
12 let foo; 14 let foovar;
13 let bar = 2; 15 let bar = 2;
14 var bas; 16 var bas;
15 const FOO = "FOO"; 17 const FOO = "FOO";
16 18
17 let [a, b] = foo(); 19 let [a, b] = foo();
18 [a, b] = [1, 2]; 20 [a, b] = [1, 2];
19 21
20 let {x: y} = foo(); 22 let {x: prop} = foo();
21 let {k1: v1, k2: v2} = foo(); 23 let {k1: v1, k2: v2} = foo();
22 24
23 25
24 for (let v of fooList) 26 for (let v of fooList)
25 alert(v); 27 alert(v);
26 28
27 for (let [a, b] of fooList) 29 for (let [i1, i2] of fooList)
28 { 30 {
29 a += b; 31 i1 += i2;
30 b -= a; 32 i2 -= i1;
31 } 33 }
32 34
33 for (let [a, b] of fooList); 35 for (let [j1, j2] of fooList);
34 36
35 for (k of fooList) 37 for (k of fooList)
36 alert(k); 38 alert(k);
37 39
38 40
39 let a = function() { return 1; }; 41 let arrow = () => 1;
40 let b = { 42 let getter = {
41 get foo() { return 1; } 43 get foo() { return 1; }
42 }; 44 };
43 45
44 function foo() 46 function foo()
45 { 47 {
46 return {foo: 1, bar: 2}; 48 return {foo: 1, bar: 2};
47 } 49 }
48 50
49 if (a == b) 51 if (a == b)
50 foo(); 52 foo();
51 else if (a == c) 53 else if (a == c)
52 bar(); 54 bar();
53 else 55 else
54 bas(); 56 bas();
55 if (a == b); 57 if (a == b);
56 58
57 for (let a = 0; a < b.length; a++) 59 for (let x = 0; x < b.length; x++)
58 foo(); 60 foo();
59 for (var a = 0; a < b.length; a++); 61 for (var y = 0; y < b.length; y++);
60 62
61 for (let a in b) 63 for (let i in b)
62 foo(); 64 foo();
63 for (var a in b); 65 for (var j in b);
64 66
65 while (a==b) 67 while (a==b)
66 foo(); 68 foo();
67 while (a==b); 69 while (a==b);
68 70
69 function genFunc() 71 function* genFunc()
70 { 72 {
71 for (var i = 0; i < 10; i++) 73 for (var i = 0; i < 10; i++)
72 { 74 {
73 yield i; 75 yield i;
74 } 76 }
75 } 77 }
76 var a = function() 78 var func = function*()
77 { 79 {
78 for (var i = 0; i < 10; i++) 80 for (var i = 0; i < 10; i++)
79 { 81 {
80 yield i; 82 yield i;
81 } 83 }
82 }; 84 };
83 85
84 let x = (y) => y + 1; 86 let x = (y) => y + 1;
85 x = y => y + 1; 87 x = y => y + 1;
86 x = (a, b) => this[a] + b; 88 x = (a, b) => this[a] + b;
87 x = (a, b) => { return () => 1; } 89 x = (a, b) => { return () => 1; }
OLDNEW
« no previous file with comments | « no previous file | autotest/test_abprewrite.js.expected » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld