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

added timing constructor test #220

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

added timing constructor test #220

wants to merge 12 commits into from

Conversation

samthor
Copy link
Contributor

@samthor samthor commented Nov 12, 2014

Some failing tests around timing.

assert.equal(player.currentTime, 0);
tick(300);
assert.equal(player.startTime, 300); // why does this pass? the anim is running?
assert.equal(player.currentTime, 300, 'after 300ms tick, currentTime should be 300ms'); // this fails -- what, what?
Copy link
Contributor

Choose a reason for hiding this comment

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

The animation was pending until 300, I'd expect that it's currentTime is actually 0 in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

After all, it's start time is 300 per line 19.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've fixed this behaviour with feedback on how tick works. The test is still broken though :)

assert.equal(player.currentTime, 300);

timing.iterations = 0.5;
animation.timing.iterations = 0.5;
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI these don't work because we don't yet support these maxifill feature (exposed timing, modifiable timing). They're not on the roadmap for the m39 release.

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.

None yet

3 participants