mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Tests/LibWeb: Wait until document fully loaded before simulating click
This makes the `form-image-submission.html` test pass more reliably.
This commit is contained in:
parent
7925efda5f
commit
2fed064791
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/2fed064791 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/104 Issue: https://github.com/LadybirdBrowser/ladybird/issues/100
2 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
[Skipped]
|
||||
Text/input/Crypto/SubtleCrypto-exportKey.html
|
||||
Text/input/Crypto/SubtleCrypto-generateKey.html
|
||||
Text/input/HTML/form-image-submission.html
|
||||
Text/input/WebAnimations/misc/DocumentTimeline.html
|
||||
Text/input/Worker/Worker-echo.html
|
||||
Text/input/window-scrollTo.html
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
done();
|
||||
});
|
||||
|
||||
image.addEventListener("load", () => {
|
||||
window.addEventListener("load", () => {
|
||||
const imageRect = image.getBoundingClientRect();
|
||||
internals.click(imageRect.x + 10, imageRect.y + 20);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue