Skip to content

Commit

Permalink
url/test: Fix origin being ignored in the wpt test
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlinden committed Jan 15, 2025
1 parent 45940dd commit 40494a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions url/wpt_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2023 David Zero <[email protected]>
// SPDX-FileCopyrightText: 2023-2024 Robin Lindén <[email protected]>
// SPDX-FileCopyrightText: 2023-2025 Robin Lindén <[email protected]>
//
// SPDX-License-Identifier: BSD-2-Clause

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 40494a7

Please sign in to comment.