summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit_ipc/test_http3_prio_disabled_wrap.js
blob: 38988cd45002f0c5cf98ec3a4206c6ea08f2f7a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
// Run test script in content process instead of chrome (xpcshell's default)
//

registerCleanupFunction(async () => {
  Services.prefs.clearUserPref("network.http.http3.priority");
  http3_clear_prefs();
});

// setup will be called before the child process tests
add_task(async function setup() {
  await http3_setup_tests("h3-29");
});

async function run_test() {
  // test priority urgency and incremental with priority disabled
  Services.prefs.setBoolPref("network.http.http3.priority", false);
  run_test_in_child("../unit/test_http3_prio_disabled.js");
  run_next_test(); // only pumps next async task from this file
}