gecko-dev/browser
Brian Birtles 76a87ac42a Bug 927349 part 20 - Update selectTreeItem to wait for tree expansion animations to finish; r=bgrins
Currently selectTreeItem, as used by various devtools storage panel tests,
expands the tree then clicks items. However, it fails to account for the fact
that expansion animations may mean that the item that should be selected is not
yet able to be clicked. It currently happens to be lucky enough that typically
the animation is short enough that the item in question will be click-able in
time (since click() spins the event loop using executeSoon there is some time
for the animation to play).

If we make animations wait until their first frame has rendered before
beginning the chance that the tree item will become clickable in time is
reduced. This patch works around that by looking for animating branches
amongst the ancestors of the item to be selected. If one is found it waits for
the animation to end.

Unfortunately this ties the tests to the tree widget styles somewhat (in
particular the test looks for specified values of max-height).
However, these changes only delay the execution of the test so, if these styles
were to change, it is only likely that these tests would fail (and hence need to
be updated) than to mask a genuine bug. Until the Web Animations API is
available by default it is difficult to test if animations are running so this
seems like the best we can do for now.
2014-12-22 09:35:42 +09:00
..
app No bug, Automated blocklist update from host bld-linux64-spot-115 - a=blocklist-update 2014-12-20 03:20:59 -08:00
base Backed out changeset ded76f782c5e (bug 1106432) for leaks. 2014-12-19 16:54:30 -05:00
branding Bug 1091980: enable firstrun page for Aurora (Dev Edition), r=jwalker, a=jgriffiths 2014-11-25 09:31:58 -08:00
components Bug 1055145: Remove push server fallback from Loop Client. r=abr 2014-12-19 15:37:26 -08:00
config Bug 1112314 - Add a mozconfig for Linux64 code coverage builds, r=ted, DONTBUILD because NPOTB 2014-12-16 16:54:54 -05:00
devtools Bug 927349 part 20 - Update selectTreeItem to wait for tree expansion animations to finish; r=bgrins 2014-12-22 09:35:42 +09:00
docs Backed out changeset b556a4fdfe52 (bug 1036908) for bc1 test errors 2014-09-08 10:19:50 +02:00
experiments Bug 1098135 - Convert some rules to misc tier; r=glandium 2014-11-13 19:30:21 -08:00
extensions Bug 1110260 - Update pdf.js to version 1.0.978. r=bdahl 2014-12-15 18:41:28 -05:00
fuel Bug 1110069 - Replace getBrowser() with gBrowser in /browser. r=dao 2014-12-11 21:48:00 -05:00
installer Bug 1101790 - FHRProvider for UITour, records treatment tag data. r=bsmedberg 2014-11-20 18:21:29 -02:00
locales Bug 1109430 - Sync migrator module should show confirmation after resending verification email. r=adw 2014-12-18 16:14:58 +11:00
metro Backed out changesets 34a66a625618, 32db3daa20fe, and ac15ba8568c5 (bug 1102219) for Gaia unit test failures. 2014-12-11 11:28:30 -05:00
modules Bug 1026444 fix error pages in social panels, r=markh 2014-12-19 12:41:09 -08:00
themes Bug 1112715 - Remove undefined tab-hover-color reference and tab-color variable, which was never applied due to specificity;r=Gijs 2014-12-19 14:25:48 -08:00
app-rules.mk
app.mozbuild Bug 1063414 - Make DIRS relative to the file they were added from. r=gps 2014-10-02 09:14:07 +09:00
build.mk
confvars.sh Bug 1107349 - Always build in enerational GC support; r=jonco 2014-12-04 09:45:05 -08:00
defs.mk
LICENSE
Makefile.in Bug 1044657 - Move PYTHON_UNIT_TESTS to moz.build; r=mshal 2014-07-28 17:51:12 +02:00
moz.build Bug 991757 - add BrowserUITelemetry documentation, r=bsmedberg,jaws, DONTBUILD because docs-only 2014-08-26 12:16:24 +01:00