summaryrefslogtreecommitdiff
path: root/Tests/LibWeb
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibWeb')
-rw-r--r--Tests/LibWeb/test-web.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/LibWeb/test-web.cpp b/Tests/LibWeb/test-web.cpp
index 14819e41c1..a7d9913d3d 100644
--- a/Tests/LibWeb/test-web.cpp
+++ b/Tests/LibWeb/test-web.cpp
@@ -150,10 +150,10 @@ JS_DEFINE_NATIVE_FUNCTION(TestWebGlobalObject::wait_for_page_to_load)
loader.load_sync(
request,
[&](auto data, auto&, auto) {
- Web::HTML::HTMLParser parser(document, data, "utf-8");
+ auto parser = Web::HTML::HTMLParser::create(document, data, "utf-8");
// Now parse the HTML page.
- parser.run(next_page_to_load.value());
- g_page_view->set_document(&parser.document());
+ parser->run(next_page_to_load.value());
+ g_page_view->set_document(&parser->document());
// Note: Unhandled exceptions are just dropped here.
// Run the "after" hooks