test_require.js 519 B

123456789101112131415161718192021
  1. /* Any copyright is dedicated to the Public Domain.
  2. http://creativecommons.org/publicdomain/zero/1.0/ */
  3. // Test require
  4. // Ensure that DevtoolsLoader.require doesn't spawn multiple
  5. // loader/modules when early cached
  6. function testBug1091706() {
  7. let loader = new DevToolsLoader();
  8. let require = loader.require;
  9. let indent1 = require("devtools/shared/indentation");
  10. let indent2 = require("devtools/shared/indentation");
  11. do_check_true(indent1 === indent2);
  12. }
  13. function run_test() {
  14. testBug1091706();
  15. }