зеркало из https://github.com/mozilla/gecko-dev.git
27 строки
794 B
JavaScript
27 строки
794 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
// Test require using "raw!".
|
|
|
|
function run_test() {
|
|
const loader = new DevToolsLoader();
|
|
const require = loader.require;
|
|
|
|
const variableFileContents = require("raw!devtools/client/themes/variables.css");
|
|
ok(variableFileContents.length > 0, "raw browserRequire worked");
|
|
|
|
const propertiesFileContents = require("raw!devtools/client/locales/shared.properties");
|
|
ok(
|
|
propertiesFileContents.length > 0,
|
|
"unprefixed properties raw require worked"
|
|
);
|
|
|
|
const chromePropertiesFileContents = require("raw!chrome://devtools/locale/shared.properties");
|
|
ok(
|
|
chromePropertiesFileContents.length > 0,
|
|
"prefixed properties raw require worked"
|
|
);
|
|
}
|