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

Writing conditional or browser-specific tests #124

Open
rahimabdi opened this issue Apr 27, 2024 · 0 comments
Open

Writing conditional or browser-specific tests #124

rahimabdi opened this issue Apr 27, 2024 · 0 comments

Comments

@rahimabdi
Copy link

rahimabdi commented Apr 27, 2024

All of our tests currently run across browsers but I'm curious if it's possible to:

  • Write an engine-specific test (obviously this would be something that is a MAY/SHOULD in spec since all engines would be subject to MUST rules)

  • Write a test that runs only if a condition is met. For example, we know that engines MAY surface a computedrole when "...host language elements do not have an exact or equivalent mapping to a valid, non-abstract role" (e.g., <video> returns html-video but putting role="html-video" on an element is forbidden); here, where supported, we could test that a browser is enforcing ignoring of an " abstract or invalid role token" but only if computedrole returns something for <video> albeit not required. If this is possible, it means that a test may or may not show up in the CI results (and not sure if testharness supports this type of fuzzy test since assertions result only in true or false and assertion errors halt test execution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant