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

feat: spec-compliance table/tests #21

Open
grabbou opened this issue Nov 8, 2024 · 2 comments
Open

feat: spec-compliance table/tests #21

grabbou opened this issue Nov 8, 2024 · 2 comments
Assignees

Comments

@grabbou
Copy link
Collaborator

grabbou commented Nov 8, 2024

Would be great to have a break-down of all features in spec and our compliance. We should also programmatically test our coverage with spec, or at least have some sort of codegen to verify this in TypeScript.

@grabbou
Copy link
Collaborator Author

grabbou commented Nov 8, 2024

CC: @V3RON since you mentioned this and I know @mani3xis has been already looking into this.

@V3RON
Copy link
Collaborator

V3RON commented Nov 8, 2024

In a nutshell, there is a repository containing test suites for various features of the Web Platform. The goal is to have a unified set of tests that all user agents can use to verify their compliance with standards, rather than maintaining separate test sets and potentially filling in unknown areas with "best guesses."

Example test suites for the Blob interface can be found here: https://github.com/web-platform-tests/wpt/tree/master/FileAPI/blob

These tests are used not only by web browsers but also by headless JavaScript environments like Deno, which suggests that we should be able to use them in this case. Whoever takes on this task will need to create a custom runner, similar to what Deno has done.

The process will likely consist of three stages: preparing a bundle by combining the test harness with test cases for the selected feature, executing it in the RN environment, and reporting results back to the outside environment. Additionally, we will need to replace built-in globals like Blob with custom implementations.

Overall, it shouldn’t be too difficult to implement 😉

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

3 participants