Commit Graph

50 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
d2aad1bbac Bug 1260983 - Add tests for changes to effect value context; r=heycam
MozReview-Commit-ID: JuTRERHU4xl
2016-04-01 11:07:12 +09: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
Brian Birtles
bfecfd325a Bug 1260572 - Use 50% switch behavior if StyleAnimationValue::Interpolate fails; r=heycam
In KeyframeEffectReadOnly::ComposeStyle we call StyleAnimationValue::Interpolate
but assume that it always passes. That was true when that code was only used for
CSS animations and CSS transitions since they check that their animation values
can be interpolated before setting up segments.

However, when we set up animations using the Web Animations API we don't perform
that check so it is possible for this call to fail.

In that case, we could just bail, but, according to CSS Transitions we should
apply a 50% switch in this case:

  https://drafts.csswg.org/css-transitions/#step-types

(In Web Animations, specifying this is an open issue. See:
https://w3c.github.io/web-animations/#specific-animation-behaviors).

Bug 1064937 tracks doing this in general (we'll likely need to mark various
properties as being no longer unanimatable but instead as supporting discrete
animation) but we can start to introduce it now.

Later in bug 1245748, CSS animations and transitions will likely start using
the same code path as the Web Animations API for setting up keyframes.
As a result, unless we take care to add checks that the values we set are
interpolable, the 50% switch behavior will begin to apply to CSS animations and
transitions too at that point.

Some concerns have been raised about possible web compatibility issues around
the 50% switch behavior (see [1] and [2]). For CSS animations, Chrome already
supports this behavior so it should be ok at least for CSS animations.
When we switch CSS transitions over to the same code path, however, we will need
to be careful to add checks that the transition endpoints are interpolable
(we can investigate introducing this behavior to transitions as a separate bug
that can be easily backed out / preffed off).

Regarding the naming of the test added here, going forward we would like to
restructure the tests under web-platform-tests to better match the structure of
the Web Animations since that seems to be the convention there.

However, this doesn't *quite* match the structure of the spec since there are
upcoming changes to the spec in this area (e.g. renaming animation behaviors to
animation types). However, it should be close enough that we don't have to move
it around too much in future.

[1] https://drafts.csswg.org/css-transitions/#step-types
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1064937#c0

MozReview-Commit-ID: KcxILrckJg9
2016-03-30 08:59:08 +09:00
Mantaroh Yoshinaga
af7c642110 Bug 1259344 - Move play()/cancel()/playstate tests to web platform tests. r=birtles 2016-04-04 21:57:00 +02:00
Daisuke Akatsuka
96a572e27a Bug 1244633 - Part 2: append tests for delay. r=birtles
MozReview-Commit-ID: 7jldzmXrqfj
2016-04-02 18:33:54 +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
Mantaroh Yoshinaga
9d94176ba2 Bug 1258972 - Move finish and playbackrate mochitest to web platform tests. r=birtles. 2016-03-31 18:30:00 +02:00
Mantaroh Yoshinaga
b543dd4d35 Bug 1259321 - Remove animation node test from web platform tests. r=birtles 2016-03-29 16:26:00 +02:00
Ryo Kato
5cfad8544b Bug 1244642 - Web-platform tests for AnimationEffectTiming.direction r=hiro
MozReview-Commit-ID: Cxvizue8c9H
2016-03-26 16:47:40 +09:00
Rob McAuley
9a5efd972f Bug 1244640 - implement AnimationEffectTiming iterations r=hiro
MozReview-Commit-ID: Iwq6vleUERo
2016-03-26 14:41:37 +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
7d3366d3ba Bug 1244638 - Part 2: Throw TypeError if iterationStart is NaN, negative value or Infinity. r=birtles, r=smaug
MozReview-Commit-ID: A8zSm6TgwOP
2016-03-11 18:04:39 +09:00
Daisuke Akatsuka
fef3812741 Bug 1244638 - Part 1:implement AnimationEffectTiming iterationStart. r=birtles, r=smaug
MozReview-Commit-ID: K9UfNViDMHz
2016-03-11 17:22:32 +09: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
Ryo Motozawa
a44d86f548 Bug 1244635 - Part3 Add enddelay tests in testing/web-platform/tests/web-animations r=hiro
MozReview-Commit-ID: GnIp7BmwPxw
2016-03-08 10:31:36 +09:00
Boris Chiou
13a49e7465 Bug 1241784 - Part 4: Remove removeElement from testcommon.js. r=birtles 2016-03-06 19:35:00 +01:00
Boris Chiou
d199ed407c Bug 1241784 - Part 3: Test. r=birtles 2016-03-06 19:33:00 +01:00
Daisuke Akatsuka
8c6c245e91 Bug 1248338 - Implement iterationStart; r=birtles 2016-03-02 16:23:34 +09:00
Ryo Motozawa
96c10ef463 Bug 1244641 - Part 6: Add duration tests in testing/web-platform/tests/web-animations. r=hiro
MozReview-Commit-ID: Ff400yaXDLV
2016-02-27 06:41:53 +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
Brian Birtles
8132b51a89 Bug 1244414 - Create iframe element from script to avoid racing with the load event; r=bz 2016-02-17 13:38:31 +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
James Graham
8f80efb7ec Bug 1245460 - Update web-platform-tests to revision af65262f5f3400024279c526117489f1f11d3233, a=testonly 2016-02-03 11:22:52 +00: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
Brian Birtles
7785514713 Bug 1096773 part 4 - Add tests for Animatable.animate(); r=bz 2016-01-29 12:37:52 +11:00
Hiroyuki Ikezoe
3068b030de Bug 1096774 - Part 3: Tests for Animation Contructor. r=birtles 2016-01-16 19:02:00 -05: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
James Graham
bd4b7e0608 Bug 1180500 - Update web-platform-tests to revision 87398b8448f699e3e324148795891658f2fa16dd, a=testonly 2015-07-07 10:05:28 +01:00
Carsten "Tomcat" Book
78ed5b1319 Backed out changeset 641b24306056 (bug 1178754) also need backedout on request on a CLOSED TREE 2015-06-30 15:58:51 +02:00
James Graham
c38e40f0da Bug 1178754 - Update web-platform-tests to revision 2f4e521222b7901f4d3a5e09a2489e773c8be424, a=testonly 2015-06-30 14:01:47 +01:00
James Graham
4c6115a0b1 Bug 1161535 - Update web-platform-tests to revision 40a9c4e9e4f99a738cd1a7602066c5e84d1b90b5, a=testonly 2015-05-05 21:57:11 +01:00
James Graham
a2502d0f46 Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
James Graham
0e207d40b5 Bug 1097230 - Update web-platform-tests to revision 9840b559b10e05f659932a835c11832db9e01c42, a=testonly 2014-11-20 16:30:01 +00:00
James Graham
5ae42538f6 Bug 945222 - Initial import of web-platform-tests testsuite 1/4: test data 2014-09-04 12:48:31 +01:00