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; |