Bug 536503 - Fix for test
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 14 Jun 2011 13:47:23 +1200
changeset 71542 142532172c8c7caaf9b6638830ef9b8dfbd42390
parent 71541 0715dd3bbfb88bbf4b1e33287fbe8e6bef50757b
child 71543 6eb2bcc24f7621ec8bad4636dcdd1976b6e197b8
push id159
push usereakhgari@mozilla.com
push dateTue, 16 Aug 2011 17:53:11 +0000
treeherdermozilla-beta@8786e3e49240 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs536503
milestone7.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 536503 - Fix for test
toolkit/mozapps/downloads/tests/unit/test_DownloadLastDirWithCPS.js
--- a/toolkit/mozapps/downloads/tests/unit/test_DownloadLastDirWithCPS.js
+++ b/toolkit/mozapps/downloads/tests/unit/test_DownloadLastDirWithCPS.js
@@ -118,17 +118,17 @@ function run_test() {
       do_check_eq(gDownloadLastDir.getFile(uri2).path, dir2.path); // set in CPS
       do_check_eq(gDownloadLastDir.getFile(uri3).path, dir3.path); // set in CPS
       do_check_eq(gDownloadLastDir.getFile(uri4).path, dir2.path); // fallback
     }
 
     { // check clearHistory removes all data
       clearHistory();
       do_check_eq(gDownloadLastDir.file, null);
-      do_check_eq(Services.contentPrefs.hasPref(uri1, "lastDownloadDirectory"), false);
+      do_check_eq(Services.contentPrefs.hasPref(uri1, "browser.download.lastDir"), false);
       do_check_eq(gDownloadLastDir.getFile(uri1), null);
       do_check_eq(gDownloadLastDir.getFile(uri2), null);
       do_check_eq(gDownloadLastDir.getFile(uri3), null);
       do_check_eq(gDownloadLastDir.getFile(uri4), null);
     }
 
     let pb;
     try {