aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dom_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dom_tests')
-rw-r--r--tests/dom_tests/dom_tests.coffee12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee
index 3977d046..96d95902 100644
--- a/tests/dom_tests/dom_tests.coffee
+++ b/tests/dom_tests/dom_tests.coffee
@@ -282,6 +282,18 @@ context "Filtered link hints",
sendKeyboardEvent "A"
assert.equal "1", hintMarkers[3].hintString
+ # This test is the same as above, but with an extra non-matching character.
+ should "narrow the hints and ignore typing mistakes", ->
+ hintMarkers = getHintMarkers()
+ sendKeyboardEvent "T"
+ sendKeyboardEvent "R"
+ sendKeyboardEvent "X"
+ assert.equal "none", hintMarkers[0].style.display
+ assert.equal "3", hintMarkers[1].hintString
+ assert.equal "", hintMarkers[1].style.display
+ sendKeyboardEvent "A"
+ assert.equal "1", hintMarkers[3].hintString
+
context "Image hints",
setup ->