зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1638396 - add backed changes test_file_os_delete.html CLOSED TREE
This commit is contained in:
Родитель
a3756e9077
Коммит
de60aa270b
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче