gecko-dev/browser/components/migration/tests/unit/test_Edge_availability.js
Gijs Kruitbosch 14415f1212 Bug 1246591 - fix whitespace issues, r=MattN
--HG--
extra : commitid : JI5mQGtLa2f
extra : rebase_source : a8aff743dac30977112b5ce6420631c432601b41
2016-02-08 12:03:10 +00:00

18 lines
754 B
JavaScript

const EDGE_AVAILABLE_MIGRATIONS =
MigrationUtils.resourceTypes.COOKIES |
MigrationUtils.resourceTypes.BOOKMARKS |
MigrationUtils.resourceTypes.HISTORY |
MigrationUtils.resourceTypes.PASSWORDS;
add_task(function* () {
let migrator = MigrationUtils.getMigrator("edge");
Cu.import("resource://gre/modules/AppConstants.jsm");
Assert.equal(!!(migrator && migrator.sourceExists), AppConstants.isPlatformAndVersionAtLeast("win", "10"),
"Edge should be available for migration if and only if we're on Win 10+");
if (migrator) {
let migratableData = migrator.getMigrateData(null, false);
Assert.equal(migratableData, EDGE_AVAILABLE_MIGRATIONS,
"All the data types we expect should be available");
}
});