Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4917)

Unified Diff: chrome/test/data/extensions/api_test/save_page/test.js

Issue 8530003: Delete the temporary file when generating MHTML with the extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more sync Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/save_page/test.js
diff --git a/chrome/test/data/extensions/api_test/save_page/test.js b/chrome/test/data/extensions/api_test/save_page/test.js
index 9b69cd9aaf19a579f6e388614f9836c546c4ead0..d199bb2dd0979c534113855db91b1503e3717499 100644
--- a/chrome/test/data/extensions/api_test/save_page/test.js
+++ b/chrome/test/data/extensions/api_test/save_page/test.js
@@ -40,7 +40,9 @@ chrome.test.getConfig(function(config) {
var text = e.target.result;
assertTrue(text.indexOf(testUrl) != -1);
assertTrue(text.indexOf("logo.png") != -1);
- chrome.test.notifyPass();
+ // Run the GC so the blob is deleted.
+ window.setTimeout(function() { window.gc(); });
+ window.setTimeout(function() { chrome.test.notifyPass(); }, 0);
};
reader.readAsText(data);
});

Powered by Google App Engine
This is Rietveld 408576698