suffix-utils.jsm 543 B

123456789101112131415161718192021
  1. /* -*- Mode: js; js-indent-level: 2; -*- */
  2. /*
  3. * Copyright 2011 Mozilla Foundation and contributors
  4. * Licensed under the New BSD license. See LICENSE or:
  5. * http://opensource.org/licenses/BSD-3-Clause
  6. */
  7. function runSourceMapTests(modName, do_throw) {
  8. let mod = require(modName);
  9. let assert = require('test/source-map/assert');
  10. let util = require('test/source-map/util');
  11. assert.init(do_throw);
  12. for (let k in mod) {
  13. if (/^test/.test(k)) {
  14. mod[k](assert, util);
  15. }
  16. }
  17. }
  18. this.runSourceMapTests = runSourceMapTests;