Files
firefox/devtools/client/markupview
Sami Jaktholm 201f78a85b Bug 1199180 - Wait for the inspector-updated event after selecting nodes with UP key. r=pbrosset
The likely steps that lead to intermittent failures in
browser_markupview_keybindings_04.js are:
1) UP key is pressed, the test waits for child updates and
   node-highlight event.
2) Once those have finished, the selection has changed to <body> BUT
   the inspector-updated event for the change has not been emitted
   (child node update finishes before the event is emitted).
3) The test calls selectWithElementPicker() presses ENTER to pick the
   <div> element and starts to wait for an inspector-updated event.
4) The inspector-updated event from (1) is finally emitted and the test
   continues BUT the selection change at (3) has not yet completed.
   This means <body> is still selected and the assertion fails.

Since a new selection will always cause the inspector-updated event to
be emitted it makes sense to wait for it after pressing UP.
2015-11-07 08:27:16 +02:00
..