зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1690515 - Add missing do_get_profile calls to appropriate tests; r=dom-workers-and-storage-reviewers,necko-reviewers,sg,valentin
Differential Revision: https://phabricator.services.mozilla.com/D103886
This commit is contained in:
Родитель
c1cb6823e7
Коммит
89ca2a95fb
|
@ -210,6 +210,8 @@ async function testAdUrlClicked(serpUrl, adUrl, expectedAdKey) {
|
|||
}
|
||||
}
|
||||
|
||||
do_get_profile();
|
||||
|
||||
add_task(async function setup() {
|
||||
Services.prefs.setBoolPref(SearchUtils.BROWSER_SEARCH_PREF + "log", true);
|
||||
await SearchSERPTelemetry.init();
|
||||
|
|
|
@ -59,6 +59,8 @@ server.start(-1);
|
|||
const port = server.identity.primaryPort;
|
||||
const serverURL = "http://localhost:" + port;
|
||||
|
||||
do_get_profile();
|
||||
|
||||
registerCleanupFunction(() => {
|
||||
return new Promise(resolve => server.stop(resolve));
|
||||
});
|
||||
|
|
|
@ -26,6 +26,8 @@ function cacheRequestHandler(request, response) {
|
|||
response.bodyOutputStream.write(body, body.length);
|
||||
}
|
||||
|
||||
do_get_profile();
|
||||
|
||||
registerCleanupFunction(() => {
|
||||
return new Promise(resolve => server.stop(resolve));
|
||||
});
|
||||
|
|
|
@ -112,6 +112,8 @@ function makeTest(id, expectedJSON, useReportOnlyPolicy, callback) {
|
|||
}
|
||||
|
||||
function run_test() {
|
||||
do_get_profile();
|
||||
|
||||
var selfuri = NetUtil.newURI(
|
||||
REPORT_SERVER_URI + ":" + REPORT_SERVER_PORT + "/foo/self"
|
||||
);
|
||||
|
|
|
@ -91,6 +91,8 @@ function run_next_test() {
|
|||
}
|
||||
|
||||
function run_test() {
|
||||
do_get_profile();
|
||||
|
||||
// set up the test environment
|
||||
httpserver = new HttpServer();
|
||||
httpserver.registerPathHandler(testpath, serverHandler);
|
||||
|
|
|
@ -43,6 +43,7 @@ function finishIfDone()
|
|||
|
||||
function run_test()
|
||||
{
|
||||
do_get_profile();
|
||||
do_test_pending();
|
||||
|
||||
httpserver.registerPathHandler(testpath, serverHandler);
|
||||
|
|
|
@ -3,5 +3,6 @@
|
|||
//
|
||||
|
||||
function run_test() {
|
||||
do_get_profile();
|
||||
run_test_in_child("../unit/test_cacheflags.js");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче