Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / netwerk / test / unit_ipc / test_http3_prio_disabled_wrap.js
blob8704484d1335d0e991ba1fc3e05936ead53935f0
1 //
2 // Run test script in content process instead of chrome (xpcshell's default)
3 //
5 registerCleanupFunction(async () => {
6   Services.prefs.clearUserPref("network.http.http3.priority");
7   Services.prefs.clearUserPref("network.http.priority_header.enabled");
8   http3_clear_prefs();
9 });
11 // setup will be called before the child process tests
12 add_task(async function setup() {
13   await http3_setup_tests("h3-29");
14 });
16 async function run_test() {
17   // test priority urgency and incremental with priority disabled
18   Services.prefs.setBoolPref("network.http.http3.priority", false);
19   Services.prefs.setBoolPref("network.http.priority_header.enabled", false);
20   run_test_in_child("../unit/test_http3_prio_disabled.js");
21   run_next_test(); // only pumps next async task from this file