Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
adding comment
  • Loading branch information
lemire committed Dec 17, 2024
commit bfc1ad897cf85e6c1b2587227257e6f41f1eb7b3
3 changes: 3 additions & 0 deletions tests/wpt_urlpattern_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ TEST(wpt_urlpattern_tests, urlpattern_test_data) {
}

ondemand::object main_object = element.get_object();
// If we have a key with 'expected_obj' and the value is 'error', then
// we expect the pattern to be invalid. There should be a key with
// 'pattern' and the value should be an array.
std::string_view expected_obj;
if (!main_object["expected_obj"].get_string().get(expected_obj) &&
expected_obj == "error") {
Expand Down
Loading