| Index: chrome/content/tests/filterStorage_readwrite.js |
| =================================================================== |
| --- a/chrome/content/tests/filterStorage_readwrite.js |
| +++ b/chrome/content/tests/filterStorage_readwrite.js |
| @@ -65,29 +65,29 @@ |
| let tempFile2 = FileUtils.getFile("TmpD", ["temp_patterns2.ini"]); |
| tempFile.createUnique(tempFile.NORMAL_FILE_TYPE, FileUtils.PERMS_FILE); |
| createTempFile(); |
| function canonize(data) |
| { |
| let curSection = null; |
| let sections = []; |
| - for each (let line in (data + "\n[end]").split(/[\r\n]+/)) |
| + for (let line of (data + "\n[end]").split(/[\r\n]+/)) |
| { |
| if (/^\[.*\]$/.test(line)) |
| { |
| if (curSection) |
| sections.push(curSection); |
| curSection = {header: line, data: []}; |
| } |
| else if (curSection && /\S/.test(line)) |
| curSection.data.push(line); |
| } |
| - for each (let section in sections) |
| + for (let section of sections) |
| { |
| section.key = section.header + " " + section.data[0]; |
| section.data.sort(); |
| } |
| sections.sort(function(a, b) |
| { |
| if (a.key < b.key) |
| return -1; |