Commit Graph
261 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
Jeremy Chen ae9aeaf44f Bug 1394284 - add wpt test for fallback discrete type of transform animation. r=boris,hiro
According to the spec, if one of the matrices for transform interpolation is
non-invertible, the used animation function must fall-back to a discrete
animation. Add wpt tests so we can ensure the web compability for this behavior.

Note that we don't add 'discrete' type for transform property in property-list.js.
Because the 'discrete' type also tests discrete addition and accumulation,
however, the fallback behavior is just for interpolation and accumulation, not
for addition. So, we add tests in each part of transformListType in property-types.js.

One test is failing in Gecko, so annotate it for Gecko.

MozReview-Commit-ID: 3JGvgqbBqZp
2017-09-12 13:29:04 +08:00
Daisuke Akatsuka 8235b1f40c Bug 1390702 - Part 5: Rewrite handling of CSSPseudoElements to improve readability. r=birtles
MozReview-Commit-ID: 8oJVE70CZRl
2017-09-05 20:16:47 +09:00
Daisuke Akatsuka 9fc7032248 Bug 1390702 - Part 4: Add test into w-p-t. r=birtles
Since we make font-variation-settings animatable, should add the tests into web
platform test.

MozReview-Commit-ID: DT78XARGPVV
2017-09-05 20:16:43 +09:00
Hiroyuki Ikezoe d9ff8bcf0d Bug 1388220 - Simple interpolation test cases for text-shadow and box-shadow with currentcolor. r=xidorn
MozReview-Commit-ID: EjWBAlXuvAw
2017-08-15 15:21:19 +09:00
Hiroyuki Ikezoe ee0c69f900 Bug 1384410 - Fix rotate_to_matrix. r=canaltinova
We used transposed matrices for rotate before this fix.

https://www.w3.org/TR/css-transforms-1/#Rotate3dDefined

MozReview-Commit-ID: 7LYi74vvIBo
2017-07-29 11:05:32 +09:00
Hiroyuki Ikezoe 9ef85b05ee Bug 1383493 - A test case that accumulates transform:none onto decomposed transform matrix for composite. r=birtles
MozReview-Commit-ID: JpJysP9E1v2
2017-07-27 06:46:43 +09:00
Sebastian Hengst c191b3cc6a merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IWRTFZdtzaE
2017-07-21 12:56:44 +02:00
Jeremy Chen 077aa48d2d Bug 1382517 - add wpt interpolation test for mismatched 3D transforms. r=hiro
This test aims for forcing the two mismatched transforms to be decomposed into
matrix3d before interpolation. To do so, we need to:

1. make 'From' and 'To' to be two mismatched transforms,
2. at least one of the two transforms has to be a 3D transform.

In this way, we not only test the interpolation, but also test the correctness
of 3D matrix decomposition.

MozReview-Commit-ID: FAKu6GFVZRm
2017-07-20 15:30:53 +08: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
Brian Birtles d2b1ab4cf4 Bug 1377053 - Add test for discrete interpolation of stroke-dasharray with 'none'; r=hiro
MozReview-Commit-ID: MuxvAeVwes
2017-07-05 21:48:02 +09:00
Mantaroh Yoshinaga fbf5cbedc2 Bug 1362897 - Add w-p-t of interpolating filter property. r=hiro
MozReview-Commit-ID: 8vBWe8ZXLgi
2017-06-19 12:39:28 +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
Carsten "Tomcat" Book afcc02cd7b Merge mozilla-central to autoland 2017-06-09 13:04:17 +02:00
Carsten "Tomcat" Book 5a72f13ad3 merge mozilla-inbound to mozilla-central a=merge 2017-06-09 12:58:49 +02:00
Jeremy Chen b2a94ee94c Bug 1369624 - enable WPT interpolation tests for SVG fill-opacity.
MozReview-Commit-ID: 8FfcIF4UbkJ
2017-06-08 10:44:41 +08:00
Jeremy Chen 763909e29e Bug 1360133 - enable WPT interpolation tests for SVG {stop, flood}-opacity. r=hiro
MozReview-Commit-ID: 2TpYFmg3tN3
2017-06-09 11:54:24 +08:00
Brian Birtles a38ce95dc9 Bug 1367307 - Add content property to create pseudo element in web-platform-tests and devtools tests too; r=hiro
MozReview-Commit-ID: 35F2Cu1w0N7
2017-06-09 11:30:04 +09:00
Xidorn Quan 9d8144fa72 Bug 1367028 part 2 - Simplify serialization of computed value of rect values in border-image props when possible. r=dholbert
MozReview-Commit-ID: s6TP7oB9l3
2017-05-30 13:27:46 +10:00
Mantaroh Yoshinaga 0bc0aa39b4 Bug 1363246 - Add w-p-t of font stretch's addition/accumulation. r=birtles
MozReview-Commit-ID: 8mA2HZkH55f
2017-05-25 10:14:46 +09: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
Mantaroh Yoshinaga f6a1edfcd5 Bug 1357663 - Enable web platform test of font-stretch property animation. r=hiro
MozReview-Commit-ID: KYmDQTKdChd
2017-05-22 13:40:54 +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
Hiroyuki Ikezoe d9e9b2771d Bug 1364795 - Add tests for accumulation per property. r=boris
MozReview-Commit-ID: GTa48O3qn2H
2017-05-15 13:24:01 +09:00
Hiroyuki Ikezoe 4e1483eb61 Bug 1364795 Fix CompositeOperation property name. r=jeremychen
MozReview-Commit-ID: 66JJkIb3j7J
2017-05-15 10:18:35 +09:00
Hiroyuki Ikezoe 8bc0a066d7 Bug 1364795 - Untabify in testing/web-platform/tests/web-animations/animation-model/. r=mantaroh
MozReview-Commit-ID: FvH278YB6I5
2017-05-15 10:15:07 +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
Jeremy Chen a6b0a3e11b Bug 1360144 - enable WPT interpolation tests for some SVG stroke related properties. r=hiro
This includes stroke-{opacity, miterlimit, stroke-dasharray}.

In this patch, we added opacityType to enabled stroke-opacity's
animation tests. With the newly added opacityType, we should be
able to test other opacity like properties as well.

Re-use existing positiveNumberType for stroke-miterlimit.

As for stroke-dasharray, we add a separated type specifically for it. Note
that we haven't supported unitless length in servo and stylo yet, so I didn't
add tests for length. We should add some once we support unitless length
in servo and stylo.

MozReview-Commit-ID: HIUSyvKA2G3
2017-05-04 14:37:29 +08:00