mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
Tests/LibWeb: Reset zoom on web view before running tests
This prevents test failures when running locally if the user set a default zoom level other than 1.0
This commit is contained in:
parent
9b0157523d
commit
ac755d0916
Notes:
github-actions[bot]
2025-08-26 10:32:38 +00:00
Author: https://github.com/rmg-x
Commit: ac755d0916
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5969
Reviewed-by: https://github.com/trflynn89
1 changed files with 2 additions and 0 deletions
|
@ -644,6 +644,8 @@ static ErrorOr<int> run_tests(Core::AnonymousBuffer const& theme, Web::DevicePix
|
|||
for (size_t i = 0; i < concurrency; ++i) {
|
||||
auto view = TestWebView::create(theme, window_size);
|
||||
view->on_load_finish = [&](auto const&) { ++loaded_web_views; };
|
||||
// FIXME: Figure out a better way to ensure that tests use default browser settings.
|
||||
view->reset_zoom();
|
||||
|
||||
views.unchecked_append(move(view));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue