/*
 * WARNING!
 *
 * Do not edit this file directly, it is built from the sources at
 * https://github.com/mozilla/source-map/
 */

Components.utils.import('resource://test/Utils.jsm');
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
 * Copyright 2012 Mozilla Foundation and contributors
 * Licensed under the New BSD license. See LICENSE or:
 * http://opensource.org/licenses/BSD-3-Clause
 */
define("test/source-map/test-api", ["require", "exports", "module"], function (require, exports, module) {

  var sourceMap;
  try {
    sourceMap = require('source-map');
  } catch (e) {
    var loader = Components.utils.import("resource://gre/modules/devtools/Loader.jsm", {});
    sourceMap = loader.devtools.require("devtools/toolkit/sourcemap/source-map");
  }

  exports['test that the api is properly exposed in the top level'] = function (assert, util) {
    assert.equal(typeof sourceMap.SourceMapGenerator, "function");
    assert.equal(typeof sourceMap.SourceMapConsumer, "function");
    assert.equal(typeof sourceMap.SourceNode, "function");
  };

});
function run_test() {
  runSourceMapTests('test/source-map/test-api', do_throw);
}
