Commit Graph

319 Commits

Author SHA1 Message Date
Mantaroh Yoshinaga
e04fc55c09 Bug 1287983 part 7 - Add negative delay tests for CSS-Transitions event. r=birtles
MozReview-Commit-ID: KOVljOtRqFt

--HG--
extra : rebase_source : 324e0075339a99e7abadb82f3033ec7e4e7175e8
2016-10-21 11:37:53 +09:00
Mantaroh Yoshinaga
f48cb567a6 Bug 1287983 part 4 - Add transition event handler test for checking elapsed time. r=birtles
MozReview-Commit-ID: KwtsVbII95v

--HG--
extra : rebase_source : 5204130473f452d2bca028f34ca2d4199aa18206
2016-10-19 15:16:52 +09:00
Boris Chiou
51c83c2c86 Bug 1272549 - Part 10: Test. r=hiro
MozReview-Commit-ID: DOiNI2DoS7c

--HG--
extra : rebase_source : cbfdbadb05334c3d28b533e002e42eed266679f4
2016-10-06 12:49:11 +08:00
Hiroyuki Ikezoe
a0f9171658 Bug 1310605 - Part 4: Drop gRecordPromiseResolvers. r=boris
MozReview-Commit-ID: 7CrVgGJQjRV

--HG--
extra : rebase_source : 789bb90aa4793fc58f0a4befcac72dc10784aff7
2016-10-18 18:45:35 +09:00
Hiroyuki Ikezoe
fa753fd6ca Bug 1310605 - Part 3: Move test case for pseudo element that can be rewritten to synchronous test. r=boris
tree_ordering test can not be moved because the test waits for animationend
event.

createPseudo() were picked from
testing/web-platform/tests/web-animations/testcommon.js .

MozReview-Commit-ID: EZ2sGEgdMFM

--HG--
extra : rebase_source : 1ebf46dd91f42ba75f5711e781d72e77948e6150
2016-10-18 18:44:53 +09:00
Hiroyuki Ikezoe
9df35ab563 Bug 1310605 - Part 2: Move test cases for CSS animation that can be rewriten to synchronus test. r=boris.
All of cleaning up code were dropped. Also some trivial comments were dropped.

Note that test cases can not be rewritten to synchronous test.
* Waiting for events, e.g. transitionend.
 * single_transition
 * single_animation

* Manipulated by style, e.g. style.animationDuraton = "0.5s".
 * single_transition_cancelled_property
 * single_transition_cancelled_value
 * single_transition_cancelled_noninterpolable
 * single_transition_reversed
 * multiple_transitions
 * single_animation_cancelled_name
 * single_animation_cancelled_duration
 * single_animation_cancelled_delay
 * single_animation_cancelled_fill
 * single_animation_cancelled_iteration_count
 * single_animation_change_XXX
 * coalesce_change_cancel

* Falling into a pending state, e.g. play() or pause().
 * finish_from_pause
 * finish_from_pause_pending
 * play
 * play_filling_forwards
 * play_after_finish
 * pause
 * pause_while_pause_pending
 * aborted_pause

MozReview-Commit-ID: 5bTzO7GtEHF

--HG--
extra : rebase_source : 905f5144706e20c743030b4bcff428ef124abfff
2016-10-18 18:44:42 +09:00
Hiroyuki Ikezoe
5b264f1aac Bug 1310605 - Part 1: Rname test_observers_for_script_animation.html to test_observers_for_sync_api.html. r=boris
MozReview-Commit-ID: K9QJgcdcJu8

--HG--
rename : dom/animation/test/chrome/test_observers_for_script_animation.html => dom/animation/test/chrome/test_observers_for_sync_api.html
extra : rebase_source : 76a7e60e2a60eb307874c6c2b6765977c04405ce
2016-10-18 18:05:41 +09:00
Hiroyuki Ikezoe
ca0f6e0ff5 Bug 1223658 - Part 5: Send animations to compositor even though it's in delay phase. r=birtles
To send animations to compositor in the delay phase we need to
modify Animation::IsPlaying returning true in the delay phase.

Note about background-position-in-delay.html:
After this patch, background-position animation also creates an active layer
from its delay phase.

Also note about test cases in test_animations_omta.html:
After landing bug 1279071, getOMTAStyle() returns the style value only
specified by animations, also in this patch we don't apply any opacity or
transform values in the delay phase, as a result we can't tell animating
value during delay phase on the compositor.

MozReview-Commit-ID: ILYKig3c08d

--HG--
extra : rebase_source : 5715c1f9ec43da3c8374f08cdca82e2ca29fe474
2016-10-14 19:14:12 +09:00
Hiroyuki Ikezoe
db9f210a8c Bug 1283754 - Part 5: Run tests with subtree:true option. r=boris
We should run basically tests with subtree true or false option.

MozReview-Commit-ID: 8HDAnKh7Xq

--HG--
extra : rebase_source : 13d1551240bf68b776df5111c512cd13e248a0ea
2016-10-14 09:34:37 +09:00
Hiroyuki Ikezoe
5e4865cab0 Bug 1283754 - Part 4: Split test cases for script animations which can be re-written to synchronous test in test_animation_observers.html. r=boris
All of the split out test cases were re-written with synchronous API.
Also, cleanup codes in the end of each test cases, e.g. anim.cancel(), were
dropped because we now create a new MutationObserver and a new element for
each test respectively.

MozReview-Commit-ID: 9Bx0OUOU9On

--HG--
extra : rebase_source : c51b9e850bfdc692344012b9176a17083187ab89
2016-10-14 07:58:32 +09:00
Hiroyuki Ikezoe
16b8fd8f57 Bug 1283754 - Part 3: Add setupSynchronousObserver to write synchronouse tests for MutaionObserver. r=boris
MozReview-Commit-ID: 1sV5QHVeEyw

--HG--
extra : rebase_source : 766a282f486a9b68c53771a7d56de3fe659b57ca
2016-10-14 06:52:11 +09:00
Hiroyuki Ikezoe
4e61e83811 Bug 1283754 - Part 2: Replace await_frame() with waitForFrame(). r=boris
MozReview-Commit-ID: 3PhjL7H5qip

--HG--
extra : rebase_source : 222e405e52e8cab709318680151761bc97534d4f
2016-10-14 06:51:48 +09:00
Hiroyuki Ikezoe
4b0ac89265 Bug 1283754 - Part 1: Drop await_timeout() and await_timeout(). r=boris
No one uses these functions.

MozReview-Commit-ID: DLZXQdOzBZA

--HG--
extra : rebase_source : 8471202815f4baf0d0ea911ceb21e21f59800d50
2016-10-14 06:51:37 +09:00
Hiroyuki Ikezoe
2653be237d Bug 1307295 - Do not request restyle for animations on orphaned element. r=birtles
Also we skip to update the cascade and compose style for orphaned elements if
the animation reqeusted restyle but the target element has been removed from
document before a subsequent tick.

MozReview-Commit-ID: 3I6uyvuSPO5

--HG--
extra : rebase_source : 817b123a4e1b64c89cfbe796073d88410792bf84
2016-10-12 15:58:53 +09:00
Hiroyuki Ikezoe
22ccc8580a Bug 1308369 - Use longer duration to avoid intermittent failure. r=birtles
MozReview-Commit-ID: 1PVKWIPm23B

--HG--
extra : rebase_source : a38ca5ec5651842e65ef3866d5f2bfb83c904cf1
2016-10-07 10:48:56 +09:00
Hiroyuki Ikezoe
989299c9fa Bug 1304922 - Part 8: Add a test case to check we don't request restyle for layer when cascading result for the property not running on the compositor is changed r=birtles
Actually this test case does not pass for now, since we don't throttle
animation properties running on the main thread overridden by important
rules.  But after part 6, we don't request restyle layer in the case
when the cascading result of the property which is not running on the
compositor is changed, so this test case is meaningful.

MozReview-Commit-ID: eraPs9WAe9

--HG--
extra : rebase_source : a0d6f6629299fbbad59bcabeae3b8c48b7c7ce1a
2016-10-05 14:53:54 +09:00
Hiroyuki Ikezoe
c354bf91e5 Bug 1304922 - Part 6: Introduce mPropertiesWithImportantRules and mPropertiesForAnimationsLevel and use it to detect conditions that we need to update layers. r=birtles
This patch also makes composite order lowest to highest, as a result we also
need to replace mWinsInCascade checks with the the properties.
The mWinsInCascade membed itself will be removed in a subsequent patch.

Now we call RequestRestyle(Layer) respectively for transition and animation,
so a test case in test_restyles.html works as expected.

And now lower-priority animations are also sent to the compositor so this patch
fixed some tests in test_running_on_compositor.html and
test_animation_performance_warning.html

MozReview-Commit-ID: BchUsJbmatg

--HG--
extra : rebase_source : ff295aecb08bb672ac5f02e26e37a4ea4f3eb7c0
2016-10-05 14:42:56 +09:00
Carsten "Tomcat" Book
5b45193594 merge mozilla-inbound to mozilla-central a=merge 2016-09-29 11:44:58 +02:00
Mantaroh Yoshinaga
32ca318289 Bug 1302038 part 2 - Add DocumentTimelineOptions dictionary. r=birtles,smaug
MozReview-Commit-ID: 6i0PafTmFFo

--HG--
extra : rebase_source : 7c572ed3a94eda250928019b7403ab6b28eafc0b
2016-09-28 16:56:24 +09:00
Mantaroh Yoshinaga
3cccb89f5d Bug 1302007 part 3 - Add test of changing an ancestor's display property. r=hiro
MozReview-Commit-ID: BZHW77ECfrZ
2016-09-28 16:16:12 +09:00
Hiroyuki Ikezoe
7de848f9c8 Bug 1294651 - Don't apply iterationComposite value if the preference for Web Animations API is not enabled. r=boris
MozReview-Commit-ID: 5ckKyDSBv3S

--HG--
extra : rebase_source : 5bf069db17cecac17035bd2c9c925abc4c4e5f2c
2016-09-21 19:17:18 +09:00
Hiroyuki Ikezoe
d41794cec3 Bug 1303793 - Part 2: Run test which uses the Web Animations API in an iframe with the Web Animations API preference. r=birtles
MozReview-Commit-ID: 233vs8Aiw5j

--HG--
rename : dom/animation/test/mozilla/test_set-easing.html => dom/animation/test/mozilla/file_set-easing.html
extra : rebase_source : 13653c93c20c987121773546f71496a30ccd061e
2016-09-20 16:54:09 +09:00
Hiroyuki Ikezoe
e0f666d6eb Bug 1303793 - Part 1: Use testharness.js instead of SimpleTest.js to run the test in an iframe easily. r=birtles
MozReview-Commit-ID: FlT34Npg8uH

--HG--
extra : rebase_source : 6046b27aeb51ca51a965dd5ca990079ab20208a2
2016-09-20 16:53:33 +09:00
Mantaroh Yoshinaga
02a6ea7d52 Bug 1298554 - Remove the animation.id mochitest. r=birtles
MozReview-Commit-ID: 8VTAl9WO7eF

--HG--
extra : rebase_source : b9f7f257a7509ad26d839644e77b2afc7877cd2f
2016-09-12 10:23:10 +09:00
Mantaroh Yoshinaga
01b448239f Bug 1302007 part 2 - Add the test of cancelling the transition when setting display='none'. r=birtles
MozReview-Commit-ID: B6avXxpEpDw

--HG--
extra : rebase_source : 5994b803e7d41e43f53cdc38a473f518ca528ca7
2016-09-13 16:59:52 +09:00
Mantaroh Yoshinaga
4bb206baf4 Bug 1302007 part 1 - Use the promise_test in transition cancel tests. r=birtles
MozReview-Commit-ID: 7cXfwkT7kaH

--HG--
extra : rebase_source : c19372eb265fbc9d0869ac8a9ae41e05f789d5ce
2016-09-12 12:11:15 +09:00
Hiroyuki Ikezoe
af7c75acf9 Bug 1300701 - Notify changedAnimations to mutation observer when priority of CSS animations on an element is changed. r=birtles
MozReview-Commit-ID: GXv4c2DiRij

--HG--
extra : rebase_source : 770933f3a0832dfb05417c39697716b30185adba
2016-09-12 15:04:33 +09:00
Boris Chiou
c15da6fa38 Bug 1274944 - Part 4: Implement mutation observer for setting spacing. r=birtles
MozReview-Commit-ID: LmCO9QyQbBU

--HG--
extra : rebase_source : f078d871b6c5fab565a3ab03fdbf4ac3452704e6
2016-09-05 12:00:12 +08:00
Boris Chiou
7d2125257c Bug 1274944 - Part 3: Test for setting spacing. r=birtles
MozReview-Commit-ID: 5pMhC00vNIh

--HG--
extra : rebase_source : 372babda4a85dea0ddb4a2e34058ee17650f2ee9
2016-09-01 16:51:39 +08:00
Hiroyuki Ikezoe
b9c00b50bf Bug 1254881 - Part 3: Use a longer duration to avoid animation's end time gets too short. r=birtles
MozReview-Commit-ID: w212DglqK9

--HG--
extra : rebase_source : 8c1aaa57223d749a87043f98a671c3e52557d745
2016-09-05 18:50:30 +09:00
Hiroyuki Ikezoe
649709818f Bug 1254881 - Part 2: Introduce a new assertion to check a given animation is not running on the compositor. r=birtles
MozReview-Commit-ID: INmj4eEorIa

--HG--
extra : rebase_source : 9c395d6b7ed8c3da0b118fa3226f1b411c50efc8
2016-09-05 10:34:08 +09:00
Hiroyuki Ikezoe
607cd13827 Bug 1254881 - Part 1: Introdue a new assertion to check a given animation is running on the compositor and output animation current time to log when it's failed. r=birtles
%s/assert_equals(\(.*\).isRunningOnCompositor, omtaEnabled,/assert_animation_is_running_on_compositor(\1,/g

MozReview-Commit-ID: 8gAiTyRTAw2

--HG--
extra : rebase_source : b5c6d4b73c8655c5110a707932a51d5e8e80c0a3
2016-09-05 10:32:33 +09:00
Brian Birtles
dbdadee2fc Bug 1299695 - Rework animation phase and fill mode handling r=hiro
This reflects the following updates to the spec:

  9369384f6c

MozReview-Commit-ID: JYUOZcnPEJQ

--HG--
extra : rebase_source : 88e012f19b875d8e718770772189737e2c17ddaa
2016-09-01 10:57:55 +09:00
Hiroyuki Ikezoe
5de380d415 Bug 1298755 - Part 1: Automation tests to check results after changing composite order caused by changing target element. r=birtles
MozReview-Commit-ID: 9sTA8uOZRZW

--HG--
extra : rebase_source : ff547437797581e17459bca63856139dd83db63c
2016-08-31 13:58:00 +09:00
Satoshi Kojima
a779decd56 Bug 1298571 - Add test cases for bug 1293806 r=hiro
MozReview-Commit-ID: 7pqjv3w1pbM

--HG--
extra : rebase_source : 82438ade0722d881a5d716eecf822f69388f6984
2016-08-29 17:40:42 +09:00
Boris Chiou
464991d55e Bug 1049975 - Part 12: Test for running on the compositor when effects are changed. r=hiro
MozReview-Commit-ID: H4WoIdn1nNL

--HG--
extra : rebase_source : 219267dc6408adac4249b9387c5617bdb99a4c84
2016-07-18 16:38:43 +08:00
Boris Chiou
9ca8c808df Bug 1049975 - Part 11: Fix mutation observer when setting effects. r=birtles
MozReview-Commit-ID: 3td2343LFxX

--HG--
extra : rebase_source : 5bef088200975a09663803d2616adb7bd3fe2e2b
2016-08-16 20:00:35 +08:00
Boris Chiou
92bf15ed7b Bug 1049975 - Part 10: Test for writable effect. r=birtles
MozReview-Commit-ID: 2hMY2barRb9

--HG--
extra : rebase_source : 87756ac3bcbbd604a50c280f33b3e3b8169b285d
2016-07-14 17:16:18 +08:00
Boris Chiou
1c36938ba6 Bug 1290535 - Part 2: Add test. r=hiro
MozReview-Commit-ID: 8qDnF8RdXFF

--HG--
extra : rebase_source : 7322910400b38120a1ff0dde8bb95cb01affde13
2016-08-19 14:13:00 +08:00
Daisuke Akatsuka
b179aa1d62 Bug 1277433 - Part 4: Add CSS Animation tests. r=birtles
MozReview-Commit-ID: 12CdohazBTS

--HG--
extra : rebase_source : 87a6e17b33241d3db230137f4478357df5a8d4f0
2016-08-16 14:30:15 +09:00
Matt Woodrow
b18018a706 Bug 1282312 - Part 3: Add test for disabling of async animations with rendering observers. r=hiro 2016-07-29 17:59:02 +12:00
Daisuke Akatsuka
4f153efd27 Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
MozReview-Commit-ID: Dhrco8madlz

--HG--
extra : rebase_source : b26d9d25c2dd54f7ec0e12dd51127229cb085346
2016-07-27 10:13:17 +09:00
Daisuke Akatsuka
92b6c55c8d Bug 1264865 - Part 1: steps(3, end) should serialize using the shorter steps(3) syntax. r=birtles
MozReview-Commit-ID: HBukw3qjyrr

--HG--
extra : rebase_source : 53bdcefc66cffa92c438bb3be794e6537533461c
2016-07-27 10:12:43 +09:00
Boris Chiou
a8ff634f84 Bug 1272475 - Part 2: Add crashtests and mochitests. r=heycam
MozReview-Commit-ID: A8CpiMLfa7Q

--HG--
extra : rebase_source : 5a9b2911c41e4c08249a9d85e95a8bb2fa906493
2016-07-20 16:00:36 +08:00
Brian Birtles
dca0a51347 Bug 1277456 part 4 - Use the document associated with an AnimationEffectTiming object as the context for parsing easing rather than the current realm document; r=bz
MozReview-Commit-ID: 4LhbIUIz6Vd

--HG--
extra : rebase_source : 817d59a42876d2c28455fece896e0648fbff551e
2016-07-13 13:22:13 +09:00
Brian Birtles
f0043df530 Bug 1277456 part 3 - Move set easing test to mozilla folder; r=hiro
There doesn't seem to be a need to have a separate 'sandbox' folder just for
this test. It's a Gecko-specific test so it can go in the 'mozilla' folder.

MozReview-Commit-ID: 340knfWtcD7

--HG--
rename : dom/animation/test/sandbox/test_set-easing.html => dom/animation/test/mozilla/test_set-easing.html
extra : rebase_source : 44a03425bbfee97a06d498224dcaa76b51c3b317
2016-07-13 13:02:28 +09:00
Hiroyuki Ikezoe
cf5206ec40 Bug 1278485 - Part 2: ComputedTimingFunction::GetValue ensures 0 or 1 on both edges. r=birtles
MozReview-Commit-ID: ABkcUhhZdbZ

--HG--
extra : rebase_source : fa55b85515abe54d8ac4387e606039d88d4dbce0
2016-07-12 16:33:45 +09:00
Hiroyuki Ikezoe
123f9c80bd Bug 1278485 - Part 1: Limit y1 and y2 control points for cubic-bezier to avoid overflows. r=birtles
MozReview-Commit-ID: Bls260r7Sqn

--HG--
extra : rebase_source : bd836b8bd0666ce5c387aeb91149587d93db386d
2016-07-12 16:24:42 +09:00
Hiroyuki Ikezoe
770052aeaa Bug 1285407 - Part 2: We need to call MarkCascadeNeedsUpdate() when the style context is changed. r=birtles
MozReview-Commit-ID: 2z2HgSDzhLd

--HG--
extra : rebase_source : d16e7db0a79d393de63b11927a2bd5c8c97fa19c
2016-07-11 17:28:15 +09:00
Hiroyuki Ikezoe
685a35fbc5 Bug 1279403 - Part 1: Force to apply corresponding change hint if there is no corresponding layer to generate display item even if animation's segment is transform:none or 100% opacity. r=birtles
To create a stacking context for animations on transform:none segment,
we need to set NS_FRAME_MAY_BE_TRANSFORMED.  The fix is comming in part 2.

Note that in case of animations which has properties preventing running on
the compositor, e.g., width or height, corresponding layer is not created
at all, but even in such cases, we normally set valid change hint for such
animations in each tick, i.e. restyles in each tick. For example:

div.animate([{ opacity: 1, width: '100px' }, { opacity: 0, width: '200px' }], 1000);

This animation causes restyles in every ticks without this patch, this patch
does not affect such animations at all. The only animations which will be
affected by this patch are animations which has opacity/transform but
did not have those properies. e.g,  setting transform by setKeyframes or
changing target element from other target which prevents running on the
compositor, etc.

MozReview-Commit-ID: 78fYqyX8uDX

--HG--
extra : rebase_source : c4a6ef244f26f3d808fd2c6a5f80c1a15478ae31
2016-07-11 08:27:02 +09:00