-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
url/test: Fix origin being ignored in the wpt test
- Loading branch information
1 parent
45940dd
commit 40494a7
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
@@ -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); | ||
|