Commit Graph

25 Commits

Author SHA1 Message Date
James Graham
4d4201c131 Bug 1263631 - Update web-platform-tests to revision 8d896c2015ab1e50ad00a0013700f87813d9364c, a=testonly
MozReview-Commit-ID: 7NCdvJqZ1UH
2016-04-11 23:23:45 +01:00
Brian Birtles
ea458212f7 Bug 1260655 - Return the stored Keyframe objects from GetFrames, when available ; r=heycam
Before switching CSS animations over to using KeyframeEffectReadOnly::SetFrames
we update the getFrames() API to return the set frame objects (when available)
so that we can test that we are setting the correct frames.

MozReview-Commit-ID: 4SpBRM7Ykyv
2016-03-30 08:59:08 +09:00
Brian Birtles
383e96e8b2 Bug 1260655 - Update keyframe-effect/constructor.html to no longer refer to PropertyIndexedKeyframes or Keyframe; r=heycam
These types have been removed from the normative part of the Web Animations
spec.

MozReview-Commit-ID: LJkWvuDCT55
2016-03-30 08:59:08 +09:00
Brian Birtles
bb99f2e4f9 Bug 1260655 - Wrap lines in keyframe-effect/constructor.html to 80 chars; r=whitespace-only
MozReview-Commit-ID: FMg5uhxuZ6L
2016-03-30 08:59:08 +09:00
Daisuke Akatsuka
e7d4f55ee4 Bug 1248532 - Part 3: add a test for step-end with iterationStart. r=birtles
MozReview-Commit-ID: 2luGMSNI5jS
2016-04-01 14:01:56 +09:00
Daisuke Akatsuka
eb0e0f6ff0 Bug 1248532 - Part 2: Add tests for step-start. r=birtles
MozReview-Commit-ID: CIFKnlIF2hk
2016-04-01 14:01:55 +09:00
Brian Birtles
e83251d25a Bug 1245748 - Define the Keyframe type for storing specified keyframes; r=heycam
MozReview-Commit-ID: rejtrG0U1A
2016-03-22 16:19:43 +09:00
Brian Birtles
9dad11b881 Bug 1245748 - Update handling of 'composite' dictionary members to match changes to the spec; r=heycam, r=bz
Specifically, for the 'composite' member on keyframes, we now indicate "use the
composite value specified on the effect" using a missing/undefined 'composite'
member as opposed to a null value.

MozReview-Commit-ID: ZH45GvCTlP
2016-03-22 16:18:22 +09:00
Daisuke Akatsuka
f6367dc0a5 Bug 1253470 - Part 4: Produce console warnings for invalid easing. r=birtles 2016-03-18 16:28:22 +09:00
Daisuke Akatsuka
d595e4fb85 Bug 1253470 - Part 3: Produce console warnings for invalid iterations. r=birtles 2016-03-18 10:14:49 +09:00
Brian Birtles
2d7692aca1 Bug 1254419 - Fix zero-length segment handling; r=heycam
Later in this patch series when we convert tests from web-platform tests to
mochitest-chrome tests, some of the test cases that use zero-length segments
(overlapping keyframes at certain offsets) would trigger failed assertions
in KeyframeEffectReadOnly::ComposeStyle. This is because this method was
originally written with CSS animations in mind where segments cannot be
zero-length. Furthermore, when these same tests cases are run as
web-platform-tests, the failed assertions are not visible.

This patch adjusts the handling of segments to allow zero-length segments and
adds a test to check that the handling matches that defined in Web Animations
which is summarized in the following informative note,

  "this procedure permits overlapping keyframes. The behavior is that at the
  point of overlap the output value jumps to the value of the last defined
  keyframe at that offset. For overlapping frames at 0 or 1, the output value
  for iteration progress values less than 0 or greater than or equal to 1 is the
  value of the first keyframe or the last keyframe in keyframes
  respectively."[1]

[1] https://w3c.github.io/web-animations/#the-effect-value-of-a-keyframe-animation-effect

MozReview-Commit-ID: JdyYbGZtbot
2016-03-15 21:13:46 +08:00
Daisuke Akatsuka
38c252ffd1 Bug 1237173 - Part3: Throw TypeError if duration is NaN, negative value or not 'auto' string. r=birtles, r=smaug 2016-03-09 14:01:45 +09:00
Daisuke Akatsuka
6e47cd9f0c Bug 1237173 - Part2: Change type of duration to Maybe<StickyTimeDuration>. r=birtles 2016-03-09 14:14:20 +09:00
Daisuke Akatsuka
8c6c245e91 Bug 1248338 - Implement iterationStart; r=birtles 2016-03-02 16:23:34 +09:00
Hiroyuki Ikezoe
4d97846207 Bug 1216842 - Part 13: Tests for effect-level easing. r=birtles 2016-02-18 14:23:00 +01:00
Brian Birtles
59efad4849 Bug 1249212 part 6 - Add tests for endTime calculation; r=boris 2016-02-19 08:37:32 +09:00
Brian Birtles
8a253d3198 Bug 1249212 part 4 - Add tests for activeDuration; r=boris
Before we go fixing endTime, we should add tests that activeDuration (which
endTime builds on) is being calculated correctly. (Spoiler: it wasn't, hence
parts 2 and 3 in this patch series.)
2016-02-19 08:37:32 +09:00
Brian Birtles
1546407136 Bug 1249212 part 1 - Simplify various keyframe-effect tests; r=boris
This patch just simplifies the keyframe-effect tests so that we don't have to
repeat default values. This makes the tests shorter, easier to scan, and
easier to understand what is being tested.

In some cases we still repeat the default values in order to indicate that
we're testing that we get a particular default value.
2016-02-19 08:37:31 +09:00
Brian Birtles
7b952a4649 No bug - Fix whitespace and four test descriptions in keyframe-effect tests; r=whitespace-only DONTBUILD 2016-02-18 13:30:07 +09:00
Ryo Motozawa
c134e844d7 Bug 1244586 part 1 - Add KeyframeEffect constructor in dom/webidl/KeyframeEffect.webidl. r=smaug,birtles 2016-02-15 09:34:47 +09:00
Hiroyuki Ikezoe
c436813a9d Bug 1216842 - Part 9: Tests that easing property in KeyframeEffectOptions is passed to KeyframeEffectReadOnly. r=cam 2016-01-29 14:49:00 +01:00
Boris Chiou
5b268624f9 Bug 1214536 - Part 9: Test. r=birtles 2016-01-08 00:04:00 +01:00
Boris Chiou
7deb90d1bc Bug 1215406 - Part 6: Test. r=birtles 2015-11-22 18:27:00 +01:00
Cameron McCormack
405e45c445 Bug 1216872 - Make 100% Keyframe returned by getFrames() have easing:linear. r=birtles 2015-10-22 19:22:38 +11:00
Cameron McCormack
905dd34864 Bug 1208951 - Part 11: Tests. r=birtles 2015-10-22 19:22:38 +11:00