From fd5f8f65509fd481445b9ab82c500125985be7f0 Mon Sep 17 00:00:00 2001 From: Robin Linden Date: Wed, 15 Jan 2025 18:15:01 +0100 Subject: [PATCH] url/test: Fix origin being ignored in the wpt test --- url/wpt_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/url/wpt_test.cpp b/url/wpt_test.cpp index 9e5d409a..151356b4 100644 --- a/url/wpt_test.cpp +++ b/url/wpt_test.cpp @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2023 David Zero -// SPDX-FileCopyrightText: 2023-2024 Robin Lindén +// SPDX-FileCopyrightText: 2023-2025 Robin Lindén // // SPDX-License-Identifier: BSD-2-Clause @@ -93,7 +93,7 @@ int main(int argc, char **argv) { std::string_view href = obj["href"]; a.expect_eq(url->serialize(), href); - if (obj.find_field("failure").error() != simdjson::error_code::NO_SUCH_FIELD) { + if (obj.find_field("origin").error() != simdjson::error_code::NO_SUCH_FIELD) { std::string_view origin = obj["origin"]; a.expect_eq(url->origin().serialize(), origin);