From 09cb8aded6c8fa7660cdfaafb4efc6c2c042fad8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 21 Apr 2021 22:50:46 +0200 Subject: [PATCH] test-web: Convert String::format() => String::formatted() --- Userland/Utilities/test-web.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Utilities/test-web.cpp b/Userland/Utilities/test-web.cpp index e0b9596a94..8fd530f7df 100644 --- a/Userland/Utilities/test-web.cpp +++ b/Userland/Utilities/test-web.cpp @@ -282,7 +282,7 @@ JSFileResult TestRunner::run_file_test(const String& test_path) auto& old_interpreter = m_page_view->document()->interpreter(); if (!m_js_test_common) { - auto result = parse_file(String::format("%s/test-common.js", m_js_test_root.characters())); + auto result = parse_file(String::formatted("{}/test-common.js", m_js_test_root)); if (result.is_error()) { printf("Unable to parse %s/test-common.js\n", m_js_test_root.characters()); printf("%s\n", result.error().error.to_string().characters()); @@ -293,7 +293,7 @@ JSFileResult TestRunner::run_file_test(const String& test_path) } if (!m_web_test_common) { - auto result = parse_file(String::format("%s/test-common.js", m_web_test_root.characters())); + auto result = parse_file(String::formatted("{}/test-common.js", m_web_test_root)); if (result.is_error()) { printf("Unable to parse %s/test-common.js\n", m_web_test_root.characters()); printf("%s\n", result.error().error.to_string().characters()); @@ -681,7 +681,7 @@ int main(int argc, char** argv) printf("test-web requires the SERENITY_SOURCE_DIR environment variable to be set"); return 1; } - TestRunner(String::format("%s/Userland/Libraries/LibWeb/Tests", serenity_source_dir), String::format("%s/Userland/Libraries/LibJS/Tests", serenity_source_dir), view, print_times).run(); + TestRunner(String::formatted("{}/Userland/Libraries/LibWeb/Tests", serenity_source_dir), String::formatted("{}/Userland/Libraries/LibJS/Tests", serenity_source_dir), view, print_times).run(); #endif return 0; }