Open Bug 2073946 Opened 2 months ago Updated 23 days ago

Improve code coverage by implementing new tests

Categories

(Thunderbird :: General, task)

task

Tracking

(Not tracked)

ASSIGNED
158 Branch

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Keywords: leave-open)

Attachments

(7 external files)

I'll use this bug to create tests for sections of code that aren't already covered by tests. This bug replaces bug 1978987 before it, for work after v153.

These tests can use the same helper as for main menus, which reduces duplication and adds testing
of menu item disabled and checked states.

Additionally I've reworked the absolute mess that is browser_mailContext.js, into a small number
of modes plus variations depending on the context. Hopefully now other people can understand it.

Keywords: leave-open
Target Milestone: --- → 158 Branch
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/a1b759b1d014 Refactor context menu tests to use the same code. r=vineet https://hg.mozilla.org/comm-central/rev/c2caacd8e6d5 Better test the message header "other actions" menu. r=mkmelin

I'm going to refactor the code that makes this work, but first it needs a regression test.

I had to modify treeClick, as there's a calculation error in the tree widget that's not worth fixing.

Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/4149cc8bbfa6 Test the toggle button columns in the search window. r=mkmelin

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ae28e1b4d378
Test the toggle button columns in about:3pane. r=mkmelin
https://hg.mozilla.org/comm-central/rev/d6e33029e4a2
Test selecting messages from the Edit menu. r=mkmelin

No longer blocks: tb-maintenance-2026-q3

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/15cf020b3fca
Test marking messages as read or flagged from menus. r=mkmelin

Regressions: 2088048
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/9de3f277c3a6 Revert "Bug 2073946 - Test marking messages as read or flagged from menus. r=mkmelin"

Practically speaking, GetAllConnectionsIdle is a check that an IMAP server has nothing left to
do, so even if all connections are idle, it should only return true if the queue is also empty.

Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/935c8cafd220 Check the IMAP queue is empty before reporting all connections are idle. r=aleca https://hg.mozilla.org/comm-central/rev/1466690d381b Test marking messages as read or flagged from menus. r=mkmelin
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: