diff options
Diffstat (limited to 'devtools/shared/tests/unit/test_require_raw.js')
-rw-r--r-- | devtools/shared/tests/unit/test_require_raw.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/devtools/shared/tests/unit/test_require_raw.js b/devtools/shared/tests/unit/test_require_raw.js new file mode 100644 index 0000000000..5bec82b55b --- /dev/null +++ b/devtools/shared/tests/unit/test_require_raw.js @@ -0,0 +1,19 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +// Test require using "raw!". + +function run_test() { + let loader = new DevToolsLoader(); + let require = loader.require; + + let variableFileContents = require("raw!devtools/client/themes/variables.css"); + ok(variableFileContents.length > 0, "raw browserRequire worked"); + + let propertiesFileContents = require("raw!devtools/client/locales/shared.properties"); + ok(propertiesFileContents.length > 0, "unprefixed properties raw require worked"); + + let chromePropertiesFileContents = + require("raw!chrome://devtools/locale/shared.properties"); + ok(chromePropertiesFileContents.length > 0, "prefixed properties raw require worked"); +} |