/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ // There are shutdown issues for which multiple rejections are left uncaught. // See bug 1018184 for resolving these issues. const { PromiseTestUtils } = ChromeUtils.importESModule( "resource://testing-common/PromiseTestUtils.sys.mjs" ); PromiseTestUtils.allowMatchingRejectionsGlobally(/File closed/); Services.scriptloader.loadSubScript( "chrome://mochitests/content/browser/devtools/client/inspector/test/shared-head.js", this ); // On debug test machine, it takes about 50s to run the test. requestLongerTimeout(4); // Check that CSS rules are displayed with the proper source label in the // browser toolbox. add_task(async function () { // Forces the Browser Toolbox to open on the inspector by default await pushPref("devtools.browsertoolbox.panel", "inspector"); // Enable Multiprocess Browser Toolbox await pushPref("devtools.browsertoolbox.scope", "everything"); const ToolboxTask = await initBrowserToolboxTask(); await ToolboxTask.importFunctions({ getNodeFront, getNodeFrontInFrames, getRuleViewLinkByIndex, selectNode, // selectNodeInFrames depends on selectNode, getNodeFront, getNodeFrontInFrames. selectNodeInFrames, }); // This is a simple test page, which contains a