Skip to content

Update web-animations IDL file - #9908

Merged
birtles merged 4 commits into
web-platform-tests:masterfrom
lukebjerring:idl-file-updates-web-animations
Mar 22, 2018
Merged

birtles merged 4 commits into
web-platform-tests:masterfrom
lukebjerring:idl-file-updates-web-animations

Conversation

@lukebjerring

@lukebjerring lukebjerring commented Mar 7, 2018 •

Copy link
Copy Markdown
Contributor

No description provided.

@wpt-pr-bot
wpt-pr-bot requested review from jensl and yuki3 March 7, 2018 20:07
@lukebjerring
lukebjerring force-pushed the idl-file-updates-web-animations branch from de86bdf to 0e28af5 Compare March 7, 2018 20:32
@ghost

ghost commented Mar 8, 2018 •

Copy link
Copy Markdown

Build PASSED

Started: 2018-03-20 17:29:17
Finished: 2018-03-20 17:33:49

View more information about this build on:

@lukebjerring
lukebjerring force-pushed the idl-file-updates-web-animations branch from 8b81b8d to 419946f Compare March 19, 2018 20:20
@lukebjerring

Copy link
Copy Markdown
Contributor Author

Relies on #10100 for the only filtering of untested IDL.

@lukebjerring
lukebjerring requested a review from foolip March 19, 2018 20:22
@birtles

birtles commented Mar 19, 2018

Copy link
Copy Markdown
Contributor

Sorry, I'm missing some context. What is the purpose of this PR?

@lukebjerring

Copy link
Copy Markdown
Contributor Author

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 birtles left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread interfaces/web-animations.idl Outdated
@@ -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/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll defer that change for @foolip

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, except the day-to-day has the wrong URL as well. Will fix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread interfaces/web-animations.idl Outdated
enum AnimationPlayState { "idle", "running", "paused", "finished" };

[Exposed=Window]
interface AnimationEffectReadOnly {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This interface no longer exists in the latest version of Web Animations.

Comment thread interfaces/web-animations.idl Outdated
};

[Exposed=Window]
interface AnimationEffectTimingReadOnly {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nor does this interface.

Comment thread interfaces/web-animations.idl Outdated
};

[Exposed=Window]
interface AnimationEffectTiming : AnimationEffectTimingReadOnly {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nor this one.

@birtles

birtles commented Mar 20, 2018

Copy link
Copy Markdown
Contributor

Also, one question about the GENERATED CONTENT - DO NOT EDIT part:

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?

@lukebjerring

Copy link
Copy Markdown
Contributor Author

Also, one question about the GENERATED CONTENT - DO NOT EDIT part:

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.

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?

Desired / future answer: Yes
Current answer: No

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.

@birtles

birtles commented Mar 20, 2018

Copy link
Copy Markdown
Contributor

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.

@lukebjerring

Copy link
Copy Markdown
Contributor Author

@birtles - updated header. Thanks for taking the time to review!

@birtles birtles left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@birtles
birtles merged commit 0529cde into web-platform-tests:master Mar 22, 2018
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.

4 participants