Bug 536503 - Fix for test
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 14 Jun 2011 13:47:23 +1200
changeset 71031 cdb2ccff9107bef7bd930622c3591ecf310820e9
parent 71030 09428adfd4a838f2bbc29813b9cca2082ae7b0ea
child 71032 c0e225533110b03bde551959370a7bf7969c80ed
push id20471
push userdgottwald@mozilla.com
push dateTue, 14 Jun 2011 04:23:37 +0000
treeherdermozilla-central@c0e225533110 [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 {