Add tests for invalid hint group & js click handler
This commit is contained in:
parent
ca89b11398
commit
7aa5db29b5
18
tests/end2end/data/hints/html/click_handler.html
Normal file
18
tests/end2end/data/hints/html/click_handler.html
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user