From a7e4511062d4e41b6e3e6c1d3e735dec607ae5de Mon Sep 17 00:00:00 2001 From: Justin Dolske Date: Sun, 13 Dec 2009 18:42:14 -0800 Subject: [PATCH] Fix test broken by bug 458812. --- toolkit/components/satchel/test/unit/test_bug_329741.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/toolkit/components/satchel/test/unit/test_bug_329741.js b/toolkit/components/satchel/test/unit/test_bug_329741.js index c2d38114894..958a66be4f5 100644 --- a/toolkit/components/satchel/test/unit/test_bug_329741.js +++ b/toolkit/components/satchel/test/unit/test_bug_329741.js @@ -42,7 +42,9 @@ function run_test() { var file = do_get_file("formhistory.dat"); - var formhistFile = dirSvc.get("ProfD", Ci.nsIFile); + var profileDir = dirSvc.get("ProfD", Ci.nsIFile); + var formhistFile = profileDir.clone(); + formhistFile.append("formhistory.dat"); // Cleanup from any previous test. if (formhistFile.exists()) @@ -50,8 +52,7 @@ function run_test() do_check_false(formhistFile.exists()); // Copy a formhistory.dat into place - file.copyTo(formhistFile, "formhistory.dat"); - formhistFile.append("formhistory.dat"); + file.copyTo(profileDir, "formhistory.dat"); do_check_true(formhistFile.exists()); // Clear form history, test that file was deleted.