2024-10-10 11:56:27 -04:00
|
|
|
/*
|
2025-06-06 07:16:28 -04:00
|
|
|
* Copyright (c) 2024-2025, Tim Flynn <trflynn89@ladybird.org>
|
2024-10-10 11:56:27 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/ByteString.h>
|
|
|
|
#include <AK/Error.h>
|
|
|
|
#include <AK/Vector.h>
|
|
|
|
#include <LibWebView/Application.h>
|
|
|
|
|
2025-06-06 20:11:13 -04:00
|
|
|
namespace TestWeb {
|
2024-10-10 11:56:27 -04:00
|
|
|
|
|
|
|
class Application : public WebView::Application {
|
|
|
|
WEB_VIEW_APPLICATION(Application)
|
|
|
|
|
|
|
|
public:
|
2025-06-10 19:13:03 -04:00
|
|
|
explicit Application();
|
2024-11-05 16:44:19 -07:00
|
|
|
~Application();
|
|
|
|
|
2024-10-10 11:56:27 -04:00
|
|
|
virtual void create_platform_arguments(Core::ArgsParser&) override;
|
2025-03-15 16:56:52 -04:00
|
|
|
virtual void create_platform_options(WebView::BrowserOptions&, WebView::WebContentOptions&) override;
|
2024-10-10 11:56:27 -04:00
|
|
|
|
2024-11-05 16:44:19 -07:00
|
|
|
ErrorOr<void> launch_test_fixtures();
|
2024-10-10 11:56:27 -04:00
|
|
|
|
2024-11-30 08:51:59 -05:00
|
|
|
static constexpr u8 VERBOSITY_LEVEL_LOG_TEST_DURATION = 1;
|
|
|
|
static constexpr u8 VERBOSITY_LEVEL_LOG_SLOWEST_TESTS = 2;
|
|
|
|
static constexpr u8 VERBOSITY_LEVEL_LOG_SKIPPED_TESTS = 3;
|
|
|
|
|
2024-10-10 11:56:27 -04:00
|
|
|
ByteString test_root_path;
|
2025-06-06 20:11:13 -04:00
|
|
|
size_t test_concurrency { 1 };
|
2025-02-04 19:23:11 +00:00
|
|
|
Vector<ByteString> test_globs;
|
2025-06-06 20:11:13 -04:00
|
|
|
|
|
|
|
ByteString python_executable_path;
|
|
|
|
|
|
|
|
bool dump_failed_ref_tests { false };
|
|
|
|
bool dump_gc_graph { false };
|
|
|
|
|
2024-10-10 11:56:27 -04:00
|
|
|
bool test_dry_run { false };
|
|
|
|
bool rebaseline { false };
|
2025-06-06 20:11:13 -04:00
|
|
|
|
2024-10-26 18:22:18 +02:00
|
|
|
int per_test_timeout_in_seconds { 30 };
|
2025-06-06 20:11:13 -04:00
|
|
|
|
|
|
|
u8 verbosity { 0 };
|
2024-10-10 11:56:27 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|