mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
JavaScript
/*
|
|
* 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) {
|
|
sourceMap = {};
|
|
Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap);
|
|
}
|
|
|
|
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);
|
|
}
|