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

Side by Side Diff: chrome/content/tests/test_requestList.html

Issue 6423769060999168: Issue 301 - adblockplustests: Use for (.. of ..) (Closed)
Patch Set: Created April 12, 2014, 1:48 p.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 | « chrome/content/tests/synchronizer.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Tests for request data</title> 4 <title>Tests for request data</title>
5 5
6 <link rel="stylesheet" type="text/css" href="/content/tests/SimpleTest/test.cs s" /> 6 <link rel="stylesheet" type="text/css" href="/content/tests/SimpleTest/test.cs s" />
7 7
8 <script type="text/javascript" src="/content/MochiKit/MochiKit.js"></script> 8 <script type="text/javascript" src="/content/MochiKit/MochiKit.js"></script>
9 <script type="application/x-javascript;version=1.7" src="../httpd.js"></script > 9 <script type="application/x-javascript;version=1.7" src="../httpd.js"></script >
10 <script type="text/javascript; version=1.7" src="/content/tests/SimpleTest/spe cialpowersAPI.js"></script> 10 <script type="text/javascript; version=1.7" src="/content/tests/SimpleTest/spe cialpowersAPI.js"></script>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 frameData.push({wnd: wnd, node: node, entry: entry}); 108 frameData.push({wnd: wnd, node: node, entry: entry});
109 109
110 checkScanDone(); 110 checkScanDone();
111 }); 111 });
112 112
113 function checkScanDone() 113 function checkScanDone()
114 { 114 {
115 if (wndScanComplete && frameScanComplete) 115 if (wndScanComplete && frameScanComplete)
116 { 116 {
117 // Fold duplicate entries 117 // Fold duplicate entries
118 for each (let list in [wndData, frameData]) 118 for (let list of [wndData, frameData])
119 { 119 {
120 let keys = {}; 120 let keys = {};
121 for (let i = 0; i < list.length; i++) 121 for (let i = 0; i < list.length; i++)
122 { 122 {
123 let key = " " + list[i].entry.location + " " + list[i].entry.type + " " + list[i].entry.docDomain; 123 let key = " " + list[i].entry.location + " " + list[i].entry.type + " " + list[i].entry.docDomain;
124 if (key in keys) 124 if (key in keys)
125 { 125 {
126 list.splice(keys[key], 1); 126 list.splice(keys[key], 1);
127 i--; 127 i--;
128 } 128 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 server.stop(); 245 server.stop();
246 } 246 }
247 247
248 let server = new nsHttpServer(); 248 let server = new nsHttpServer();
249 SimpleTest.waitForExplicitFinish(); 249 SimpleTest.waitForExplicitFinish();
250 addLoadEvent(start); 250 addLoadEvent(start);
251 </script> 251 </script>
252 </pre> 252 </pre>
253 </body> 253 </body>
254 </html> 254 </html>
OLDNEW
« no previous file with comments | « chrome/content/tests/synchronizer.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld