Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test for https://github.com/whatwg/url/issues/627 #31431

Closed

Conversation

achristensen07
Copy link
Contributor

No description provided.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a good start, but we need test coverage for non-special schemes as well.

Comment on lines +3 to +8
try {
new URL("https://%" + codePoint.toString(16));
} catch (e) {
caught = true;
}
assert_equals(caught, forbidden, "percent encoded");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think https://web-platform-tests.org/writing-tests/testharness-api.html#assert-throws-js-constructor-func-description would be better although it would require changing the logic a bit. That way we can also assert the exact serialization for when it does need to succeed.

@annevk
Copy link
Member

annevk commented Dec 16, 2022

This got superseded by #32524.

@annevk annevk closed this Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants