gecko/devtools
Sami Jaktholm 8cf567376b Bug 1219953 - Consider Markup View autoscroll finished only if the view has not scrolled for 30 consecutive frames. r=pbrosset
Waiting for 50ms and checking if the scrollTop has changed does not
necessarily mean that the scrolling has stopped (or even started). It
might also mean that a GC has blocked the autoscroll interval from
running and the scrolling will happen in a few moments. If the view
hasn't even started to scroll, the assertion that the view has scrolled
fails. If the view has started to scroll, the next call to
waitForViewScroll() might resolve when before the direction of the
scrolling is reversed causing the assertions that the direction has
changed to fail.

Instead of relying on intervals to detect if scrolling has stopped, the
test could wait for a certain number of frames during which the view
has not scrolled to determine if the scrolling has ended. This method has
successfully been used in layout/base/tests/test_scroll_snapping.html
to detect when scrolling has stopped.

These changes make browser_markupview_dragdrop_autoscroll.js to use the
previously presented method to detect the end of markup-view autoscroll.
The code used in the layout test has been included in the test and
modified to yield and use promises when waiting for a frame.
2015-11-21 21:43:33 +02:00
..
client Bug 1219953 - Consider Markup View autoscroll finished only if the view has not scrolled for 30 consecutive frames. r=pbrosset 2015-11-21 21:43:33 +02:00
server Bug 1227139 - Fix the webconsole for addon and browser content toolbox by handling a missing performance property on this.window. r=bgrins 2015-11-25 07:54:26 -08:00
shared Back out 34c9087517ea (bug 1200798) for e10s bustage in browser_dbg_reload-same-script.js 2015-11-25 21:39:05 -08:00
.eslintignore
.eslintrc Bug 1218412 - Create ESLint rule to check for CPOWS in browser mochitests r=pbrosset 2015-10-30 17:24:45 +00:00
.eslintrc.mochitests Bug 1210031 - Only subtract scrollbars for window screenshots. r=zer0 2015-11-18 22:47:55 -06:00
.eslintrc.xpcshell
moz.build Bug 1217687 - Appease the mozbuild reading test. r=me 2015-10-23 07:25:19 -05:00
templates.mozbuild Bug 1203159 - Add resource:// mapping in all DevTools directories. r=glandium,ochameau 2015-10-21 12:22:58 -05:00