Skip to content

Commit

Permalink
add realpath test
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed May 12, 2014
1 parent 796938d commit 28b44ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/specs/util/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ define(function(require) {
//assert(realpath('http://test.com/./a//b/../c') === 'http://test.com/a/c', 'realpath')
assert(realpath('http://test.com/a/b/c/d/e/f/g/h/../../../../../../i') === 'http://test.com/a/b/i', 'realpath')
assert(realpath('https://test.com/a/b/../../c') === 'https://test.com/c', 'realpath')
//assert(realpath('file:///a//b/c') === 'file:///a/b/c', 'realpath')
//assert(realpath('http://a//b/c') === 'http://a/b/c', 'realpath')
assert(realpath('file:///a//b/c') === 'file:///a/b/c', 'realpath')
assert(realpath('http://a//b/c') === 'http://a/b/c', 'realpath')
assert(realpath('http://a/b/c//../d') === 'http://a/b/d', 'realpath')
assert(realpath('http://a///b/c') === 'http://a/b/c', 'realpath')


assert(normalize('a/b/c') === 'a/b/c.js', 'normalize')
Expand Down

0 comments on commit 28b44ba

Please sign in to comment.