Commit Graph

56 Commits

Author SHA1 Message Date
Brian Birtles
25079ab175 Bug 1406381 - Update the simple iteration progress calculation to match recent changes to the Web Animations specification; r=hiro
This implements the following change to the Web Animations specification:

  19b6c33cee

The background to that change is described in the corresponding spec issue:

  https://github.com/w3c/web-animations/issues/201

MozReview-Commit-ID: GGA64LG5vT
2017-10-13 12:31:21 +09:00
Brian Birtles
3c780ae5dc Bug 1406381 - Add tests for simple iteration progress and current iteration when the playback rate is negative; r=hiro
MozReview-Commit-ID: H7cgEeGYUoj
2017-10-13 12:28:05 +09:00
Brian Birtles
221ec98670 Bug 1406381 - Extend assert_computed_timing_for_each_phase to accommodate negative playback rates; r=hiro
MozReview-Commit-ID: LpTRS6aMaWw
2017-10-13 12:27:56 +09:00
Brian Birtles
0d01724769 Bug 1406381 - Factor out common code from simple-iteration-progress.html and current-iteration.html; r=hiro
This will become all the more necessary when we extend these definitions to work
with negative playback rates.

MozReview-Commit-ID: ITHEqjprWUy
2017-10-13 10:53:10 +09:00
Brian Birtles
3a3b822d36 Bug 1406381 - Tidy up simple-iteration-progress.html and current-iteration.html somewhat; r=hiro
This is in preparation for further changes to these files later in this patch
series.

In particular this patch:

* Moves some code to more modern Javascript that should be easier to read and
  maintain

* Makes the tests more strict about when active/after values are specified
  - If the timing parameters mean there is no active phase, the test should not
    specify a value to test for that phase. If there *is* an active phase, the
    test must provide a value to test (if it does not the test will fails when
    it compares against the undefined value).
  - Likewise for the after phase
  This should make it a little easier to incorporate testing the playbackRate.

MozReview-Commit-ID: 17vihK5RSbu
2017-10-13 10:45:58 +09:00
James Graham
a99f828ced Bug 1363982 - Update web-platform-tests to revision db6ed4bb451e44748cbb9af69d0a01c17a33571a a=testonly
MozReview-Commit-ID: KjIquC2PKKI
2017-05-11 18:01:46 +01:00
James Graham
99f3698b17 Bug 1356225 - Update web-platform-tests to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GmGgeZxHy0j
2017-04-20 10:49:24 +01:00
Sebastian Hengst
ae83546ec4 Backed out changeset e7024412b94e (bug 1356225)
MozReview-Commit-ID: Ib8aOAM6cQ2
2017-04-14 17:18:47 +02:00
James Graham
468eebfa83 Bug 1356225 - Update web-platform-tests to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GmGgeZxHy0j
2017-04-13 16:22:32 +01:00
Brian Birtles
b35a590775 Bug 1343589 - Add tests that the playback rate is updated silently r=hiro
The spec[1] says:

  Silently set the animation playback rate of animation to -animation playback
  rate.

  This must be done silently or else we may end up resolving the current
  ready promise when we do the compensatory seek despite the fact that we are
  most likely not exiting the pending play state.

This patch add tests that we don't exit the pending play state when calling
reverse() or resolve the ready promise.

[1] https://w3c.github.io/web-animations/#reverse-an-animation

MozReview-Commit-ID: 1X42O5yKpk9
2017-03-28 14:51:53 +09:00
Brian Birtles
0c49750de7 Bug 1343589 - Add a test for reversing with an infinite target effect end and playback rate of zero r=hiro
We already pass this test but it seemed like a useful test to add since I was
unsure if the early return we have in Animation::Reverse() is valid or not.

MozReview-Commit-ID: J38Euno3VP6
2017-03-28 14:51:53 +09:00
Brian Birtles
b07053a962 Bug 1343589 - Add a test that the playback rate is unaffected when an exception is thrown r=hiro
The spec has been updated to clarify that this is the expected behavior:

  c80c9984ca

MozReview-Commit-ID: 6TsNg7HWdRX
2017-03-28 14:51:51 +09:00
Brian Birtles
bc9d8fa193 Bug 1343589 - Move tests for reversing an animation to the timing-model folder r=hiro
We are gradually line the tests up better with sections in the spec. Given that
these tests are concerned with testing the "reverse an animation" procedure in
the spec (and not the API per se) they should be moved to an appropriate
subdirectory of timing-model.

We also update the test titles to make it clear that these tests are really
covering the timing model, not the API.

MozReview-Commit-ID: J5gc3HZg9qv
2017-03-28 14:51:50 +09:00
James Graham
4d6265f684 Bug 1345490 - Update web-platform-tests to revision 7c7db1b516b01394e19fad80094fbb81ab02ce75, a=testonly
MozReview-Commit-ID: 4wsHtf9312c
2017-03-17 14:34:25 +00:00
Sebastian Hengst
d0fc10c1f0 Backed out changeset d1a5149f5e9b (bug 1345490) for OSX, Windows and Linux stylo reftests and marionette failing with "No module named six.moves.urllib.parse". r=backout 2017-03-15 19:24:26 +01:00
James Graham
398d1d56dc Bug 1345490 - Update web-platform-tests to revision 7c7db1b516b01394e19fad80094fbb81ab02ce75, a=testonly
MozReview-Commit-ID: 4wsHtf9312c
2017-03-15 15:20:53 +00:00
Boris Chiou
2be714e35e Bug 1248340 - Part 8: Add tests for transformed-progress and input progress outside [0, 1]. r=birtles
MozReview-Commit-ID: 4t3fx3Adkhj
2017-03-02 17:21:35 +08:00
James Graham
04c270e3d2 Bug 1340474 - Update web-platform-tests to revision eba2c70d536caaeef540966bc8ac7822417ab867, a=testonly
MozReview-Commit-ID: 1GaV7z8d0Xc
2017-02-20 11:52:05 +00:00
Iris Hsiao
34052a8f95 Backed out changeset 425b92cd2370 (bug 1340474) 2017-02-20 15:25:53 +08:00
James Graham
46fc17bba9 Bug 1340474 - Update web-platform-tests to revision eba2c70d536caaeef540966bc8ac7822417ab867, a=testonly
MozReview-Commit-ID: 1GaV7z8d0Xc
2017-02-15 22:30:36 +00:00
Carsten "Tomcat" Book
40542e6d63 Backed out changeset 91e832455287 (bug 1340474) for timeouts in own test 2017-02-17 13:19:59 +01:00
James Graham
a2139e1f42 Bug 1340474 - Update web-platform-tests to revision eba2c70d536caaeef540966bc8ac7822417ab867, a=testonly
MozReview-Commit-ID: 1GaV7z8d0Xc
2017-02-17 10:04:34 +00:00
Brian Birtles
8780a4eb15 Bug 1332206 - Add missing tests for steps-end in delay phase; r=hiro
(Once we remove the special clamping behvaior later in this patch series, the
added test here will fail if we don't add special handling for the case
when the progress is zero and we are in the delay phase.)

MozReview-Commit-ID: Dnon2soE1Se
2017-02-08 09:25:29 +09:00
Brian Birtles
d2760eac60 Bug 1332206 - Drop checking width in step timing function tests; r=hiro
We only use this once to test the timing function when applied to a keyframe.
Now that we have tests for this in

  animation-model/keyframe-effects/effect-value-transformed-distance.html

we can drop the check here and simplify these tests considerably.

Also, 'progress' is always set so we can drop the check for an undefined value.

MozReview-Commit-ID: 39ajHZBRWBf
2017-02-08 09:25:29 +09:00
Brian Birtles
d8049ac157 Bug 1332206 - Drop step timing function for compositor animations; r=hiro
This seems like a Gecko-specific test and even then it's not clear why we
expect the result could be different in this case.

MozReview-Commit-ID: Ix8jZLobwcA
2017-02-08 09:25:29 +09:00
Brian Birtles
356172cd25 Bug 1332206 - Move step timing function tests; r=hiro
MozReview-Commit-ID: HdBtYjbL2la
2017-02-08 09:25:29 +09:00
Brian Birtles
ed999f7006 Bug 1332206 - Rename effect easing tests to easing tests; r=hiro
These tests are generic enough to be used for either effect easing or keyframe
easing.

MozReview-Commit-ID: 5cpnkiCv0z1
2017-02-08 09:25:28 +09:00
Brian Birtles
3ff3adf2eb Bug 1332206 - Move tests for effect easing to timing-model; r=hiro
This set of tests are really just testing that we apply the timing function to
the animation effect so they belong in the appropriate part of the timing model
tests (and should check getComputedTiming not getComputedStyle).

I've also started to update tests to ES6 where appropriate since it seems
arrow functions, template literals, etc. are all supported on all UAs that
are implementing or likely to implement Web Animations.

MozReview-Commit-ID: 3kXao0Xi0BA
2017-02-08 09:25:27 +09:00
Brian Birtles
2849dc00ef Bug 1325308 - Convert non-promise test to use regular test() function r=hiro
MozReview-Commit-ID: LYbY7gvkDGG
2016-12-22 16:56:55 +09:00
James Graham
076f538750 Bug 1318666 - Update web-platform-tests to revision da8dc80ce9c2155e003f20816c0cb6f120c17db6, a=testonly
MozReview-Commit-ID: FIohq85kl1G
2016-11-18 15:04:59 +00:00
Brian Birtles
fb43a1c8f0 Bug 1297285 - Make update-the-finished-state.html not depend on frame timing; r=hiro
I suspect we're hitting trouble when the refresh driver changes timer and we
end up with less time between frames.

MozReview-Commit-ID: I2dProiJTfh
2016-10-05 14:00:46 +09:00
Brian Birtles
cab2ddda08 Bug 1299695 - Rework animation phase and fill mode handling r=hiro
This reflects the following updates to the spec:

  9369384f6c

MozReview-Commit-ID: JYUOZcnPEJQ
2016-09-01 10:57:55 +09:00
Boris Chiou
309c677c57 Bug 1049975 - Part 10: Test for writable effect. r=birtles
MozReview-Commit-ID: 2hMY2barRb9
2016-07-14 17:16:18 +08:00
Brian Birtles
a851ee8bc5 Bug 1295842 part 1 - Add tests for the updating the finished state procedure; r=hiro
MozReview-Commit-ID: 61ltOYy7QAt
2016-08-19 11:35:16 +09:00
Brian Birtles
693d61924c Bug 1286476 part 1 - Add tests for calculating animation effect phases; r=hiro
This test overlaps somewhat with the tests in
web-animations/timing-model/animation-effects/simple-iteration-progress.html.
However, these tests are more specific to just covering the phase calculation
algorithm. Ultimately the tests in simple-iteration-progress.html should be
broken down into separate tests for the different algorithms being tested.

There is also some redundancy in these tests. For example, instead of writing:

  .forEach(function(test) {
    assert_phase_at_time(animation, test.phase, test.currentTime);
  });

we could just define an assert_phases_at_times function that takes the array of
test cases and iterates over them. However, I think writing the test like this
makes it easier to read since it requires less imagination about what
assert_phases_at_times might be doing.

One concern is that this test requires the setter for AnimationEffectTiming.fill
to be implemented. We could rewrite this to create a new animation with the
appropriate fill mode each time but I think this is probably ok.

MozReview-Commit-ID: 82uvBB8bizI
2016-08-17 08:23:09 +09:00
Wes Kocher
c7a7ed3ee4 Backed out 3 changesets (bug 1286476) for frequent windows wpt failures in phases-and-states.html CLOSED TREE
Backed out changeset 53bbfa02d45d (bug 1286476)
Backed out changeset 3947ab570883 (bug 1286476)
Backed out changeset ffd8c37eb695 (bug 1286476)
2016-08-17 10:41:46 -07:00
Brian Birtles
a87ce76546 Bug 1286476 part 1 - Add tests for calculating animation effect phases; r=hiro
This test overlaps somewhat with the tests in
web-animations/timing-model/animation-effects/simple-iteration-progress.html.
However, these tests are more specific to just covering the phase calculation
algorithm. Ultimately the tests in simple-iteration-progress.html should be
broken down into separate tests for the different algorithms being tested.

There is also some redundancy in these tests. For example, instead of writing:

  .forEach(function(test) {
    assert_phase_at_time(animation, test.phase, test.currentTime);
  });

we could just define an assert_phases_at_times function that takes the array of
test cases and iterates over them. However, I think writing the test like this
makes it easier to read since it requires less imagination about what
assert_phases_at_times might be doing.

One concern is that this test requires the setter for AnimationEffectTiming.fill
to be implemented. We could rewrite this to create a new animation with the
appropriate fill mode each time but I think this is probably ok.

MozReview-Commit-ID: 82uvBB8bizI
2016-08-17 08:23:09 +09:00
James Graham
5aa8b71c34 Bug 1291312 - Update web-platform-tests to revision 7a6a5c9f436730f86123e6f48a44bf1b7ba5654f, a=testonly
MozReview-Commit-ID: 2Z26QRXPNuK
2016-08-04 23:34:05 +01:00
Phil Ringnalda
48419535ac Back out 2 changesets (bug 1291312) for making Win7 debug wpt-e10s-2 permanently fail by taking more than 7200 seconds to run, a=backout
Backed out changeset 0267734ec297 (bug 1291312)
Backed out changeset 8232b0211660 (bug 1291312)
2016-08-03 18:50:40 -07:00
James Graham
4255c10e30 Bug 1291312 - Update web-platform-tests to revision 7a6a5c9f436730f86123e6f48a44bf1b7ba5654f, a=testonly
MozReview-Commit-ID: 2Z26QRXPNuK
2016-08-02 20:22:14 +01:00
Sebastian Hengst
92be3e18e3 Backed out changeset 6fbdadb91edf (bug 1291312) for timing out in encrypted-media-keystatuses-multiple-updates.html. r=backout 2016-08-02 20:45:48 +02:00
James Graham
44d6a9a253 Bug 1291312 - Update web-platform-tests to revision 7a6a5c9f436730f86123e6f48a44bf1b7ba5654f, a=testonly
MozReview-Commit-ID: 2Z26QRXPNuK
2016-08-02 16:51:47 +01:00
Brian Birtles
ee91b29a05 Bug 1283387 part 4 - Add further tests for simple iteration progress and current iteration when using an end delay r=hiro
MozReview-Commit-ID: 3EicipZgOUa
2016-06-30 16:40:59 +09:00
Brian Birtles
ad4c30625e Bug 1283387 part 3 - Tidy-up tests for simple iteration progress and current iteration r=hiro
MozReview-Commit-ID: 7B0WhuVpvBf
2016-06-30 16:39:45 +09:00
Brian Birtles
3e67132410 Bug 1283387 part 1 - Add tests for updated end delay handling r=hiro
Based on the following changes to the specification:

  a9ba51338e

MozReview-Commit-ID: zSKTr4T8BM
2016-07-01 09:27:28 +09:00
Mantaroh Yoshinaga
26bcc45fb0 Bug 1267510 part 8 - Move animation's w-p-f tests to correct directories. r=birtles
MozReview-Commit-ID: 2alFixqDfNK
2016-06-29 11:14:12 +09:00
Wes Kocher
4a174f9993 Backed out 8 changesets (bug 1267510) for causing unacceptably frequent failures in animation mochitests a=backout
Backed out changeset 2a2c42608ff0 (bug 1267510)
Backed out changeset 4cdb7f5b6f7c (bug 1267510)
Backed out changeset e89ec30077a0 (bug 1267510)
Backed out changeset 884243ce4287 (bug 1267510)
Backed out changeset 130a231c5acc (bug 1267510)
Backed out changeset 1ace442f6123 (bug 1267510)
Backed out changeset 058ad3199edb (bug 1267510)
Backed out changeset a7d18185f28d (bug 1267510)
2016-06-27 11:49:06 -07:00
Mantaroh Yoshinaga
e79a1784b0 Bug 1267510 part 8 - Move animation's w-p-f tests to correct directories. r=birtles
MozReview-Commit-ID: 2alFixqDfNK
2016-06-27 08:13:16 +09:00
Daisuke Akatsuka
9bfde4b2e7 Bug 1272211 - Part 2: Modified and append tests. r=birtles
MozReview-Commit-ID: A9gGXe1vMal
2016-05-30 09:01:21 +09:00
Brian Birtles
c445d2d731 Bug 1178662 part 1 - Add tests for setting the timeline of an animation r=mantaroh
MozReview-Commit-ID: 1xdKJONyFJV
2016-05-25 13:34:41 +09:00