Skip to content

Truly independent web browser

test-web: Compare style groups with a full build under --verify-style

Andreas Klingfa559dd4fd9b
diff --git a/Tests/LibWeb/test-web/Application.cpp b/Tests/LibWeb/test-web/Application.cpp
index 6cc7b26db14..0c272fd802f 100644
--- a/Tests/LibWeb/test-web/Application.cpp
+++ b/Tests/LibWeb/test-web/Application.cpp
@@ -87,6 +87,8 @@ void Application::create_platform_options(WebView::BrowserOptions& browser_optio
if (verify_style) {
// NB: The style engine checks what it installed against a cold computation of the document.
MUST(Core::Environment::set("LIBWEB_STYLE_SELFCHECK"sv, "1"sv, Core::Environment::Overwrite::Yes));
+ // NB: The style engine compares each group an element takes with the one its values build.
+ MUST(Core::Environment::set("LIBWEB_VERIFY_STYLE_CHUNKS"sv, "1"sv, Core::Environment::Overwrite::Yes));
// NB: A cold computation per update takes a large document's test past the usual timeout.
per_test_timeout_in_seconds = max(per_test_timeout_in_seconds, 180);
}