1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
7 * Tests if "Request Priority" is displayed in the header panel.
9 add_task(async
function () {
10 const { monitor
} = await
initNetMonitor(POST_RAW_URL
, {
14 const { document
} = monitor
.panelWin
;
16 const waitReq
= waitForNetworkEvents(monitor
, 1);
17 EventUtils
.sendMouseEvent(
19 document
.querySelector(".requests-list-reload-notice-button")
23 // Wait until the tab panel summary is displayed
24 const wait
= waitUntil(
25 () => document
.querySelectorAll(".tabpanel-summary-label")[0]
27 EventUtils
.sendMouseEvent(
28 { type
: "mousedown" },
29 document
.querySelectorAll(".request-list-item")[0]
33 const requestPriorityHeaderExists
= Array
.from(
34 document
.querySelectorAll(".tabpanel-summary-label")
35 ).some(header
=> header
.textContent
=== "Request Priority");
37 requestPriorityHeaderExists
,
39 '"Request Priority" header is displayed in the header panel.'
42 return teardown(monitor
);