1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
7 * Test that clicking on the waterfall opens the timing sidebar panel.
10 add_task(async
function () {
11 const { tab
, monitor
} = await
initNetMonitor(
12 CONTENT_TYPE_WITHOUT_CACHE_URL
,
15 const { document
} = monitor
.panelWin
;
18 await
performRequests(monitor
, tab
, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS
);
20 info("Clicking waterfall and waiting for panel update.");
21 const wait
= waitForDOM(document
, "#timings-panel");
23 EventUtils
.sendMouseEvent(
24 { type
: "mousedown" },
25 document
.querySelectorAll(".requests-list-timings")[0]
31 document
.querySelector("#timings-tab[aria-selected=true]"),
32 "Timings tab is selected."
35 return teardown(monitor
);