Open Bug 1414563 Opened 7 years ago Updated 3 years ago

TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/content-tabs/test-content-tab.js | test-content-tab.js::test_spellcheck_in_content_tabs

Categories

(Thunderbird :: General, enhancement)

enhancement

Tracking

(Not tracked)

REOPENED
Thunderbird 58.0

People

(Reporter: jorgk-bmo, Assigned: aceman)

Details

(Whiteboard: [Thunderbird-testfailure: Z Linux debug])

Attachments

(1 file)

Frequently seen on Linux debug on Treeherder. No so frequent to be really annoying, so I haven't disabled it yet. I hear that a patch is in the wings, so here's the bug ;-)
Attached patch 1414563.patchSplinter Review
Attachment #8925311 - Flags: review?(jorgk)
Comment on attachment 8925311 [details] [diff] [review] 1414563.patch Looks good. Thanks for the "boy-scout" clean-up. You're the best person to know when to wait. Sadly this is just the tip of the iceberg of test failures on Linux debug.
Attachment #8925311 - Flags: review?(jorgk) → review+
How about TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/content-tabs/test-content-tab.js | test-content-tab.js::test_content_tab_context_menu next, that's the second most frequent failure I haven't switched off yet (no bug yet).
I thought that one is solved by this patch too. Yes, there is no change to the function, so it may be the test-content-tab.js::test_spellcheck_in_content_tabs affected it.
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/b5fb9c055e0e wait for context menu to open before poking its contents in test-content-tab.js. r=jorgk CLOSED TREE
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 58.0
Flags: needinfo?(acelists)
Pretty perma-red on Linux and Windows debug.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Flags: needinfo?(acelists)

Just for the record: This test is totally wrong. Spell check in M-C is async, so this code doesn't fly:
assert_true(suggestions.length > 0, "What, is zombocom a registered word now?");

Which is what we see:
EXCEPTION: What, is zombocom a registered word now?

The suggestions simply haven't arrived yet. I've written some spellcheck Mochitests for M-C once upon a time, and the right ways is to listen to some sort of event. Looking at the tests in editor/spellchecker/tests/, it's the onSpellCheck() callback. So we should wait for the spellcheck to finish before opening the context menu.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: