Closed
Bug 1450563
Opened 7 years ago
Closed 7 years ago
Modernize browser_bug432599.js
Categories
(Toolkit :: Places, enhancement, P3)
Toolkit
Places
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 hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
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+
Assignee | ||
Comment 3•7 years ago
|
||
(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.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/65bbe1ed20ee
Modernize browser_bug432599.js. r=standard8
Comment 7•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•