Commit Graph

88 Commits

Author SHA1 Message Date
Brian Birtles
619b88c739 Bug 1402170 - Consistently use arrow syntax for functions in processing-a-keyframes-argument-*.html tests; r=hiro
We don't however, use arrow syntax for local functions that act as class
constructors since they don't want the lexical this that arrow functions use.

MozReview-Commit-ID: FuVhHIBFZrE
2017-10-02 16:57:56 +09:00
Brian Birtles
59d79b24b2 Bug 1402170 - Rename copy-contructor.html to copy-constructor.html in two places in wpt for web-animations; r=hiro
MozReview-Commit-ID: JxqRcQ5TJd5
2017-10-02 12:35:38 +09:00
Brian Birtles
c01aef2738 Bug 1402170 - Add tests for error handling when parsing the 'easing' property on keyframes; r=hiro
This tests the behavior clarified in the following spec changeset:

  d696468777

MozReview-Commit-ID: 3hS7rHcTpUn
2017-10-02 12:30:33 +09:00
Brian Birtles
b24494bf12 Bug 1402170 - Update test descriptions in processing-a-keyframes-argument-002.html; r=hiro
MozReview-Commit-ID: 8ofSWFs5b3u
2017-09-22 16:27:27 +09:00
Brian Birtles
36929dabce Bug 1402170 - Use KeyframeEffect constructor in processing-a-keyframes-argument-002.html; r=hiro
MozReview-Commit-ID: 3JTFxw6Va1r
2017-09-22 16:12:44 +09:00
Brian Birtles
afab50fd55 Bug 1402170 - Move ease parsing tests to easing-tests.js; r=hiro
MozReview-Commit-ID: JvUB6okJYI9
2017-09-22 16:08:49 +09:00
Brian Birtles
25c5fe65a1 Bug 1402170 - Tidy up processing-a-keyframes-argument-002.html; r=hiro
MozReview-Commit-ID: H7envMXOJhU
2017-09-22 16:03:01 +09:00
Brian Birtles
4d507e05dd Bug 1402170 - Move tests for easing values on keyframes to processing-a-keyframes-argument-002.html; r=hiro
MozReview-Commit-ID: LEydYxdMoay
2017-09-22 15:58:37 +09:00
Brian Birtles
bb6a4c7286 Bug 1402170 - Rename processing-a-keyframes-argument.html to have a 001 extension; r=hiro
This naming is recommended by [1] and from a random sampling of tests in
web-platform-tests it seems like most test don't use this, only tests that are
split over multiple files.

This "processing a keyframes argument" section is quite large so I intend to
split the tests up into a number of files to cover:

* Tests for property access
* Tests for easing
* Tests for offset
* Tests for composite
* Tests for equivalent forms

[1] http://web-platform-tests.org/writing-tests/general-guidelines.html#file-paths-and-names

MozReview-Commit-ID: JW2m50UnsKv
2017-09-22 15:52:37 +09:00
Brian Birtles
e292ac4ebc Bug 1402170 - Merge gInvalidEasingInKeyframeSequenceTests with gInvalidEasings; r=hiro
MozReview-Commit-ID: CIjKWyU2GIs
2017-09-22 15:37:23 +09:00
Brian Birtles
b413ba6084 Bug 1402170 - Consistently use spaces in object notation; r=hiro
This seems to be standard JS style recently (as used in prettier etc.): Use
spaces to separate the { and } from the properties (but not for arrays).

MozReview-Commit-ID: FRkFRwwcJJh
2017-09-22 15:20:13 +09:00
Brian Birtles
7564827693 Bug 1402170 - Update various test descriptions to make them testable statements; r=hiro
MozReview-Commit-ID: 9zVjiwb9vm8
2017-09-22 15:14:45 +09:00
Brian Birtles
26288127b3 Bug 1402170 - Tidy up test for property access order somewhat; r=hiro
MozReview-Commit-ID: 4JFae0SqMCX
2017-09-22 15:04:54 +09:00
Brian Birtles
3b8cd38ead Bug 1402170 - Move test for accessing keyframe property order to processing-a-keyframes-argument.html; r=hiro
MozReview-Commit-ID: 3y6SnzAtNZZ
2017-09-22 15:00:15 +09:00
Brian Birtles
441276cdda Bug 1402170 - Update some test descriptions; r=hiro
* We should refer to reading or accessing properties, as opposed to
  "considering" them.
* We should use "property-indexed" consistently.

MozReview-Commit-ID: ItCE4g8LmOC
2017-09-22 11:54:50 +09:00
Brian Birtles
6682562041 Bug 1402170 - Drop invalid test for offsets; r=hiro
There is a test that assumes that an offset specified on a property-indexed
keyframe is applied to all generated keyframes but that behavior is not (yet)
specified.

This behavior will be specified in [1] but until that happens it seems invalid
to test for it. Furthermore, when that is specified we will need much more
thorough tests than this one.

[1] https://github.com/w3c/web-animations/issues/148

MozReview-Commit-ID: HUUw88dg2P7
2017-09-22 11:43:11 +09:00
Brian Birtles
1a09fd2a6a Bug 1402170 - Use template strings in processing-a-keyframes-argument.html; r=hiro
But only in a couple of places where it makes the test more readable.

MozReview-Commit-ID: 6zVJ6h7Zb3k
2017-09-22 11:38:58 +09:00
Brian Birtles
38ac039a8b Bug 1402170 - Use for...of instead of forEach for several tests in processing-a-keyframes-argument.html; r=hiro
for...of is generally preferred over forEach since it is a little easier to read
and allows using 'break' and 'continue'. Furthermore it is supported in all
major browsers. (It also makes wrapping one of the long lines in this file
easier.)

MozReview-Commit-ID: 1BuoW0QSxaG
2017-09-22 11:36:42 +09:00
Brian Birtles
85ea8b1201 Bug 1402170 - Use ES6 let/const in processing-a-keyframes-argument.html; r=hiro
Gradually we plan to move all these tests to ES6 (or at least the subset
supported by all UAs that are likely to implement this spec) so while we are
touching this file we update a few uses of 'var' to let/const.

MozReview-Commit-ID: 45OJyXmUzKu
2017-09-22 11:09:04 +09:00
Brian Birtles
6069d78bfa Bug 1402170 - Consistently use KeyframeEffect constructor for testing in processing-a-keyframes-argument.html; r=hiro
KeyframeEffectReadOnly may disappear (see [1]) and is only needed for CSS
Animations and CSS Transitions so in that sense KeyframeEffect is more basic
(despite being a subclass of KeyframeEffectReadOnly) so we should prefer it to
KeyframeEffectReadOnly.

Furthermore, as the comment at the start of the file suggests, we should
consistently use the same method for testing these procedures. We currently use
the KeyframeEffect constructor because it is more direct and basic.

[1] https://github.com/w3c/web-animations/issues/185

MozReview-Commit-ID: LBrlfzyn2Ch
2017-09-22 11:03:35 +09:00
Brian Birtles
962b721baa Bug 1402170 - Fix title in processing-a-keyframes-argument.html test; r=hiro
And also drop the slightly misleading and redundant comment about the procedure
that this test covers (it covers *both* the "process a keyframes argument"
procedure and the "process a keyframe-like object" subprocedure).

MozReview-Commit-ID: 9lzx4rCj20o
2017-09-22 10:18:25 +09:00
James Graham
4163e541cc Bug 1381842 - Update web-platform-tests to revision 85ae24e3dc80ee63b6dc2ed78a922cff68c6e819, a=testonly
MozReview-Commit-ID: DfvN9mAFYhI
2017-07-20 13:05:25 +01:00
Brian Birtles
51d3a6d6d7 Bug 1370123 - Add tests for Element.animate when used on an element in a document without a browsing context; r=xidorn
MozReview-Commit-ID: FL37UKP6s3k
2017-06-19 12:19:57 +09:00
Boris Chiou
ca7a2d3001 Bug 1339690 - Part 7: Stop storing invalid property value. r=birtles
MozReview-Commit-ID: H3aRcJIk7CV
2017-06-14 11:43:47 +08:00
Boris Chiou
b73dddf079 Bug 1339690 - Part 1: Drop w-p-t tests of paced timing. r=birtles
MozReview-Commit-ID: 1eJ7DgIskKF
2017-06-13 13:20:15 +08:00
Brian Birtles
43cc6acecd Bug 1353202 - Use assert_matrix_equal to compare matrices in iterationComposite.html test r=hiro
MozReview-Commit-ID: 3WPwmX7EBvn
2017-05-24 11:14:35 +09:00
Brian Birtles
6427f8ea19 Bug 1366627 - Make accumulation of transform lists with 'none' behave in the same way as interpolation; r=hiro
MozReview-Commit-ID: LITXkeYN1VR
2017-05-22 09:35:10 +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
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
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
804c067df6 Bug 1332206 - Move invalid easing tests to the appropriate interface tests; r=hiro
MozReview-Commit-ID: 4PYlZvwRD1L
2017-02-08 09:25:30 +09:00
Brian Birtles
a2161e38b0 Bug 1332206 - Move tests for timing functions with inputs outside [0, 1]; r=hiro
These should be part of the tests for the transformed distance since that is
currently the only place where they can occur.

This patch also revises the test descriptions somewhat to make it clearer what
is being tested.

MozReview-Commit-ID: D4YfAiZUBYR
2017-02-08 09:25:30 +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
15405b62f2 Bug 1332206 - Simplify invalid easing tests; r=hiro
This doesn't need to be an array of objects when a simple array would do.

MozReview-Commit-ID: 1gtdhG5RPSy
2017-02-08 09:25:28 +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
a367d33b27 Bug 1332206 - Rework tests for linear-equivalent cubic-bezier timing functions from effect-easing.html; r=hiro
The purpose of these tests appears to be to check that a linear-equivalent
cubic-bezier timing function (e.g. 'cubic-bezier(0, 0, 0, 0)') does not affect
the result such as clamping values out of the [0, 1] range.

This test really is testing the calculation of the 'transformed distance' in
the "The effect value of a keyframe effect" so we move the test there and
rework it to more clearly test what it is intended to cover.

MozReview-Commit-ID: 9sEr7MlVZKL
2017-02-08 09:25:27 +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
Hiroyuki Ikezoe
2dafe887f0 Bug 1216844 - Implement KeyframeEffect::SetComposite(). r=boris,smaug
MozReview-Commit-ID: C9wHsriHgZ9
2016-12-14 08:51:44 +09:00
Hiroyuki Ikezoe
1deec9d680 Bug 1311620 - Part 6: Fix test cases that checks keyframe composite is not specified but effect composite is specified. r=birtles
From spec <https://w3c.github.io/web-animations/#dom-keyframeeffectreadonly-getkeyframes>:

composite
    The keyframe-specific composite operation used to combine the values
    specified in this keyframe with the underlying value.
    This member will be absent if the composite operation specified on
    the keyframe effect is being used.

MozReview-Commit-ID: 8ob59Xv6DRL
2016-12-24 19:55:09 +09:00
Hiroyuki Ikezoe
da559f12aa Bug 1312301 - Part 10: Move some utility functions into test_common.js. r=boris
MozReview-Commit-ID: IUaPSEt8Vg3
2016-12-20 19:13:51 +09:00