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

[html] Restore coverage for query encoding #15256

Merged
merged 2 commits into from Feb 8, 2019

Conversation

jugglinmike
Copy link
Contributor

When the query encoding navigation tests were refactored to use WPT's
"variant" feature [1], the new structure omitted one of the encodings
which was previously tested. Although the encoding will be used when a
variant is not specified, the automation tooling only uses variants
which are explicitly specified. This can be observed through the
--list-tests flag of the wpt run command:

$ ./wpt run --list-tests firefox html/infrastructure/urls/resolving-urls/query-encoding/navigation.sub.html
/html/infrastructure/urls/resolving-urls/query-encoding/navigation.sub.html?encoding=utf8
/html/infrastructure/urls/resolving-urls/query-encoding/navigation.sub.html?encoding=x-cp1251

Explicitly declare the default variant, restoring the original test
coverage.

[1] #11300

When the query encoding navigation tests were refactored to use WPT's
"variant" feature [1], the new structure omitted one of the encodings
which was previously tested. Although the encoding will be used when a
variant is not specified, the automation tooling only uses variants
which are explicitly specified. This can be observed through the
`--list-tests` flag of the `wpt run` command:

    $ ./wpt run --list-tests firefox html/infrastructure/urls/resolving-urls/query-encoding/navigation.sub.html
    /html/infrastructure/urls/resolving-urls/query-encoding/navigation.sub.html?encoding=utf8
    /html/infrastructure/urls/resolving-urls/query-encoding/navigation.sub.html?encoding=x-cp1251

Explicitly declare the default variant, restoring the original test
coverage.

[1] web-platform-tests#11300
@annevk
Copy link
Member

annevk commented Feb 7, 2019

Could you also update the other .sub.html files in that directory? Thanks for catching this!

Although the `windows-1252` character set will be used when a variant is
not specified, the automation tooling only uses variants which are
explicitly specified. Explicitly declare the default variant in order to
extend test coverage.
@jugglinmike
Copy link
Contributor Author

You got it, @annevk

@annevk annevk merged commit 0b59453 into web-platform-tests:master Feb 8, 2019
@annevk
Copy link
Member

annevk commented Feb 8, 2019

Thanks again!

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.

None yet

4 participants