diff --git a/Userland/Utilities/headless-browser.cpp b/Userland/Utilities/headless-browser.cpp index 696eabe5bf..ac9262e4ff 100644 --- a/Userland/Utilities/headless-browser.cpp +++ b/Userland/Utilities/headless-browser.cpp @@ -364,8 +364,6 @@ static ErrorOr run_ref_test(HeadlessWebContentView& view, StringView loop.quit(0); })); - view.load(URL::create_with_file_scheme(TRY(FileSystem::real_path(input_path)))); - RefPtr actual_screenshot, expectation_screenshot; view.on_load_finish = [&](auto const&) { if (actual_screenshot) { @@ -376,6 +374,11 @@ static ErrorOr run_ref_test(HeadlessWebContentView& view, StringView view.debug_request("load-reference-page"); } }; + view.on_text_test_finish = [&] { + dbgln("Unexpected text test finished during ref test for {}", input_path); + }; + + view.load(URL::create_with_file_scheme(TRY(FileSystem::real_path(input_path)))); timeout_timer->start(); loop.exec();