diff options
| author | Stephen Blott | 2015-05-17 14:12:32 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-17 14:12:32 +0100 |
| commit | 8aa6073aebb7dea9d11aba1d0d07c89b161c508c (patch) | |
| tree | 93764f6b6b99d40f06fbf0ba2861d65356ef8087 /tests/unit_tests | |
| parent | 9b0c37c755fd964edf02271f9051f0f6e33e2431 (diff) | |
| download | vimium-8aa6073aebb7dea9d11aba1d0d07c89b161c508c.tar.bz2 | |
use a less brittle approach to decoding URIs (fix tests).
Diffstat (limited to 'tests/unit_tests')
| -rw-r--r-- | tests/unit_tests/utils_test.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit_tests/utils_test.coffee b/tests/unit_tests/utils_test.coffee index 829c7042..d1444af2 100644 --- a/tests/unit_tests/utils_test.coffee +++ b/tests/unit_tests/utils_test.coffee @@ -68,11 +68,11 @@ context "hasJavascriptPrefix", assert.isTrue Utils.hasJavascriptPrefix "javascript:foobar" assert.isFalse Utils.hasJavascriptPrefix "http:foobar" -context "decodeJavascriptURI", +context "decodeURIByParts", should "decode javascript: URLs", -> - assert.equal "foobar", Utils.decodeJavascriptURI "foobar" - assert.equal " ", Utils.decodeJavascriptURI "%20" - assert.equal "25 % 20 25 ", Utils.decodeJavascriptURI "25 % 20 25%20" + assert.equal "foobar", Utils.decodeURIByParts "foobar" + assert.equal " ", Utils.decodeURIByParts "%20" + assert.equal "25 % 20 25 ", Utils.decodeURIByParts "25 % 20 25%20" context "isUrl", should "identify URLs as URLs", -> |
