~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tools/node_modules/source-map/test/source-map/test-api.js

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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);
 
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
});