diff --git a/browser/components/privatebrowsing/test/unit/xpcshell.ini b/browser/components/privatebrowsing/test/unit/xpcshell.ini index 9dc3cd734a6b..0123470ed1da 100644 --- a/browser/components/privatebrowsing/test/unit/xpcshell.ini +++ b/browser/components/privatebrowsing/test/unit/xpcshell.ini @@ -5,7 +5,6 @@ tail = tail_privatebrowsing.js [test_0-privatebrowsing.js] [test_0-privatebrowsingwrapper.js] [test_aboutprivatebrowsing.js] -[test_httpauth.js] [test_placesTitleNoUpdate.js] [test_privatebrowsing_autostart.js] [test_privatebrowsing_commandline.js] diff --git a/browser/components/privatebrowsing/test/unit/test_httpauth.js b/netwerk/test/unit/test_httpauth.js similarity index 97% rename from browser/components/privatebrowsing/test/unit/test_httpauth.js rename to netwerk/test/unit/test_httpauth.js index c3c2ee4990dd..21d4b04a5b31 100644 --- a/browser/components/privatebrowsing/test/unit/test_httpauth.js +++ b/netwerk/test/unit/test_httpauth.js @@ -7,7 +7,12 @@ Components.utils.import("resource://gre/modules/Services.jsm"); -function run_test_on_service() { +const Cc = Components.classes; +const Ci = Components.interfaces; +const Cr = Components.results; +const Cu = Components.utils; + +function run_test() { var am = Cc["@mozilla.org/network/http-auth-manager;1"]. getService(Ci.nsIHttpAuthManager); @@ -97,7 +102,3 @@ function run_test_on_service() { } } -// Support running tests on both the service itself and its wrapper -function run_test() { - run_test_on_all_services(); -} diff --git a/netwerk/test/unit/xpcshell.ini b/netwerk/test/unit/xpcshell.ini index bd56f1a31f11..62f15231e55c 100644 --- a/netwerk/test/unit/xpcshell.ini +++ b/netwerk/test/unit/xpcshell.ini @@ -142,6 +142,7 @@ skip-if = os == "android" [test_header_Accept-Language.js] [test_headers.js] [test_http_headers.js] +[test_httpauth.js] [test_httpcancel.js] [test_httpsuspend.js] [test_idnservice.js]