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

Unified Diff: test/filterStorage_readwrite.js

Issue 29900557: Issue 7016 - Convert serialization functions into generators (Closed)
Patch Set: Created Oct. 3, 2018, 11:47 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 | « test/filterClasses.js ('k') | test/subscriptionClasses.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/filterStorage_readwrite.js
===================================================================
--- a/test/filterStorage_readwrite.js
+++ b/test/filterStorage_readwrite.js
@@ -165,17 +165,17 @@
let importer = FilterStorage.importData();
for (let line of lines)
importer(line);
importer(null);
test.equal(FilterStorage.fileProperties.version, FilterStorage.formatVersion, "File format version");
- let exported = Array.from(FilterStorage.exportData());
+ let exported = [...FilterStorage.exportData()];
test.deepEqual(canonize(exported), canonize(lines), "Import/export result");
}).catch(unexpectedError.bind(test)).then(() => test.done());
};
exports.testSavingWithoutBackups = function(test)
{
Prefs.patternsbackups = 0;
Prefs.patternsbackupinterval = 24;
« no previous file with comments | « test/filterClasses.js ('k') | test/subscriptionClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld