Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
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
Heather Arthur b723a94632 Bug 1076857 - Add basic telemetry to Storage Inspector. r=mratcliffe 2014-11-07 18:06:00 -05:00
J. Ryan Stinnett 07ae2753cc Bug 979536 - Part 3: Fix reopening storage tool. r=mratcliffe 2014-09-24 08:48:00 +02:00
Girish Sharma d97f20d1cc Bug 970517 - Storage Inspector fron end - tests, r=jwalker 2014-08-29 18:24:52 +05:30
Girish Sharma 2e264a6e61 Bug 970517 - Storage Inspector front end, r=jwalker, mratcliffe 2014-08-29 22:02:49 +05:30