summaryrefslogtreecommitdiff
path: root/tests/end2end/data/insert_mode_settings/html/autofocus.html
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2024-03-27 12:34:30 +0100
committerFlorian Bruhin <me@the-compiler.org>2024-03-27 12:34:30 +0100
commit982b8bdcecfba6fc1687a6a4942b9e3ab3221eb7 (patch)
tree18b5ae22aaa67b288e01cf5504e260e0f24bb78a /tests/end2end/data/insert_mode_settings/html/autofocus.html
parent0b220117e2c26dd3ca7639a7bda78a44c8959fbf (diff)
downloadqutebrowser-982b8bdcecfba6fc1687a6a4942b9e3ab3221eb7.tar.gz
qutebrowser-982b8bdcecfba6fc1687a6a4942b9e3ab3221eb7.zip
Fix input.insert_mode.auto_load race / test_auto_load flakiness
Fixes #8145, see #5390. As long as we don't have a solution to get notified about focus happening (#2471 possibly?), it looks like there is no better way to get notified about this, so a delay will need to do for now.
Diffstat (limited to 'tests/end2end/data/insert_mode_settings/html/autofocus.html')
-rw-r--r--tests/end2end/data/insert_mode_settings/html/autofocus.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/end2end/data/insert_mode_settings/html/autofocus.html b/tests/end2end/data/insert_mode_settings/html/autofocus.html
index 366f436f6..ca189b016 100644
--- a/tests/end2end/data/insert_mode_settings/html/autofocus.html
+++ b/tests/end2end/data/insert_mode_settings/html/autofocus.html
@@ -10,6 +10,9 @@
elem.addEventListener('input', function() {
console.log("contents: " + elem.value);
});
+ elem.addEventListener('focus', function() {
+ console.log("autofocus element focused");
+ });
}
</script>
</head>