gecko-dev/dom/animation/test
Hiroyuki Ikezoe 74b350fbd2 Bug 1421476 - Wait for the next frame after waitForWheelEvent(). r=birtles
sendWheelAndPaintNoFlush which calls in waitForWheelEvent()  waits for
MozAfterPaint and calls a given callback function when the MozAfterPaint is
received.  The MozAfterPaint is processed after we did a paint process.
However, observeStyling counts the number of requestAnimationFrame callbacks
and yet there will be no opportunity to process restyles between the
MozAfterPaint callback and the next call to requestAnimationFrame.  As a result,
if we are expecting restyles to happen on every frame, our count will be off by
one.  To avoid this, we wait until the next requestAnimationFrame callback
before calling observeStyling.

Note that we *could* try to adjust observeStyling to automatically do this for
us but sometimes we want observeStyling to observe restyles in the *current*
frame.  Since there's no obvious way to detect what we are trying to do it's
easier to just let each test decide from which point it wants to count restyles.


MozReview-Commit-ID: 1B8EZNozjFj

--HG--
extra : rebase_source : 748f874dbb42e06b72b12582762626a31d1e8d75
2017-11-29 13:05:21 +09:00
..
chrome Bug 1421151 - Drop redundant calling start(). r=birtles 2017-11-28 16:42:27 +09:00
crashtests Bug 1411318 - Don't consider an animation playing if its timeline is inactive; r=hiro 2017-10-26 10:18:42 +09:00
css-animations Bug 1412765 - Update tests in dom/animation/tests to use new pending member; r=hiro 2017-11-22 14:13:36 +09:00
css-transitions Bug 1412765 - Update tests in dom/animation/tests to use new pending member; r=hiro 2017-11-22 14:13:36 +09:00
document-timeline Bug 1361641 - Part 1: convert mochitest plain tests in dom to use srcdoc. r=smaug 2017-05-09 10:25:23 +08:00
mozilla Bug 1421476 - Wait for the next frame after waitForWheelEvent(). r=birtles 2017-11-29 13:05:21 +09:00
style Bug 1415734 - Don't start test refresh mode if there is any suppressed paints. r=birtles 2017-11-10 06:38:15 +09:00
chrome.ini Bug 1379515 - Run test_restyles.html in content. r=birtles 2017-10-30 09:49:32 +09:00
mochitest.ini Bug 1363957 - Disable dom/animation/test/mozilla/test_deferred_start.html on android/debug and win10 for frequent failures. r=me, a=test-only 2017-11-13 12:20:01 -05:00
testcommon.js Bug 1421476 - Make waitForAnimationFrames wait for the correct number of consecutive animation frames for the given count. r=birtles 2017-11-29 13:05:07 +09:00