mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix test broken by bug 458812.
This commit is contained in:
parent
a3ad9aac19
commit
a7e4511062
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user