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

Unified Diff: chrome/content/tests/filterNotifier.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/filterListener.js ('k') | chrome/content/tests/filterStorage_readwrite.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/filterNotifier.js
===================================================================
--- a/chrome/content/tests/filterNotifier.js
+++ b/chrome/content/tests/filterNotifier.js
@@ -10,17 +10,17 @@
];
function compareListeners(test, list)
{
let result1 = triggeredListeners = [];
FilterNotifier.triggerListeners("foo", {bar: true});
let result2 = triggeredListeners = [];
- for each (let observer in list)
+ for (let observer of list)
observer("foo", {bar: true});
deepEqual(result1, result2, test);
}
test("Adding/removing listeners", function()
{
let [listener1, listener2, listener3] = listeners;
« no previous file with comments | « chrome/content/tests/filterListener.js ('k') | chrome/content/tests/filterStorage_readwrite.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld