Commit Graph

83 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Mantaroh Yoshinaga
4cfa9eac29 Bug 1355732 Enable web platform tests of column-* properties animation. r=hiro
MozReview-Commit-ID: EsuYbfbP17G
2017-05-02 17:43:33 +09:00
Jeremy Chen
d61a20d629 Bug 1359786 - reuse existing lengthPairType for positionType in web animations' web-platform-tests. r=hiro DONTBUILD (test-only)
Since lengthPairType and positionType share the same testing logics, we shall
just reuse lengthPairType::{testInterpolation, testAddition} for positionType.

MozReview-Commit-ID: 1nBBHmTB3U9
2017-05-01 00:36:06 +08:00
Jeremy Chen
a5ea701d73 Bug 1359786 - only check the mid-point while testing interpolation results in animations' web-platform-tests. r=hiro DONTBUILD (test-only)
In case of interpolation, we shall just check at 500ms.
No need to check 0ms and 1000ms.

MozReview-Commit-ID: FldqRXj0HLo
2017-05-01 00:36:06 +08:00
Jeremy Chen
4a108d0ac3 Bug 1354437 - enable border-spacing interpolation test. r=hiro
So far, we don't have a type to test anamations of a pair of length.
Since border-spacing consists two absolute lengths, we shall add this
new type.

MozReview-Commit-ID: Bo8VMWPLDHc
2017-04-27 17:26:31 +08:00
Mantaroh Yoshinaga
a1e7afbafb Bug 1356162 - Enable web-platform-tests of clip property animation. r=hiro
MozReview-Commit-ID: 7HRcmV7CWAN
2017-04-26 16:24:30 +09:00
Hiroyuki Ikezoe
934c9ea44b Bug 1356941 - Add text-shadow interpolation tests. r=birtles
MozReview-Commit-ID: J19JN13UXtP
2017-04-24 15:51:32 +09:00
Hiroyuki Ikezoe
671151d60a Bug 1356941 - Add box-shadow interpolation tests. r=birtles
MozReview-Commit-ID: D8rJY1wOd0j
2017-04-24 15:51:25 +09:00
Hiroyuki Ikezoe
58da1c9470 Bug 1356941 - Use IntermediateColor for caret-color. r=birtles
MozReview-Commit-ID: ERFaMfLL9tE
2017-04-24 15:51:01 +09:00
Carsten "Tomcat" Book
8d20e0becd Backed out changeset 140d33b3fbe2 (bug 1355732) 2017-04-19 11:54:34 +02:00
Mantaroh Yoshinaga
ccc7deab12 Bug 1355732 Enable web platform tests of column-* properties animation. r=hiro
MozReview-Commit-ID: EsuYbfbP17G
2017-04-19 09:06:57 +09:00
Mantaroh Yoshinaga
8436b8e04d Bug 1355344 part 2 - Enable w-p-t of perspective-origin animation. r=hiro
MozReview-Commit-ID: 45aFkRfPY9I
2017-04-17 13:55:08 +09:00
Hiroyuki Ikezoe
c7c66576e8 Bug 1354053 - Enable word-spacing interpolation test. r=birtles
MozReview-Commit-ID: 7ojKarwDiyE
2017-04-07 10:13:37 +09:00
Boris Chiou
18dff4af66 Bug 1248340 - Part 7: Move the tests of input range outside [0, 1] into css-timing-1. r=birtles
MozReview-Commit-ID: 8AMdaABvxaF
2017-03-02 17:14:03 +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
d0cb8ff06d Bug 1332206 - Add tests for non-clamping step timing function behavior; r=hiro
MozReview-Commit-ID: 6L1RlrZQyMy
2017-02-08 09:25:31 +09:00
Brian Birtles
c890e8f8c8 Bug 1332206 - Drop some unnecessary calls to pause(); r=hiro
MozReview-Commit-ID: KCvFxh0DbQm
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
70d7bbde05 Bug 1332206 - Add tests for keyframe easing; r=hiro
MozReview-Commit-ID: HkWyQXjr7P5
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
c77afc7e04 Bug 1332206 - Tidy up visibility tests to use single quotes and drop periods at end of test assertions; r=hiro
MozReview-Commit-ID: E5jloD49U0a
2017-02-08 09:25:27 +09:00
Brian Birtles
9673297204 Bug 1332206 - Split effect value tests into separate files; r=hiro
The file naming here is based on the existing effect-value-context.html file,
i.e. we break up all the tests for the calculation the effect value into
separate files named effect-value-***.html.

MozReview-Commit-ID: LY46vX3mHh7
2017-02-08 09:25:26 +09:00
Hiroyuki Ikezoe
5b8a100d8d Bug 1333295 - Use 'left' and 'right' for 'clear' property animation. r=daisuke
'inline-start' and 'inline-end' are still behind the pref on beta channel
(bug 1253919).

MozReview-Commit-ID: ISI5QYbjf7X
2017-01-24 12:15:42 +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
dec485f2b1 Bug 1311620 - Part 11: Implement shadow list addition. r=boris
MozReview-Commit-ID: DRShA4qUS8Q
2016-12-24 20:05:34 +09:00
Hiroyuki Ikezoe
903a60b23a Bug 1311620 - Part 10: Implement filter list addition. r=boris
MozReview-Commit-ID: 8bQWBVveP9L
2016-12-24 20:04:56 +09:00
Hiroyuki Ikezoe
d20c8234d8 Bug 1311620 - Part 7: addition result tests per properties. r=boris
This includes some failure test cases:

1) Color interpolation with overflowed colors.
Additive color needs to be with overflowed color components that are produced
by additive calculation. For example:

 an additive color animation between rgb(100, 100, 100) and rgb(200, 200, 200)
 on rgb(100, 100, 100) element should be an animation of colors;
 from rgb(200, 200, 200) to rgb(300, 300, 300).

This will be fixed in the next patch (part 8).

2) All transform tests.
Additive transform list has to be concatinated, it will be done in a subsequent
patch (part 9).

MozReview-Commit-ID: 5OoT6icVMcC
2016-12-24 19:57:49 +09:00