-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Extract Location object tests from query-encoding/ #10891
Conversation
@hsivonen this relies on defaulting to windows-1252. Is that a reasonable thing to do in a test suite? |
I think it's reasonable enough. Ideally, the instance of the test suite available to ad hoc running by users would be hosted on a non-com/org/net domain that's also not affiliated with an non-windows-1252 encoding. E.g. a |
function expected(encoding) { | ||
return "?" + { | ||
"UTF-8": "%C3%BF", | ||
"windows-1251": "&%23255;", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either change this to align with whatwg/url#386 before landing or rebase #10915 and change it there.
Interesting, I came across this part of the test suite in web-platform-tests/wpt.fyi#132 by a completely different way of looking for problems. @zcorpan FYI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming the tests still work :)
@zcorpan could you quickly skim this as well? |
Looks good to me. |
Helps with #4934.