diff options
| author | Vincent Bernat | 2014-08-05 09:11:37 +0200 |
|---|---|---|
| committer | Vincent Bernat | 2014-08-05 09:14:30 +0200 |
| commit | 17d7b88ee05ee940404fef5bb605c9b7665b15b8 (patch) | |
| tree | 4226b68a4065746d70e997b764b3267b7a282939 /tests | |
| parent | c27961a1700cdbcbf90d53420b1df304988d6c5d (diff) | |
| download | vimium-17d7b88ee05ee940404fef5bb605c9b7665b15b8.tar.bz2 | |
Match mixed-case relationship links in goNext/goPrevious
Link types are case-insensitive:
http://www.w3.org/TR/html5/links.html#linkTypes
This should fix #1115.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dom_tests/dom_tests.coffee | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee index 145b5866..0b2a9d89 100644 --- a/tests/dom_tests/dom_tests.coffee +++ b/tests/dom_tests/dom_tests.coffee @@ -230,6 +230,14 @@ context "Find prev / next links", goNext() assert.equal '#first', window.location.hash + should "match mixed case link relation", -> + document.getElementById("test-div").innerHTML = """ + <link rel='Next' href='#first'> + """ + goNext() + assert.equal '#first', window.location.hash + + createLinks = (n) -> for i in [0...n] by 1 link = document.createElement("a") |
