Commit Graph
56 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:

  https://github.com/w3c/web-animations/commit/d696468777c12a13bc7c46aa1a72c358e8da15fc

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
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 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
Hiroyuki Ikezoe d9e2027662 Bug 1304886 - Part 10: Add rotate3d test case. r=boris
MozReview-Commit-ID: 6gDhughPrps
2016-11-16 20:32:33 +09:00
Hiroyuki Ikezoe 3e0e0a2190 Bug 1304886 - Part 9: Accumulate mismatched transform list properly. r=boris
MozReview-Commit-ID: LTz4TkCsMbQ
2016-11-16 20:32:33 +09:00
Hiroyuki Ikezoe 723ccec4d8 Bug 1304886 - Part 1: Make StyleAnimationValue::Accumulate() infallible. r=birtles
MozReview-Commit-ID: 9ve3k6a3eAg
2016-11-16 20:32:26 +09:00
Boris Chiou e79daf7d40 Bug 1273784 - Part 4: Test. r=hiro
MozReview-Commit-ID: 1hFdxbHAwmB
2016-11-02 11:58:43 +08:00
Hiroyuki Ikezoe 90fb23a999 Bug 1216843 - Part 1: Tests for effect iteration composition. r=birtles
MozReview-Commit-ID: AWsI6r63PgM
2016-09-12 07:04:56 +09:00
Boris Chiou 4d8363d2f0 Bug 1274944 - Part 3: Test for setting spacing. r=birtles
MozReview-Commit-ID: 5pMhC00vNIh
2016-09-01 16:51:39 +08:00
Brian Birtles cab2ddda08 Bug 1299695 - Rework animation phase and fill mode handling r=hiro
This reflects the following updates to the spec:

  https://github.com/w3c/web-animations/commit/9369384f6cfa0716520595bed9d05a51197efecc

MozReview-Commit-ID: JYUOZcnPEJQ
2016-09-01 10:57:55 +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