Bug 1638396 - add backed changes test_file_os_delete.html CLOSED TREE

This commit is contained in:
smolnar 2020-10-16 16:59:37 +03:00
Родитель a3756e9077
Коммит de60aa270b
1 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -62,9 +62,13 @@
is(event.type, "success", "Got correct event type");
getCurrentUsage(grabFileUsageAndContinueHandler);
let usage = yield undefined;
let originalUsage = yield undefined;
is(usage, startUsage + fileData1.obj.file.size + fileData2.obj.file.size,
// FIXME This might not work in private browsing mode because of the
// encryption overhead. We need to decide how to handle that. We might
// change the usage reporting to remove the overhead.
is(originalUsage, startUsage + fileData1.obj.file.size + fileData2.obj.file.size,
"Correct file usage");
let trans = db.transaction([objectStoreName], READ_WRITE);
@ -75,10 +79,9 @@
is(event.type, "complete", "Got correct event type");
getCurrentUsage(grabFileUsageAndContinueHandler);
usage = yield undefined;
let usage = yield undefined;
is(usage, startUsage + fileData1.obj.file.size + fileData2.obj.file.size,
"OS files exists");
is(usage, originalUsage, "OS files exists");
fileData1.obj.file = null;
fileData2.obj.file = null;