gecko/browser/devtools/storage
Brian Birtles 5a1d969195 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
..
test Bug 927349 part 20 - Update selectTreeItem to wait for tree expansion animations to finish; r=bgrins 2014-12-22 09:35:42 +09:00
moz.build
panel.js Bug 1076857 - Add basic telemetry to Storage Inspector. r=mratcliffe 2014-11-07 18:06:00 -05:00
storage.xul
ui.js Bug 1076857 - Add basic telemetry to Storage Inspector. r=mratcliffe 2014-11-07 18:06:00 -05:00