1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:47:34 +00:00

Tests: Replace uses of JsonObject::get_deprecated()/get_ptr()

This commit is contained in:
Sam Atkins 2022-12-21 14:42:45 +00:00 committed by Tim Flynn
parent ad9b2043dd
commit d55f763fcd
4 changed files with 18 additions and 16 deletions

View file

@ -30,13 +30,13 @@ TEST_SETUP
auto testcase = tests[i].as_object();
auto name = DeprecatedString::formatted("{}_ex{}_{}..{}",
testcase.get_deprecated("section"sv),
testcase.get_deprecated("example"sv),
testcase.get_deprecated("start_line"sv),
testcase.get_deprecated("end_line"sv));
testcase.get("section"sv).value(),
testcase.get("example"sv).value(),
testcase.get("start_line"sv).value(),
testcase.get("end_line"sv).value());
DeprecatedString markdown = testcase.get_deprecated("markdown"sv).as_string();
DeprecatedString html = testcase.get_deprecated("html"sv).as_string();
DeprecatedString markdown = testcase.get_deprecated_string("markdown"sv).value();
DeprecatedString html = testcase.get_deprecated_string("html"sv).value();
Test::TestSuite::the().add_case(adopt_ref(*new Test::TestCase(
name, [markdown, html]() {