diff options
Diffstat (limited to 'test_harnesses/automated.html')
| -rw-r--r-- | test_harnesses/automated.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test_harnesses/automated.html b/test_harnesses/automated.html index 789b744d..5e55c368 100644 --- a/test_harnesses/automated.html +++ b/test_harnesses/automated.html @@ -278,20 +278,20 @@ context("Web query parsing", should("Convert query string to valid URL", function() { - assert.equal("http://www.google.com/", utils.ensureUrl("http://www.google.com/")); - assert.equal("http://www.google.com/", utils.ensureUrl(" http://www.google.com/ ")); - assert.equal("http://www.google.com", utils.ensureUrl("www.google.com")); - assert.equal("http://google.com", utils.ensureUrl("google.com")); - assert.equal("http://www.google.com/search?q=google", utils.ensureUrl("google")); - assert.equal("http://www.google.com/search?q=go ogle.com", utils.ensureUrl("go ogle.com")); - assert.equal("http://localhost", utils.ensureUrl("localhost")); - assert.equal("http://xyz.museum", utils.ensureUrl("xyz.museum")); - assert.equal("chrome://extensions", utils.ensureUrl("chrome://extensions")); + assert.equal("http://www.google.com/", utils.convertToUrl("http://www.google.com/")); + assert.equal("http://www.google.com/", utils.convertToUrl(" http://www.google.com/ ")); + assert.equal("http://www.google.com", utils.convertToUrl("www.google.com")); + assert.equal("http://google.com", utils.convertToUrl("google.com")); + assert.equal("http://www.google.com/search?q=google", utils.convertToUrl("google")); + assert.equal("http://www.google.com/search?q=go ogle.com", utils.convertToUrl("go ogle.com")); + assert.equal("http://localhost", utils.convertToUrl("localhost")); + assert.equal("http://xyz.museum", utils.convertToUrl("xyz.museum")); + assert.equal("chrome://extensions", utils.convertToUrl("chrome://extensions")); assert.equal("http://user:pass@ftp.xyz.com/test", - utils.ensureUrl("user:pass@ftp.xyz.com/test")); - assert.equal("http://127.0.0.1", utils.ensureUrl("127.0.0.1")); - assert.equal("http://127.0.0.1:8080", utils.ensureUrl("127.0.0.1:8080")); - assert.equal("http://[::]:8080", utils.ensureUrl("[::]:8080")); + utils.convertToUrl("user:pass@ftp.xyz.com/test")); + assert.equal("http://127.0.0.1", utils.convertToUrl("127.0.0.1")); + assert.equal("http://127.0.0.1:8080", utils.convertToUrl("127.0.0.1:8080")); + assert.equal("http://[::]:8080", utils.convertToUrl("[::]:8080")); }) ); |
