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

Unified Diff: chrome/content/tests/subscriptionClasses.js

Issue 6423769060999168: Issue 301 - adblockplustests: Use for (.. of ..) (Closed)
Patch Set: Created April 12, 2014, 1:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/content/tests/popupBlocker.js ('k') | chrome/content/tests/synchronizer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/subscriptionClasses.js
===================================================================
--- a/chrome/content/tests/subscriptionClasses.js
+++ b/chrome/content/tests/subscriptionClasses.js
@@ -8,17 +8,17 @@
let subscription = Subscription.fromURL(url);
if (postInit)
postInit(subscription)
let result = [];
subscription.serialize(result);
equal(result.sort().join("\n"), expected.sort().join("\n"), url);
let map = {__proto__: null};
- for each (let line in result.slice(1))
+ for (let line of result.slice(1))
{
if (/(.*?)=(.*)/.test(line))
map[RegExp.$1] = RegExp.$2;
}
let subscription2 = Subscription.fromObject(map);
equal(subscription.toString(), subscription2.toString(), url + " deserialization");
}
« no previous file with comments | « chrome/content/tests/popupBlocker.js ('k') | chrome/content/tests/synchronizer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld