From de60aa270b7d064a3e2bba261456cf7d88f9b2fb Mon Sep 17 00:00:00 2001 From: smolnar Date: Fri, 16 Oct 2020 16:59:37 +0300 Subject: [PATCH] Bug 1638396 - add backed changes test_file_os_delete.html CLOSED TREE --- dom/indexedDB/test/test_file_os_delete.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dom/indexedDB/test/test_file_os_delete.html b/dom/indexedDB/test/test_file_os_delete.html index 18bc03497dfc..547fc415e39d 100644 --- a/dom/indexedDB/test/test_file_os_delete.html +++ b/dom/indexedDB/test/test_file_os_delete.html @@ -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;