From f98ba7ba0e3f2cbb8886d6635528f87572600000 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Sun, 21 Aug 2016 15:33:55 +0200 Subject: [PATCH 1/2] Added test for empty dictionary --- tests/end2end/features/hints.feature | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index 6f05b7d6b..486c64408 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -184,6 +184,13 @@ Feature: Using hints Then the error "Not enough words in the dictionary." should be shown And data/numbers/5.txt should be loaded + Scenario: Dictionary file does not exist + When I open data/hints/html/simple.html + And I set hints -> dictionary to no_words + And I set hints -> mode to word + And I run :hint + Then the error "Word hints requires reading the file at *" should be shown + ### Number hint mode # https://github.com/The-Compiler/qutebrowser/issues/308 From be89e8f4996ce46695a8d8ba34ef5e82860531c5 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Sun, 21 Aug 2016 19:37:30 +0200 Subject: [PATCH 2/2] Add check that qutebrowser defaults to letter hints --- tests/end2end/features/hints.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index 486c64408..fe3ba056f 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -189,7 +189,9 @@ Feature: Using hints And I set hints -> dictionary to no_words And I set hints -> mode to word And I run :hint + And I press the key "a" Then the error "Word hints requires reading the file at *" should be shown + And data/hello.txt should be loaded ### Number hint mode