Closed Bug 1405652 Opened 7 years ago Closed 7 years ago

Migrate browser_webconsole_view_source.js to the new frontend

Categories

(DevTools :: Console, enhancement, P1)

enhancement

Tracking

(firefox57 wontfix, firefox58 fixed)

RESOLVED FIXED
Firefox 58
Tracking Status
firefox57 --- wontfix
firefox58 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

      No description provided.
Priority: -- → P3
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: P3 → P1
Comment on attachment 8920486 [details]
Bug 1405652 - Enable browser_webconsole_view_source.js in new console frontend; .

https://reviewboard.mozilla.org/r/191488/#review196814

::: devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_view_source.js:32
(Diff revision 1)
> -  let tab = yield onTabOpen;
>    ok(true, "the view source tab was opened in response to clicking the location node");
> -  gBrowser.removeTab(tab);
>  });
> +
> +async function waitForTabLoad() {

I think `BrowserTestUtils.waitForNewTab(gBrowser, null, true)` can replace this function: https://searchfox.org/mozilla-central/source/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm?from=BrowserTestUtils.jsm#391
Attachment #8920486 - Flags: review?(bgrinstead) → review+
(In reply to Brian Grinstead [:bgrins] from comment #2)
> Comment on attachment 8920486 [details]
> Bug 1405652 - Enable browser_webconsole_view_source.js in new console
> frontend; .
> 
> https://reviewboard.mozilla.org/r/191488/#review196814
> 
> :::
> devtools/client/webconsole/new-console-output/test/mochitest/
> browser_webconsole_view_source.js:32
> (Diff revision 1)
> > -  let tab = yield onTabOpen;
> >    ok(true, "the view source tab was opened in response to clicking the location node");
> > -  gBrowser.removeTab(tab);
> >  });
> > +
> > +async function waitForTabLoad() {
> 
> I think `BrowserTestUtils.waitForNewTab(gBrowser, null, true)` can replace
> this function:
> https://searchfox.org/mozilla-central/source/testing/mochitest/
> BrowserTestUtils/BrowserTestUtils.jsm?from=BrowserTestUtils.jsm#391

works like a charm, thanks !
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/810825b3ce19
Enable browser_webconsole_view_source.js in new console frontend; r=bgrins.
https://hg.mozilla.org/mozilla-central/rev/810825b3ce19
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: