bug 793250 - clean up after test_download_samename.js (r=wesj)

---
 .../downloads/test/unit/test_download_samename.js           |   11 +++++++++++
 1 file changed, 11 insertions(+)
This commit is contained in:
Mook 2012-11-22 21:47:56 -08:00
parent 19c88d3a3a
commit a2c3a969b4

View File

@ -90,6 +90,17 @@ let DownloadListener = {
function runNextTest()
{
if (currentTest == tests.length) {
for each (var file in DownloadListener.prevFiles) {
try {
file.remove(false);
} catch (ex) {
try {
do_report_unexpected_exception(ex, "while removing " + file.path);
} catch (ex if ex == Components.results.NS_ERROR_ABORT) {
/* swallow */
}
}
}
httpserver.stop(do_test_finished);
return;
}