diff options
| author | Phil Crosby | 2012-06-10 02:06:19 -0700 |
|---|---|---|
| committer | Phil Crosby | 2012-06-10 02:07:39 -0700 |
| commit | 2b311dd53342d9137037481eaacf86ba985d56b2 (patch) | |
| tree | ddfd143ef5e900d95299fed39a6445062c846d79 /test_harnesses | |
| parent | 2207fcf6a66b96536dd805b0b9c2f2825980bf63 (diff) | |
| download | vimium-2b311dd53342d9137037481eaacf86ba985d56b2.tar.bz2 | |
Move the tests for utils.convertToUrl into coffeescript
Diffstat (limited to 'test_harnesses')
| -rw-r--r-- | test_harnesses/automated.html | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test_harnesses/automated.html b/test_harnesses/automated.html index 5e55c368..5ef9cb5c 100644 --- a/test_harnesses/automated.html +++ b/test_harnesses/automated.html @@ -275,27 +275,6 @@ ); - context("Web query parsing", - - should("Convert query string to valid URL", function() { - 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.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")); - }) - - ); - Tests.outputMethod = function(output) { var newOutput = Array.prototype.join.call(arguments, "\n"); newOutput = newOutput.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"); // escape html |
