Index: node_modules/vulcanize/node_modules/uglify-js/node_modules/source-map/test/source-map/test-util.js |
diff --git a/node_modules/karma/node_modules/source-map/test/source-map/test-util.js b/node_modules/vulcanize/node_modules/uglify-js/node_modules/source-map/test/source-map/test-util.js |
similarity index 57% |
copy from node_modules/karma/node_modules/source-map/test/source-map/test-util.js |
copy to node_modules/vulcanize/node_modules/uglify-js/node_modules/source-map/test/source-map/test-util.js |
index 997d1a26978ca699601e6b35708389101f82dc9e..22e9a9e37b91b5cd827311987fbd549b502fdfc2 100644 |
--- a/node_modules/karma/node_modules/source-map/test/source-map/test-util.js |
+++ b/node_modules/vulcanize/node_modules/uglify-js/node_modules/source-map/test/source-map/test-util.js |
@@ -28,14 +28,7 @@ define(function (require, exports, module) { |
assertUrl('//www.example.com'); |
assertUrl('file:///www.example.com'); |
- assert.equal(libUtil.urlParse(''), null); |
- assert.equal(libUtil.urlParse('.'), null); |
- assert.equal(libUtil.urlParse('..'), null); |
- assert.equal(libUtil.urlParse('a'), null); |
- assert.equal(libUtil.urlParse('a/b'), null); |
assert.equal(libUtil.urlParse('a//b'), null); |
- assert.equal(libUtil.urlParse('/a'), null); |
- assert.equal(libUtil.urlParse('data:foo,bar'), null); |
}; |
exports['test normalize()'] = function (assert, util) { |
@@ -57,7 +50,6 @@ define(function (require, exports, module) { |
assert.equal(libUtil.normalize('/././././a/b/c'), '/a/b/c'); |
assert.equal(libUtil.normalize('/a/b/c/./././d/././e'), '/a/b/c/d/e'); |
- assert.equal(libUtil.normalize(''), '.'); |
assert.equal(libUtil.normalize('.'), '.'); |
assert.equal(libUtil.normalize('./'), '.'); |
assert.equal(libUtil.normalize('././a'), 'a'); |
@@ -96,73 +88,6 @@ define(function (require, exports, module) { |
assert.equal(libUtil.join('a', 'data:foo,bar'), 'data:foo,bar'); |
- assert.equal(libUtil.join('', 'b'), 'b'); |
- assert.equal(libUtil.join('.', 'b'), 'b'); |
- assert.equal(libUtil.join('', 'b/'), 'b/'); |
- assert.equal(libUtil.join('.', 'b/'), 'b/'); |
- assert.equal(libUtil.join('', 'b//'), 'b/'); |
- assert.equal(libUtil.join('.', 'b//'), 'b/'); |
- |
- assert.equal(libUtil.join('', '..'), '..'); |
- assert.equal(libUtil.join('.', '..'), '..'); |
- assert.equal(libUtil.join('', '../b'), '../b'); |
- assert.equal(libUtil.join('.', '../b'), '../b'); |
- |
- assert.equal(libUtil.join('', '.'), '.'); |
- assert.equal(libUtil.join('.', '.'), '.'); |
- assert.equal(libUtil.join('', './b'), 'b'); |
- assert.equal(libUtil.join('.', './b'), 'b'); |
- |
- assert.equal(libUtil.join('', 'http://www.example.com'), 'http://www.example.com'); |
- assert.equal(libUtil.join('.', 'http://www.example.com'), 'http://www.example.com'); |
- assert.equal(libUtil.join('', 'data:foo,bar'), 'data:foo,bar'); |
- assert.equal(libUtil.join('.', 'data:foo,bar'), 'data:foo,bar'); |
- |
- |
- assert.equal(libUtil.join('..', 'b'), '../b'); |
- assert.equal(libUtil.join('..', 'b/'), '../b/'); |
- assert.equal(libUtil.join('..', 'b//'), '../b/'); |
- |
- assert.equal(libUtil.join('..', '..'), '../..'); |
- assert.equal(libUtil.join('..', '../b'), '../../b'); |
- |
- assert.equal(libUtil.join('..', '.'), '..'); |
- assert.equal(libUtil.join('..', './b'), '../b'); |
- |
- assert.equal(libUtil.join('..', 'http://www.example.com'), 'http://www.example.com'); |
- assert.equal(libUtil.join('..', 'data:foo,bar'), 'data:foo,bar'); |
- |
- |
- assert.equal(libUtil.join('a', ''), 'a'); |
- assert.equal(libUtil.join('a', '.'), 'a'); |
- assert.equal(libUtil.join('a/', ''), 'a'); |
- assert.equal(libUtil.join('a/', '.'), 'a'); |
- assert.equal(libUtil.join('a//', ''), 'a'); |
- assert.equal(libUtil.join('a//', '.'), 'a'); |
- assert.equal(libUtil.join('/a', ''), '/a'); |
- assert.equal(libUtil.join('/a', '.'), '/a'); |
- assert.equal(libUtil.join('', ''), '.'); |
- assert.equal(libUtil.join('.', ''), '.'); |
- assert.equal(libUtil.join('.', ''), '.'); |
- assert.equal(libUtil.join('.', '.'), '.'); |
- assert.equal(libUtil.join('..', ''), '..'); |
- assert.equal(libUtil.join('..', '.'), '..'); |
- assert.equal(libUtil.join('http://foo.org/a', ''), 'http://foo.org/a'); |
- assert.equal(libUtil.join('http://foo.org/a', '.'), 'http://foo.org/a'); |
- assert.equal(libUtil.join('http://foo.org/a/', ''), 'http://foo.org/a'); |
- assert.equal(libUtil.join('http://foo.org/a/', '.'), 'http://foo.org/a'); |
- assert.equal(libUtil.join('http://foo.org/a//', ''), 'http://foo.org/a'); |
- assert.equal(libUtil.join('http://foo.org/a//', '.'), 'http://foo.org/a'); |
- assert.equal(libUtil.join('http://foo.org', ''), 'http://foo.org/'); |
- assert.equal(libUtil.join('http://foo.org', '.'), 'http://foo.org/'); |
- assert.equal(libUtil.join('http://foo.org/', ''), 'http://foo.org/'); |
- assert.equal(libUtil.join('http://foo.org/', '.'), 'http://foo.org/'); |
- assert.equal(libUtil.join('http://foo.org//', ''), 'http://foo.org/'); |
- assert.equal(libUtil.join('http://foo.org//', '.'), 'http://foo.org/'); |
- assert.equal(libUtil.join('//www.example.com', ''), '//www.example.com/'); |
- assert.equal(libUtil.join('//www.example.com', '.'), '//www.example.com/'); |
- |
- |
assert.equal(libUtil.join('http://foo.org/a', 'b'), 'http://foo.org/a/b'); |
assert.equal(libUtil.join('http://foo.org/a/', 'b'), 'http://foo.org/a/b'); |
assert.equal(libUtil.join('http://foo.org/a//', 'b'), 'http://foo.org/a/b'); |
@@ -199,18 +124,4 @@ define(function (require, exports, module) { |
assert.equal(libUtil.join('//www.example.com', '//foo.org/bar'), '//foo.org/bar'); |
}; |
- // TODO Issue #128: Define and test this function properly. |
- exports['test relative()'] = function (assert, util) { |
- assert.equal(libUtil.relative('/the/root', '/the/root/one.js'), 'one.js'); |
- assert.equal(libUtil.relative('/the/root', '/the/rootone.js'), '/the/rootone.js'); |
- |
- assert.equal(libUtil.relative('', '/the/root/one.js'), '/the/root/one.js'); |
- assert.equal(libUtil.relative('.', '/the/root/one.js'), '/the/root/one.js'); |
- assert.equal(libUtil.relative('', 'the/root/one.js'), 'the/root/one.js'); |
- assert.equal(libUtil.relative('.', 'the/root/one.js'), 'the/root/one.js'); |
- |
- assert.equal(libUtil.relative('/', '/the/root/one.js'), 'the/root/one.js'); |
- assert.equal(libUtil.relative('/', 'the/root/one.js'), 'the/root/one.js'); |
- }; |
- |
}); |