mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-10-21 14:51:49 +02:00
feat: Windows RAM profiles
This commit is contained in:
1 parent
f493c9ef7c
commit
58b0febe42
29 files changed
+3087
-109
No files matched your search
@@ -78,6 +78,7 @@ export const commandCoverage = {
|
||||
"profile_totp::add_profile_totp",
|
||||
"profile_totp::delete_profile_totp",
|
||||
"profile_totp::get_profile_totp_codes",
|
||||
"ephemeral_dirs::get_ephemeral_storage_status",
|
||||
"rename_profile",
|
||||
"detect_existing_profiles",
|
||||
"import_browser_profiles",
|
||||
|
||||
@@ -1522,6 +1522,17 @@ test("a storage state file moves cookies and Local Storage into a closed profile
|
||||
}),
|
||||
/LOCAL_STORAGE_EPHEMERAL/,
|
||||
);
|
||||
|
||||
const storage = await app.invoke("get_ephemeral_storage_status");
|
||||
assert.deepEqual(Object.keys(storage).sort(), ["in_memory", "reason"]);
|
||||
if (process.platform === "win32") {
|
||||
assert.equal(storage.in_memory, storage.reason === null);
|
||||
if (storage.reason !== null) {
|
||||
assert.match(storage.reason, /^winfsp_(missing|error)$/);
|
||||
}
|
||||
} else {
|
||||
assert.deepEqual(storage, { in_memory: true, reason: null });
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user