Repository navigation
Separate week and month cases from selection-not-application.html - #32479
Conversation
|
Thanks @josepharhar! Just in case you haven't seen the mechanism, do you think https://web-platform-tests.org/writing-tests/testharness.html#variants would be an improvement here? If the test is copied and edited, one can get basically the same result by doing something like this: <meta name="variant" content="">
<meta name="variant" content="?week,month">
...
<script>
...
var nonApplicableTypes = ["hidden", "email", "datetime-local", "date", "time", "number", "range", "color", "checkbox", "radio", "file", "submit", "image", "reset", "button"];
if (location.search) {
nonApplicableTypes = location.search.substr(1).split(',');
}
</script>This also incidentally allows tweaking the URL to subset the tests for debugging purposes, although only if one understands how the variants stuff is set up. This would also make it easy to later merge the tests again by deleting the variants bits. |
|
@josepharhar if you take that suggestion, I think you should also remove the early return in "Type is not supported - don't bother with the following checks" so that the tests run unconditionally. That's consistent with what I did in #32468. |
|
Done and done, thanks for the suggestion! |
This was discussed here:
web-platform-tests/interop#11 (comment)