toolkit/devtools/sourcemap/tests/unit/test_api.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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  */
     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) {
    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   }
    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   };
    31 });
    32 function run_test() {
    33   runSourceMapTests('test/source-map/test-api', do_throw);
    34 }

mercurial