Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Throw TypeErrors on invalid inputs to AnimationEffectTiming#426

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
suzyh merged 6 commits intoweb-animations:masterfromalancutter:timingTypeErrors
Apr 20, 2016
Merged

Throw TypeErrors on invalid inputs to AnimationEffectTiming#426

suzyh merged 6 commits intoweb-animations:masterfromalancutter:timingTypeErrors
Apr 20, 2016

Conversation

@alancutter
Copy link
Contributor

This change adds TypeErrors to setters on AnimationEffectTiming foriterationStart,iterations,duration andeasing.
Relevant spec:http://w3c.github.io/web-animations/#animationeffecttiming

returnthis._fill;
},
setiterationStart(value){
if(value<0){
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this have an isNan check as well, like duration?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Added check, I realise now the NaN check is implicit in the IDL type.

for(vari=0;i<=1;i+=0.1){
assert.equal(f(i),i,easing+' is linear');
}
functionassertThrows(easing){
Copy link
Contributor

Choose a reason for hiding this comment

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

To make this test easier to read, I think this function name should be more explicit about what it does. This is a bit long but maybe something like assertThrowsOnConversionToTimingFunction? assertInvalidEasingThrows?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Done.

@suzyh
Copy link
Contributor

lgtm

@suzyhsuzyh merged commit7ec73f5 intoweb-animations:masterApr 20, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@alancutter@suzyh

[8]ページ先頭

©2009-2025 Movatter.jp