summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Kamat <jaygkamat@gmail.com>2018-03-13 19:11:36 -0400
committerFlorian Bruhin <git@the-compiler.org>2018-03-14 07:45:12 +0100
commitd49e6d0229aa66245bd93849ee72e0bc897ae18e (patch)
tree6472d264d97718b43de1091bc1214dffff949b63
parentbb76931be6e75bdcb4536ac8b14bca31ed86c4a7 (diff)
downloadqutebrowser-d49e6d0229aa66245bd93849ee72e0bc897ae18e.tar.gz
qutebrowser-d49e6d0229aa66245bd93849ee72e0bc897ae18e.zip
Add test for #3711
(cherry picked from commit 35beff98a94213f725a0a568e4d2a81d2b43c926)
-rw-r--r--tests/end2end/data/hints/issue3711.html13
-rw-r--r--tests/end2end/data/hints/issue3711_frame.html11
-rw-r--r--tests/end2end/features/hints.feature5
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/end2end/data/hints/issue3711.html b/tests/end2end/data/hints/issue3711.html
new file mode 100644
index 000000000..6abceccc2
--- /dev/null
+++ b/tests/end2end/data/hints/issue3711.html
@@ -0,0 +1,13 @@
+<html>
+ <!-- https://github.com/qutebrowser/qutebrowser/issues/3711 -->
+ <head>
+ <title>Issue 3711</title>
+ </head>
+ <body>
+ <!--
+ Verify no hint error occurs when hinting input range elements in iframes on qt5.9
+ Possibly an issue in chrome.
+ -->
+ <input min="0" max="1" step="0.001" type="range">
+ </body>
+</html>
diff --git a/tests/end2end/data/hints/issue3711_frame.html b/tests/end2end/data/hints/issue3711_frame.html
new file mode 100644
index 000000000..37c5e5b71
--- /dev/null
+++ b/tests/end2end/data/hints/issue3711_frame.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Issue 3771 Parent Frame</title>
+ </head>
+ <body>
+ <iframe src="./issue3711.html"></iframe>
+ </body>
+</html>
diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature
index a2ac468d0..a1c4d0bde 100644
--- a/tests/end2end/features/hints.feature
+++ b/tests/end2end/features/hints.feature
@@ -249,6 +249,11 @@ Feature: Using hints
And I hint with args "all current" and follow a
Then no crash should happen
+ Scenario: No error when hinting ranged input in frames
+ When I open data/hints/issue3711_frame.html
+ And I hint with args "all current" and follow a
+ Then no crash should happen
+
### hints.auto_follow.timeout
@not_mac @flaky