1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
7 * Tests if the empty-requests reload button works.
10 add_task(async
function () {
11 const { monitor
} = await
initNetMonitor(SIMPLE_URL
, { requestCount
: 1 });
12 info("Starting test... ");
14 const { document
} = monitor
.panelWin
;
16 const wait
= waitForNetworkEvents(monitor
, 1);
17 EventUtils
.sendMouseEvent(
19 document
.querySelector(".requests-list-reload-notice-button")
24 document
.querySelectorAll(".request-list-item").length
,
26 "The request list should have one item after reloading"
29 return teardown(monitor
);