[DEFAULT]
run-if = [
  "os != 'android'",
]
head = "head.js"
firefox-appdir = "browser"
prefs = [
  "browser.backup.log=true",
  "browser.backup.archive.enabled=true",
  "browser.backup.restore.enabled=true",
  # Profile backup is disabled when SQLite at-rest encryption is on
  # (Bug 1996558); run these tests with it off (the production default).
  "security.storage.encryption.sqlite.enabled=false",
]

["test_AddonsBackupResource.js"]

["test_ArchiveEncryption.js"]

["test_ArchiveEncryptionState.js"]

["test_ArchiveEncryption_nonce.js"]

["test_ArchiveUtils_countReplacementCharacters.js"]

["test_BackupResource.js"]
support-files = ["data/test_xulstore.json"]

["test_BackupService.js"]
support-files = [
  "data/test_archive.template.html",
  "data/test_keep_file_open.worker.js"
]

["test_BackupService_archive.js"]
requesttimeoutfactor = 2  # Slow on macOS debug
support-files = [
  "data/corrupt.zip",
  "data/break_over_unicode.html",
  "data/missing_binary_block.html",
  "data/missing_json_block.html",
]

["test_BackupService_crossProfileTypeRecovery.js"]
prefs = [
  "browser.backup.profiles.force-enable=true",
]

["test_BackupService_enable_disable_encryption.js"]

["test_BackupService_enabled.js"]

["test_BackupService_enabledListPref.js"]
head = "../../../../../toolkit/profile/test/xpcshell/head.js ../../../profiles/tests/unit/head.js head.js"
prefs = [
  "browser.profiles.created=false",
  "browser.profiles.enabled=true",
]

["test_BackupService_finalizeSingleFileArchive.js"]

["test_BackupService_internalPostRecovery.js"]

["test_BackupService_onedrive.js"]
run-if = [
  "os == 'win'",
]
run-sequentially = ["true"] # Mock Windows registry interferes with normal operations

["test_BackupService_recoverFromSnapshotFolder.js"]

["test_BackupService_recoverFromSnapshotFolderIntoSelectableProfile.js"]

["test_BackupService_regeneration.js"]

["test_BackupService_renderTemplate.js"]

["test_BackupService_resolveArchiveDestFolderPath.js"]

["test_BackupService_resolveDownloadLink.js"]

["test_BackupService_restoreStepTelemetry.js"]

["test_BackupService_retryHeuristic.js"]

["test_BackupService_scheduler.js"]

["test_BackupService_schema_versions.js"]

["test_BackupService_setParentDirPath.js"]

["test_BackupService_takeMeasurements.js"]

["test_BackupService_telemetry.js"]

["test_BackupService_wrongPassword.js"]

["test_BookmarksBackupResource.js"]

["test_CookiesBackupResource.js"]

["test_CredentialsAndSecurityBackupResource.js"]

["test_FormHistoryBackupResource.js"]

["test_MeasurementUtils_fuzzByteSize.js"]

["test_MiscDataBackupResource.js"]

["test_PlacesBackupResource.js"]

["test_PreferencesBackupResource.js"]

["test_PreferencesBackupResource_Nimbus.js"]

["test_PreferencesBackupResource_searchEngines.js"]

["test_PreferencesBackupResource_selectableProfile.js"]

["test_ResourceFailures.js"]

["test_SelectableProfileBackupResource.js"]
head = "../../../../../toolkit/profile/test/xpcshell/head.js ../../../profiles/tests/unit/head.js head.js"
support-files = ["data/fake_avatar.png"]
prefs = [
  "browser.profiles.enabled=true",
  "browser.profiles.created=false",
]

["test_SessionStoreBackupResource.js"]

["test_SessionStoreBackupResource_mockSessionStore.js"]

["test_SiteSettingsBackupResource.js"]

["test_backupService_findBackupsInWellKnownLocations.js"]
