|
1 /* |
|
2 * WARNING! |
|
3 * |
|
4 * Do not edit this file directly, it is built from the sources at |
|
5 * https://github.com/mozilla/source-map/ |
|
6 */ |
|
7 |
|
8 Components.utils.import('resource://test/Utils.jsm'); |
|
9 /* -*- Mode: js; js-indent-level: 2; -*- */ |
|
10 /* |
|
11 * Copyright 2012 Mozilla Foundation and contributors |
|
12 * Licensed under the New BSD license. See LICENSE or: |
|
13 * http://opensource.org/licenses/BSD-3-Clause |
|
14 */ |
|
15 define("test/source-map/test-api", ["require", "exports", "module"], function (require, exports, module) { |
|
16 |
|
17 var sourceMap; |
|
18 try { |
|
19 sourceMap = require('source-map'); |
|
20 } catch (e) { |
|
21 sourceMap = {}; |
|
22 Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap); |
|
23 } |
|
24 |
|
25 exports['test that the api is properly exposed in the top level'] = function (assert, util) { |
|
26 assert.equal(typeof sourceMap.SourceMapGenerator, "function"); |
|
27 assert.equal(typeof sourceMap.SourceMapConsumer, "function"); |
|
28 assert.equal(typeof sourceMap.SourceNode, "function"); |
|
29 }; |
|
30 |
|
31 }); |
|
32 function run_test() { |
|
33 runSourceMapTests('test/source-map/test-api', do_throw); |
|
34 } |