Closed Bug 1437714 Opened 6 years ago Closed 6 years ago

Fix timeout in browser_inspector_highlighter-keybinding_03.js with the patch for bug 1193394

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(firefox60 fixed)

RESOLVED FIXED
Firefox 60
Tracking Status
firefox60 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(1 file)

The timeout happened at the place waiting for moveMouseOver promise [1].

CCing Patrick who are the reviewer for the patch that introduced this test in bug 1120111.

[1] https://hg.mozilla.org/mozilla-central/file/6d8f470b2579/devtools/client/inspector/test/browser_inspector_highlighter-keybinding_03.js#l25
I started looking into this (honestly just run the test locally).
Flags: needinfo?(hikezoe)
We have to wait for 'picker-stopped' event after doKeyPick() there before calling startPicker() in the next test case, otherwise the state of the picker will be something broken.

From the failure test;

  info("Testing enter/return key as pick-node command");
  yield doKeyPick({key: "VK_RETURN", options: {}});
  is(inspector.selection.nodeFront.id, "another",
     "The #another node was selected. Passed.");

In this case, we don't wait for 'picker-stopped'.  Whereas;

  info("Testing escape key as cancel-picker command");
  yield startPicker(toolbox);
  yield moveMouseOver("#ahoy");
  yield doKeyStop({key: "VK_ESCAPE", options: {}});
  is(inspector.selection.nodeFront.id, "another",
     "The #another DIV is still selected. Passed.");

in this case we do wait for 'picker-stopped' in doKeyStop().

I haven't checked all code but as per the try in comment 0, this is the only place that we do care about.
Flags: needinfo?(hikezoe)
Gah, the patch causes timeout if the patch for bug 1193394 is not applied.
Flags: needinfo?(hikezoe)
Both tries look green.

Patrick, Though I haven't dug into detail how the test proceeds before 'picker-stopped' event is dispatched, does it make sense to wait for 'picker-stopped' event in doKeyPick() along with 'inspector-updated' and 'new-node-front'?  If it doesn't I'd like to leave devtools guys to investigate this issue.
Flags: needinfo?(pbrosset)
(In reply to Hiroyuki Ikezoe (:hiro) from comment #7)
> Both tries look green.
> 
> Patrick, Though I haven't dug into detail how the test proceeds before
> 'picker-stopped' event is dispatched, does it make sense to wait for
> 'picker-stopped' event in doKeyPick() along with 'inspector-updated' and
> 'new-node-front'?  If it doesn't I'd like to leave devtools guys to
> investigate this issue.
Yes it does! This change looks great to me, and both tries are green, so I think we're good!
Flags: needinfo?(pbrosset)
Thank you Patrick!
Hmm, MozReview doesn't allow to push review requests once the requests specified reviewers that does not accept review request even after the specified reviewers were dropped.
Attachment #8951781 - Flags: review?(hikezoe)
Leaving NI instead of review request.
Flags: needinfo?(pbrosset)
Comment on attachment 8951781 [details]
Bug 1437714 - Wait for 'picker-stopped' event before starting the new picker in the next test case.

:jlast would you mind reviewing this on behalf of :pbro?
Attachment #8951781 - Flags: review?(jlaster)
Assignee: nobody → hikezoe
Status: NEW → ASSIGNED
Comment on attachment 8951781 [details]
Bug 1437714 - Wait for 'picker-stopped' event before starting the new picker in the next test case.

https://reviewboard.mozilla.org/r/221046/#review228660

Thanks Hiro.
Attachment #8951781 - Flags: review+
Flags: needinfo?(pbrosset)
Attachment #8951781 - Flags: review?(jlaster)
Pushed by hikezoe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5f7512c0b66a
Wait for 'picker-stopped' event before starting the new picker in the next test case. r=pbro
https://hg.mozilla.org/mozilla-central/rev/5f7512c0b66a
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: