gecko-dev/browser/devtools
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-manager Bug 1058997 - Part 3c: Remove always allow init calls from tests. r=past 2014-12-01 22:55:56 -08:00
canvasdebugger Backed out changesets 34a66a625618, 32db3daa20fe, and ac15ba8568c5 (bug 1102219) for Gaia unit test failures. 2014-12-11 11:28:30 -05:00
commandline Bug 1088861 - Refactor console tests to prepare for async js evaluation requests;r=past 2014-12-16 17:18:19 -08:00
debugger Bug 1111276 - Replace gBrowser.selectedTab.linkedBrowser with gBrowser.selectedBrowser. r=dao 2014-12-15 22:05:46 +01:00
eyedropper Bug 990741 - Add telemetry to eyedropper. r=mratcliffe 2014-12-17 11:04:00 -05:00
fontinspector Bug 1105572 - Font inspector should display fonts using their font weight and style. r=bgrins 2014-12-17 16:05:00 +01:00
framework Bug 1075319 - Use native add_task in devtools mochitests rather than custom asyncTest. r=miker 2014-12-15 03:37:00 -05:00
inspector Bug 940542 - Use Promise.jsm instead of deprecated-sync-thenables in Inspector. r=pbrosset 2014-12-16 10:06:00 -05:00
layoutview Bug 1103993 - 3 - Only refresh the rule/computed views when active; r=bgrins r=ochameau 2014-12-10 09:09:19 +01:00
markupview Bug 1075319 - Use native add_task in devtools mochitests rather than custom asyncTest. r=miker 2014-12-15 03:37:00 -05:00
netmonitor Backed out changesets 34a66a625618, 32db3daa20fe, and ac15ba8568c5 (bug 1102219) for Gaia unit test failures. 2014-12-11 11:28:30 -05:00
performance Bug 1077457 - Add markers and memory to Overview->Timeline view in new performance tool, r=jsantell 2014-12-12 22:31:27 -05:00
profiler Backed out changesets 34a66a625618, 32db3daa20fe, and ac15ba8568c5 (bug 1102219) for Gaia unit test failures. 2014-12-11 11:28:30 -05:00
projecteditor Bug 1111601 - Avoid using hiddenwindow in DevTools code r=pbrosset 2014-12-17 13:43:30 +00:00
responsivedesign Bug 1097814 - Fix fake hardware buttons in mulet. r=paul, r=vingtetun 2014-11-20 10:48:00 -05:00
scratchpad Bug 1088861 - Add evaluateJSAsync method on the web console actor;r=past 2014-12-16 17:18:26 -08:00
shadereditor Backed out changesets 34a66a625618, 32db3daa20fe, and ac15ba8568c5 (bug 1102219) for Gaia unit test failures. 2014-12-11 11:28:30 -05:00
shared Bug 990741 - Add telemetry to eyedropper. r=mratcliffe 2014-12-17 11:04:00 -05:00
sourceeditor Backed out changesets 34a66a625618, 32db3daa20fe, and ac15ba8568c5 (bug 1102219) for Gaia unit test failures. 2014-12-11 11:28:30 -05:00
storage Bug 927349 part 20 - Update selectTreeItem to wait for tree expansion animations to finish; r=bgrins 2014-12-22 09:35:42 +09:00
styleeditor Bug 1111276 - Replace gBrowser.selectedTab.linkedBrowser with gBrowser.selectedBrowser. r=dao 2014-12-15 22:05:46 +01:00
styleinspector Bug 990741 - Add telemetry to eyedropper. r=mratcliffe 2014-12-17 11:04:00 -05:00
tilt Bug 1090913 - Make mochitests fail when it has 0 passes and 0 fails r=jmaher 2014-11-05 16:00:52 +00:00
timeline Backed out changeset cab12d762123 (bug 1087877) for e10s mochitest-dt failures. 2014-12-15 15:58:27 -05:00
webaudioeditor Bug 1110878 - Don't display arrow dropdowns on web audio inspector variables. r=jryans 2014-12-17 12:09:00 -05:00
webconsole Bug 1088861 - Add evaluateJSAsync method on the web console actor;r=past 2014-12-16 17:18:26 -08:00
webide Bug 1112836 - Control runtime auto-connect in UI. r=ochameau 2014-12-17 15:49:00 +01:00
devtools-clhandler.js Bug 1080302 (part 2) - Convert all mentions of -foo options to --foo options in comments, help messages and error messages. r=glandium. 2014-10-23 17:35:27 -07:00
devtools-clhandler.manifest Backed out 7 changesets (bug 942756) for Gi bustage 2014-04-24 14:30:44 -07:00
jar.mn Bug 1107947 - Small reorg of the files in the new performance tool, r=jsantell 2014-12-06 12:08:10 -05:00
main.js Bug 1094203 - Enable tools if related actor is available. r=jryans 2014-11-12 04:57:00 +01:00
moz.build Bug 1077441 - create empty performance tool under build flag. r=vp 2014-10-15 09:46:00 +02:00