diff options
| author | Niklas Baumstark | 2012-01-16 17:03:21 +0100 |
|---|---|---|
| committer | Jez Ng | 2012-01-17 03:22:48 +0800 |
| commit | 4e3ea20ff2b78b25a6e00e4d538939b07a40b644 (patch) | |
| tree | 83f1b789ec53c42006e921c590c18a47652282a6 /test_harnesses | |
| parent | 73f8a90bff353e6b3c1e61c0d339d95f2c349cd4 (diff) | |
| download | vimium-4e3ea20ff2b78b25a6e00e4d538939b07a40b644.tar.bz2 | |
improve URL detection
Diffstat (limited to 'test_harnesses')
| -rw-r--r-- | test_harnesses/automated.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test_harnesses/automated.html b/test_harnesses/automated.html index ac9b9d37..e57f1513 100644 --- a/test_harnesses/automated.html +++ b/test_harnesses/automated.html @@ -282,6 +282,14 @@ 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://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")); }) ); |
