From b4fb1a73e4bdce4f1bf18daf751ff02587da1b84 Mon Sep 17 00:00:00 2001 From: "sdwilsh%shawnwilsher.com" Date: Thu, 24 May 2007 00:38:48 +0000 Subject: [PATCH] Bug 381646 - Re-enable tests for download manager (windows orange patch). r=sayrer --- .../components/downloads/test/unit/test_download_manager.js | 3 ++- .../downloads/test/unit/test_download_manager_migration.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/toolkit/components/downloads/test/unit/test_download_manager.js b/toolkit/components/downloads/test/unit/test_download_manager.js index 1a72e2b906a..b673c4db990 100644 --- a/toolkit/components/downloads/test/unit/test_download_manager.js +++ b/toolkit/components/downloads/test/unit/test_download_manager.js @@ -46,7 +46,8 @@ function cleanup() // removing database var dbFile = dirSvc.get("ProfD", Ci.nsIFile); dbFile.append("downloads.sqlite"); - if (dbFile.exists()) dbFile.remove(true); + if (dbFile.exists()) + try { dbFile.remove(true); } catch(e) { /* stupid windows box */ } // removing downloaded file var destFile = dirSvc.get("ProfD", Ci.nsIFile); diff --git a/toolkit/components/downloads/test/unit/test_download_manager_migration.js b/toolkit/components/downloads/test/unit/test_download_manager_migration.js index feae577a520..ec16746f742 100644 --- a/toolkit/components/downloads/test/unit/test_download_manager_migration.js +++ b/toolkit/components/downloads/test/unit/test_download_manager_migration.js @@ -48,7 +48,8 @@ function cleanup() // removing database var dbFile = dirSvc.get("ProfD", Ci.nsIFile); dbFile.append("downloads.sqlite"); - if (dbFile.exists()) dbFile.remove(true); + if (dbFile.exists()) + try { dbFile.remove(true); } catch(e) { /* stupid windows box */ } } cleanup();