Add tests for invalid hint group & js click handler

This commit is contained in:
Olmo Kramer 2018-05-03 23:23:12 +02:00
parent ca89b11398
commit 7aa5db29b5
No known key found for this signature in database
GPG Key ID: BE09591F4AB66337
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<!-- target: hello.txt -->
<html>
<head>
<meta charset="utf-8">
<title>Javascript link</title>
</head>
<body>
<button id="link">Follow me via JS!</button>
<script type="text/javascript">
document.getElementById('link').addEventListener('click', function() {
window.location.href = '/data/hello.txt';
});
</script>
</body>
</html>

View File

@ -185,6 +185,11 @@ Feature: Using hints
# The actual check is already done above
Then no crash should happen
Scenario: Error with invalid hint group
When I open data/hints/buttons.html
And I run :hint INVALID_GROUP
Then the error "Undefined hinting group 'INVALID_GROUP'!" should be shown
# https://github.com/qutebrowser/qutebrowser/issues/1613
Scenario: Hinting inputs with padding
When I open data/hints/input.html