]> git.r.bdr.sh - rbdr/dotfiles/blob
3801233c0ed417312bb7b0944c91ff80cd1cd9b5
[rbdr/dotfiles] /
1 /* -*- Mode: js; js-indent-level: 2; -*- */
2 /*
3 * Copyright 2012 Mozilla Foundation and contributors
4 * Licensed under the New BSD license. See LICENSE or:
5 * http://opensource.org/licenses/BSD-3-Clause
6 */
7 if (typeof define !== 'function') {
8 var define = require('amdefine')(module, require);
9 }
10 define(function (require, exports, module) {
11
12 var sourceMap;
13 try {
14 sourceMap = require('../../lib/source-map');
15 } catch (e) {
16 sourceMap = {};
17 Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap);
18 }
19
20 exports['test that the api is properly exposed in the top level'] = function (assert, util) {
21 assert.equal(typeof sourceMap.SourceMapGenerator, "function");
22 assert.equal(typeof sourceMap.SourceMapConsumer, "function");
23 assert.equal(typeof sourceMap.SourceNode, "function");
24 };
25
26 });