Closed Bug 1450563 Opened 7 years ago Closed 7 years ago

Modernize browser_bug432599.js

Categories

(Toolkit :: Places, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: mak, Assigned: mak)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxsearch])

Attachments

(1 file)

This test uses old sync APIs and could use async/await
Comment on attachment 8964177 [details] Bug 1450563 - Modernize browser_bug432599.js. https://reviewboard.mozilla.org/r/232924/#review238802 Looks good. r=Standard8 ::: browser/base/content/test/general/browser_bug432599.js:45 (Diff revision 1) > - gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser); > - BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser).then(() => { > - waitForStarChange(false, initTest); > }); > > - gBrowser.loadURI(testURL); > + // Wait for Star button change. Is this actually a change, or is this just ensuring the start state?
Attachment #8964177 - Flags: review?(standard8) → review+
(In reply to Mark Banner (:standard8) from comment #2) > Comment on attachment 8964177 [details] > Bug 1450563 - Modernize browser_bug432599.js. > > https://reviewboard.mozilla.org/r/232924/#review238802 > > Looks good. r=Standard8 > > ::: browser/base/content/test/general/browser_bug432599.js:45 > (Diff revision 1) > > - gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser); > > - BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser).then(() => { > > - waitForStarChange(false, initTest); > > }); > > > > - gBrowser.loadURI(testURL); > > + // Wait for Star button change. > > Is this actually a change, or is this just ensuring the start state? which one is a change? The test was adding a tab, loading the page and then waiting for the star to not be pending before calling initTest. I'm doing the same exact things afaict, just in a readable way. I admit the comment is not great, I'll update it.
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/65bbe1ed20ee Modernize browser_bug432599.js. r=standard8
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: