Closed Bug 1680002 Opened 3 years ago Closed 3 years ago

Tests need to restore default environment

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

defect

Tracking

(thunderbird_esr78 wontfix, thunderbird84 wontfix)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird84 --- wontfix

People

(Reporter: TbSync, Assigned: TbSync)

Details

Attachments

(1 file, 2 obsolete files)

The test

  • browser_ext_mailTabs.js
  • browser_ext_menus.js

change the folderpane and tests after them fail (but not if they run on its own).

Restore folder pane to default.

Attachment #9190529 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9190529 [details] [diff] [review]
bug1680002_tests_restore_default.patch

Review of attachment 9190529 [details] [diff] [review]:
-----------------------------------------------------------------

Usually a special function name, registerCleanupFunction,  is used for cleanup.
Attachment #9190529 - Flags: review?(mkmelin+mozilla)
Attachment #9190529 - Attachment is obsolete: true

Comment on attachment 9190541 [details] [diff] [review]
bug1680002_tests_restore_default_2.patch

Using registerCleanupFunction() now.

Attachment #9190541 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9190541 [details] [diff] [review]
bug1680002_tests_restore_default_2.patch

Review of attachment 9190541 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM, r=mkmelin
Attachment #9190541 - Flags: review?(mkmelin+mozilla) → review+

Eslint fixes. Sorry.

Attachment #9190541 - Attachment is obsolete: true
Attachment #9190573 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9190573 [details] [diff] [review]
bug1680002_tests_restore_default_2_eslint.patch

Review of attachment 9190573 [details] [diff] [review]:
-----------------------------------------------------------------

Thx, for such things just upload a new patch and mark it r+. I'll land this now
Attachment #9190573 - Flags: review?(mkmelin+mozilla) → review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a8a6afc8fc91
Tests need to restore default environment. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: