aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-03-17 10:47:36 +0000
committerStephen Blott2016-03-17 10:47:36 +0000
commit8390d54b0ccf201f54bdb69d302d7b4c3b75e29a (patch)
tree3e06d1eb448d8b3aa044d2609ca602a113aa1ed7
parentd53ce1494676fb47504d7822f39efe474ffa080b (diff)
downloadvimium-8390d54b0ccf201f54bdb69d302d7b4c3b75e29a.tar.bz2
Fix long-standing bug in link-hints tests.
This code has been written to test both hints modes, however we were actually only testing one of them!
-rw-r--r--tests/dom_tests/dom_tests.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee
index b8dd44af..7ad95a98 100644
--- a/tests/dom_tests/dom_tests.coffee
+++ b/tests/dom_tests/dom_tests.coffee
@@ -65,8 +65,9 @@ createGeneralHintTests = (isFilteredMode) ->
initializeModeState()
testContent = "<a>test</a>" + "<a>tress</a>"
document.getElementById("test-div").innerHTML = testContent
- stubSettings "filterLinkHints", false
+ stubSettings "filterLinkHints", isFilteredMode
stubSettings "linkHintCharacters", "ab"
+ stubSettings "linkHintNumbers", "12"
tearDown ->
document.getElementById("test-div").innerHTML = ""