mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
headless-browser: Let tests set their own timeout duration
Some tests take longer than others, and so may want to set a custom timeout so that they pass, without increasing the timeout for all other tests. For example, this is done in WPT. Add an `internals.setTestTimeout(milliseconds)` method that overrides the test runner's default timeout for the currently-run test.
This commit is contained in:
parent
9164c9784d
commit
be6a9940ad
Notes:
github-actions[bot]
2024-12-19 17:28:47 +00:00
Author: https://github.com/AtkinsSJ
Commit: be6a9940ad
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2979
Reviewed-by: https://github.com/gmta ✅
11 changed files with 42 additions and 0 deletions
|
@ -215,6 +215,7 @@ public:
|
|||
Function<void(Web::KeyEvent const&)> on_finish_handling_key_event;
|
||||
Function<void(Web::DragEvent const&)> on_finish_handling_drag_event;
|
||||
Function<void(String const&)> on_text_test_finish;
|
||||
Function<void(double milliseconds)> on_set_test_timeout;
|
||||
Function<void(size_t current_match_index, Optional<size_t> const& total_match_count)> on_find_in_page;
|
||||
Function<void(Gfx::Color)> on_theme_color_change;
|
||||
Function<void(String const&, String const&, String const&)> on_insert_clipboard_entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue