1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
6 const TEST_URL
= EXAMPLE_URL
+ "html_internal-stylesheet.html";
9 * Test for the stylesheet which is loaded as internal.
11 add_task(async
function () {
12 const { monitor
} = await
initNetMonitor(TEST_URL
, {
16 const wait
= waitForNetworkEvents(monitor
, 2);
17 await
reloadBrowser();
20 const { store
} = monitor
.panelWin
;
21 const requests
= store
.getState().requests
.requests
;
25 "The number of requests state in the store is correct"
28 const styleSheetRequest
= requests
.find(
29 r
=> r
.urlDetails
.baseNameWithQuery
=== "internal-loaded.css"
33 "The stylesheet which is loaded as internal is in the request"
36 return teardown(monitor
);