gecko-dev/dom/animation/test
Hiroyuki Ikezoe e7e006516c Bug 1415734 - Don't start test refresh mode if there is any suppressed paints. r=birtles
When paintingSuppressed flag is true, paint_listener.waitForPaints() defers the
waiting paint to the next tick.  The paintingSupressed flag is set when pres
shell is initialized and at that time if the document has not been loaded yet,
a timer is created to clear the flag after nglayout.initialpaint.delay
elapsed.  And when the timer is fired, the flag is cleared, but if there is
still pending reflow, it's not cleared.

So what happened in the failure case;

1) In the first promise_test we wait for document load
2) The paintingSuppressed flag is set in the first promise_test and create the
   timer
3) When the document has been loaded but the timer has not yet been fired,
   start test refresh mode and create an element in the subsequent promise_test
4) Creating the element triggers a reflow
5) waitForPaints() is called
6) The timer is fired, but there is a pending reflow, so skip clearing the flag
7) Now it's in the test refresh mode, the pending flow will never be processed
   until some triggers happen (i.e. mouse movement, calling
   advanceTimeAndRefresh, etc.)
8) The test is timed out

MozReview-Commit-ID: 5fLn9SNHp1J

--HG--
extra : rebase_source : 3115a5d5ac1405f18efde7ade1fb9738858c518f
2017-11-10 06:38:15 +09:00
..
chrome Bug 1414340 part 1 - Remove non-standard array/generator comprehensions from browser code. r=mossop 2017-11-10 11:52:22 +01: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 1415346 - Bind onxx event handler before creating EventWatcher. r=birtles 2017-11-08 12:45:15 +09:00
css-transitions Bug 1415346 - Bind onxx event handler before creating EventWatcher. r=birtles 2017-11-08 12:45:15 +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 1190721 - Throttle animations that produce any transform change hint if the target element is out-of-view. r=birtles 2017-10-31 09:45:41 +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 1335986 - Run test_restyles.html on Android. r=birtles 2017-10-31 08:34:47 +09:00
testcommon.js Bug 1415734 - Don't start test refresh mode if there is any suppressed paints. r=birtles 2017-11-10 06:38:15 +09:00