]> git.r.bdr.sh - rbdr/dotfiles/blob
b31b84cb61bed97a307dfb025fc61f92917d6d65
[rbdr/dotfiles] /
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
12 assert.init(do_throw);
13
14 for (let k in mod) {
15 if (/^test/.test(k)) {
16 mod[k](assert, util);
17 }
18 }
19
20 }
21 this.runSourceMapTests = runSourceMapTests;