Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: devtools/client/shared/test/browser.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
const { BrowserLoader } = ChromeUtils.importESModule(
"resource://devtools/shared/loader/browser-loader.sys.mjs"
);
const { require: browserRequire } = BrowserLoader({
window,
});
const variableFileContents = browserRequire(
"raw!chrome://devtools/skin/variables.css"
);
function test() {
ok(!!variableFileContents.length, "raw browserRequire worked");
delete window.getBrowserLoaderForWindow;
finish();
}