Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

  • This test gets skipped with pattern: os == 'android' && android_version == '24' && processor == 'x86_64' OR os == 'android' && android_version == '34' && processor == 'x86_64'
  • Manifest: devtools/shared/tests/xpcshell/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
// Test require using "raw!".
function run_test() {
const loader = new DevToolsLoader();
const require = loader.require;
const variableFileContents = require("raw!chrome://devtools/skin/variables.css");
ok(!!variableFileContents.length, "raw browserRequire worked");
const propertiesFileContents = require("raw!devtools/client/locales/shared.properties");
ok(
!!propertiesFileContents.length,
"unprefixed properties raw require worked"
);
const chromePropertiesFileContents = require("raw!chrome://devtools/locale/shared.properties");
ok(
!!chromePropertiesFileContents.length,
"prefixed properties raw require worked"
);
}