aboutsummaryrefslogtreecommitdiff
path: root/tools/node_modules/source-map/test
diff options
context:
space:
mode:
authorJez Ng <me@jezng.com>2013-06-19 05:08:58 -0700
committerJez Ng <me@jezng.com>2013-06-19 14:15:18 -0700
commit050335fd91a09cde7ccea9f1fc0ecf536918b95a (patch)
tree3b597f4054cb20a07548378adad6784da8f46b92 /tools/node_modules/source-map/test
parent54a59bee849be1da0c6d1de0dc4a6a73744c6d04 (diff)
Update the source-map library.
Diffstat (limited to 'tools/node_modules/source-map/test')
-rw-r--r--tools/node_modules/source-map/test/source-map/test-source-map-consumer.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/node_modules/source-map/test/source-map/test-source-map-consumer.js b/tools/node_modules/source-map/test/source-map/test-source-map-consumer.js
index 610d4635..2f9a23d0 100644
--- a/tools/node_modules/source-map/test/source-map/test-source-map-consumer.js
+++ b/tools/node_modules/source-map/test/source-map/test-source-map-consumer.js
@@ -288,4 +288,19 @@ define(function (require, exports, module) {
'Source should be relative the host of the source root.');
};
+ exports['test github issue #64'] = function (assert, util) {
+ var map = new SourceMapConsumer({
+ "version": 3,
+ "file": "foo.js",
+ "sourceRoot": "http://example.com/",
+ "sources": ["/a"],
+ "names": [],
+ "mappings": "AACA",
+ "sourcesContent": ["foo"]
+ });
+
+ assert.equal(map.sourceContentFor("a"), "foo");
+ assert.equal(map.sourceContentFor("/a"), "foo");
+ };
+
});