-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Put IDL files in specname/interfaces.idl instead of interfaces/specname.idl #9026
Comments
@zcorpan @annevk @domenic @ayg @Honry @soareschen, you are the people who have done the most poking in interfaces/, WDYT? One downside that's come to mind is that there's some variety in how the idlharness.js tests are named, and idlharness.html is actually more common than interfaces.html. And the combination idlharness.html+interfaces.idl is less pleasing than interfaces.html+interfaces.idl. But I still think I prefer sprinkling the IDL files around. |
Sounds like an improvement to me. |
I'm happy on this improvement. |
I'm not a big fan of the continued churn as each time you move files around you make |
If you mean following the files that have been renamed, To be honest, I'm actually not confident that this move would be the final state of things. It is the most obvious way to fix the OWNERS problem though.
@mdittmer has talked about doing just that. We'd need to maintain a list "instance factories" to get objects for There is one possibility, also raised by @mdittmer, which is that we could split tests by interface instead of spec, by parsing all spec IDL and then serializing everything that has to do with Document, for example. |
If I browse to https://github.com/w3c/web-platform-tests/blob/master/xhr/FormData-append.html and click on "History" I don't see history past renames. "Blame" does though, interestingly enough. Maybe I should ask GitHub if they want to fix it for "History" too. |
Yeh, the other option would be allowing per file owners. This is a non-trivial piece of work, but might be interesting to tackle if there are other use cases around. |
Turns out that we already have a mix of styles. Here are the IDL files outside of interfaces/:
Since @lukebjerring is now working on auto-updating IDL we should decide which direction to move in, since that will involve changing and creating a bunch of tests. And there are 36 IDL files in interfaces/. We should pick a style and converge on that as part of the auto-update work that @lukebjerring has started. After @annevk's skepticism I wasn't so sure of my proposal to just go ahead, but given the inconsistency we now have I think specname/interfaces.idl seems the most reasonable to align on. Any objections? @gsnedders @jgraham? |
IMHO, having a large number of The folder structure of |
Yep, one directory will be easier for automation, which we've started now, so let's go with that. I'll move the outliers in #9026 (comment) into interfaces/ to close this issue. |
#5339 started splitting out standalone IDL files, and we have quite a few now in https://github.com/w3c/web-platform-tests/tree/master/interfaces. Yay!
I've come to think that we should have these in the spec directories instead, which I think would have these benefits:
@mdittmer @lukebjerring FYI
The text was updated successfully, but these errors were encountered: