michael@0: /* michael@0: * WARNING! michael@0: * michael@0: * Do not edit this file directly, it is built from the sources at michael@0: * https://github.com/mozilla/source-map/ michael@0: */ michael@0: michael@0: Components.utils.import('resource://test/Utils.jsm'); michael@0: /* -*- Mode: js; js-indent-level: 2; -*- */ michael@0: /* michael@0: * Copyright 2012 Mozilla Foundation and contributors michael@0: * Licensed under the New BSD license. See LICENSE or: michael@0: * http://opensource.org/licenses/BSD-3-Clause michael@0: */ michael@0: define("test/source-map/test-api", ["require", "exports", "module"], function (require, exports, module) { michael@0: michael@0: var sourceMap; michael@0: try { michael@0: sourceMap = require('source-map'); michael@0: } catch (e) { michael@0: sourceMap = {}; michael@0: Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap); michael@0: } michael@0: michael@0: exports['test that the api is properly exposed in the top level'] = function (assert, util) { michael@0: assert.equal(typeof sourceMap.SourceMapGenerator, "function"); michael@0: assert.equal(typeof sourceMap.SourceMapConsumer, "function"); michael@0: assert.equal(typeof sourceMap.SourceNode, "function"); michael@0: }; michael@0: michael@0: }); michael@0: function run_test() { michael@0: runSourceMapTests('test/source-map/test-api', do_throw); michael@0: }