Add automated test for #1186

This commit is contained in:
Florian Bruhin 2016-06-07 14:15:32 +02:00
parent 8ff53fdb7f
commit d3eec49b6e
3 changed files with 47 additions and 33 deletions

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Issue 1186</title>
</head>
<body>
<p>
This page contains 10 hints to test backspace handling, see #1186.
</p>
<p>
This requires setting hints -&gt; mode to number, and hints -&gt; scatter to false.
</p>
<p>
When pressing f, x, 0, Backspace, only hints starting with x should be
shown.
</p>
<ul>
<li><a href="/data/numbers/1.txt">x one</a></li>
<li><a href="/data/numbers/2.txt">x two</a></li>
<li><a href="/data/numbers/3.txt">x three</a></li>
<li><a href="/data/numbers/4.txt">x four</a></li>
<li><a href="/data/numbers/5.txt">x five</a></li>
<li><a href="/data/numbers/6.txt">x six</a></li>
<li><a href="/data/numbers/7.txt">x seven</a></li>
<li><a href="/data/numbers/8.txt">x eight</a></li>
<li><a href="/data/numbers/9.txt">x nine</a></li>
<li><a href="/data/numbers/10.txt">x ten</a></li>
<li><a href="/data/numbers/11.txt">x eleven</a></li>
<li><a href="/data/numbers/12.txt">twelve</a></li>
</ul>
</body>
</html>

View File

@ -188,3 +188,15 @@ Feature: Using hints
And I run :follow-hint 1
Then data/numbers/2.txt should be loaded
And data/numbers/3.txt should be loaded
# https://github.com/The-Compiler/qutebrowser/issues/1186
Scenario: Keeping hints filter when using backspace
When I open data/hints/issue1186.html
And I set hints -> mode to number
And I set hints -> scatter to false
And I run :hint all
And I press the key "x"
And I press the key "0"
And I press the key "<Backspace>"
And I run :follow-hint 11
Then the error "No hint 11!" should be shown

View File

@ -1,33 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Issue 1186</title>
</head>
<body>
<p>
This page contains 10 hints to test backspace handling, see <a href="https://github.com/The-Compiler/qutebrowser/issues/1186">#1186</a>.
</p>
<p>
This requires setting hints -> mode to number, and hints -> scatter to false.
</p>
<p>
When pressing f, t, 0, Backspace, only hints starting with t should be
shown.
</p>
<ul>
<li><a href="/data/numbers/1.txt">test one</a></li>
<li><a href="/data/numbers/2.txt">test two</a></li>
<li><a href="/data/numbers/3.txt">three</a></li>
<li><a href="/data/numbers/4.txt">four</a></li>
<li><a href="/data/numbers/5.txt">five</a></li>
<li><a href="/data/numbers/6.txt">six</a></li>
<li><a href="/data/numbers/7.txt">seven</a></li>
<li><a href="/data/numbers/8.txt">eight</a></li>
<li><a href="/data/numbers/9.txt">nine</a></li>
<li><a href="/data/numbers/10.txt">ten</a></li>
</ul>
</body>
</html>