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

Mark invokers tests as non-tentative #42664

Conversation

keithamus
Copy link
Contributor

See related spec PR whatwg/html#9841

@nt1m
Copy link
Member

nt1m commented Oct 20, 2023

I would mark this PR as draft until the spec PR lands.

@annevk
Copy link
Member

annevk commented Oct 20, 2023

No need to mark as draft. It just needs a label.

@keithamus keithamus force-pushed the mark-invokers-tests-as-non-tentative branch from 858bcd8 to e549cce Compare May 10, 2024 07:57
@annevk
Copy link
Member

annevk commented Nov 8, 2024

It looks like this needs rebasing.

@keithamus keithamus force-pushed the mark-invokers-tests-as-non-tentative branch from e549cce to 236540a Compare November 8, 2024 11:34
@annevk
Copy link
Member

annevk commented Nov 8, 2024

It's a bit weird to have this in an invokers directory which isn't really a thing anymore in the specification. Perhaps move it all in the button element directory?

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.

Thanks! These look good and we can land these along with the PR, but I'm assuming that these do not cover the type getter of the button element as we discussed that today. And they might also not cover the command getter in as much detail as is needed? E.g., does it handle OPEN becoming open, blah becoming null, --BLAH staying --BLAH?

@keithamus keithamus force-pushed the mark-invokers-tests-as-non-tentative branch from c91d397 to 4f9bb1c Compare February 2, 2025 13:55
lukewarlow

This comment was marked as outdated.

@keithamus keithamus force-pushed the mark-invokers-tests-as-non-tentative branch from 4f9bb1c to e07be3a Compare February 11, 2025 21:49
@annevk
Copy link
Member

annevk commented Feb 18, 2025

I don't understand what the state of this is. I don't see the referenceTarget folder being changed here and #50542 is an empty PR that does not address my comment.

@keithamus
Copy link
Contributor Author

@annevk the referencetarget folder has been changed here: https://github.com/web-platform-tests/wpt/pull/42664/files#diff-5a639ea163375c81575b92d7e9c07e7875d8f21beaac1daf1b1e743dd93d5cc8. @lukewarlow's comments are out of date with the current state of this branch. To address your comments:

Thanks! These look good and we can land these along with the PR, but I'm assuming that these do not cover the type getter of the button element as we discussed that today.

This PR renames button-type-behavior and button-type-reflection which cover the type getter of the button element. These are marked non-tentative in this PR so I'd consider this resolved.

And they might also not cover the command getter in as much detail as is needed? E.g., does it handle OPEN becoming open, blah becoming null, --BLAH staying --BLAH?

Yes these are all covered in command-reflection which has been renamed non-tentative in this PR. Specifically those kinds of tests are here:

['sHoW-MoDaL', 'show-modal'],
['tOgGlE-pOpOvEr', 'toggle-popover'],
['hIdE-pOpOvEr', 'hide-popover'],
['sHoW-pOpOvEr', 'show-popover'],
['ClOsE', 'close'],
['--cUsToM', '--cUsToM'
]].forEach(([cased, command]) => {
test(function (t) {
invokerbutton.command = cased
assert_equals(invokerbutton.command, command, `invoker should reflect odd cased ${cased} properly - as ${command}`);
}, `invoker should reflect odd cased ${cased} properly - as ${command}`);
});
which shows 'sHoW-MoDaL' will reflect as 'show-modal' while '--cUsToM' will reflect as '--cUsToM'. I'd consider this resolved as well.

@keithamus keithamus requested a review from lukewarlow February 18, 2025 10:50
@lukewarlow
Copy link
Member

#50542 is an empty PR that does not address my comment.

Apologies, the tests were uploaded separately (via chrome sync iirc) so that PR isn't needed anymore.

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.

Thanks!

It's extremely hard to figure those kind of things out from a force push so next time consider leaving a comment detailing the state of the PR.

@foolip foolip merged commit e014b26 into web-platform-tests:master Feb 19, 2025
20 checks passed
@keithamus keithamus deleted the mark-invokers-tests-as-non-tentative branch February 19, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants