Repository navigation
Conversation
de86bdf to
0e28af5
Compare
Build PASSEDStarted: 2018-03-20 17:29:17 View more information about this build on: |
8b81b8d to
419946f
Compare
|
Relies on #10100 for the |
|
Sorry, I'm missing some context. What is the purpose of this PR? |
|
Hi, sorry for the lack of context - we (@foolip, @mdittmer and I) are working on a pipeline which automatically scrapes known WebIDL sources/specs and updates the IDL in the interfaces whenever it changes. This PR is the output of running the scraper as a one-off, for which I've included updating the existing/equivalent IDL snippets that are inlined in the tests, to instead reference the generated (singular) interfaces/web-animations.idl file. Later, we'll use OWNERS to automatically ping relevant persons when the source changed and the scraped IDL differs from what's in WPT. |
birtles
left a comment
There was a problem hiding this comment.
Thanks for doing this but I think the scraper needs to be run again. It appears to be using an old version of the spec.
| @@ -0,0 +1,177 @@ | |||
| // GENERATED CONTENT - DO NOT EDIT | |||
| // Content of this file was automatically extracted from the Web Animations spec. | |||
| // See https://w3c.github.io/web-animations/ | |||
There was a problem hiding this comment.
There was a problem hiding this comment.
https://w3c.github.io/web-animations/ now redirects to https://drafts.csswg.org/web-animations/ but not using a HTTP redirect.
Sent two reviews to update URLs I found in Chromium, only the first actually relevant:
https://chromium-review.googlesource.com/c/chromium/src/+/970648
web-animations/web-animations-js#191
@lukebjerring, have the other recent changes taken effect in the output of the IDL scraper? If so, then after the first has landed, another update should fix this.
There was a problem hiding this comment.
Ah, except the day-to-day has the wrong URL as well. Will fix.
There was a problem hiding this comment.
Updated the source (switched https://drafts.csswg.org/web-animations/ to be the canonical source and https://w3c.github.io/web-animations/ to be an alt source)
| enum AnimationPlayState { "idle", "running", "paused", "finished" }; | ||
|
|
||
| [Exposed=Window] | ||
| interface AnimationEffectReadOnly { |
There was a problem hiding this comment.
This interface no longer exists in the latest version of Web Animations.
| }; | ||
|
|
||
| [Exposed=Window] | ||
| interface AnimationEffectTimingReadOnly { |
| }; | ||
|
|
||
| [Exposed=Window] | ||
| interface AnimationEffectTiming : AnimationEffectTimingReadOnly { |
|
Also, one question about the Often I'll make spec, test, and code changes simultaneously, update the tests/code in Gecko, then upstream the tests to wpt. Can I rerun the scraper locally so that I can land the updated tests along with the code in Gecko? |
NB: If you copy-paste from the source, strip leading whitespace, single blank line between snippets, your output will exactly match anyway. The comment is targeted at those who are unfamiliar with the spec, so as not to move the file.
Desired / future answer: Yes When the tool matures (it still has a few edge-cases with whitespace, URLs, etc) we'll standardize how it gets run, document it, and ensure that changes can be included with test updates. |
|
Looks good. I'll wait for the change to the header before marking it as approved. Regarding editing the files, as long as I can make (small, careful) hand edits, that sounds fine. |
|
@birtles - updated header. Thanks for taking the time to review! |
No description provided.