Closed Bug 1420593 Opened 7 years ago Closed 7 years ago

Refactor browser/components/preferences/in-content/tests/browser_cookies_exceptions.js

Categories

(Firefox :: General, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Firefox 59
Tracking Status
firefox59 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

Related to bug 1414180, this test needs to be fixed regarding the change in bug 1193394. before that, I'd like to refactor this test to make it easier to fix it. currently this test uses promise with callback, and in some place it's abusing the wait or the original structure. I'm going to rewrite this with async/await.
See Also: → 1421118
This was necessary to investigate the issue fixed in bug 1421118. actually this modification might be overkill, but I think now the test is more easy to understand once some test fails (since there's no loop, no numbering, etc)
Attachment #8932824 - Flags: review?(jaws)
Comment on attachment 8932824 [details] [diff] [review] Refactor browser/components/preferences/in-content/tests/browser_cookies_exceptions.js Review of attachment 8932824 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/preferences/in-content/tests/browser_cookies_exceptions.js @@ +1,5 @@ > /* Any copyright is dedicated to the Public Domain. > * http://creativecommons.org/publicdomain/zero/1.0/ */ > > requestLongerTimeout(2); > +requestLongerTimeout(3); Can you merge these two calls? @@ +272,5 @@ > + let observeAllPromise = createObserveAllPromise(observances); > + > + await test(params, observeAllPromise, () => btnApplyChanges.doCommand()); > + > + gBrowser.removeCurrentTab(); Replace this with `await BrowserTestUtils.removeTab(gBrowser.selectedTab);`
Attachment #8932824 - Flags: review?(jaws) → review+
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/72e07dd3b573 Refactor browser/components/preferences/in-content/tests/browser_cookies_exceptions.js r=jaws
https://hg.mozilla.org/integration/mozilla-inbound/rev/72e07dd3b573d2c5f387338a8c83b7f996f2f0ff Bug 1420593 - Refactor browser/components/preferences/in-content/tests/browser_cookies_exceptions.js r=jaws
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: