windows settings-import tests (test_outlook_settings.js and test_winmail.js) are broken
Categories
(Thunderbird :: OS Integration, defect)
Tracking
(Not tracked)
People
(Reporter: benc, Assigned: benc)
Details
Attachments
(1 file, 1 obsolete file)
3.62 KB,
patch
|
benc
:
review+
|
Details | Diff | Splinter Review |
This is a weird one. The tests appear to run fine, but while working on bug 1614846, test_outlook_settings.js and test_winmail.js suddenly started breaking on me.
I thought that my bug 1614846 work had broken something, but upon more investigation, it seems that the test data was bad, and that the tests should have been breaking all along!
The triggering patch in Bug 1614846 changes nsIAccountManager.accounts
to return a proper JS array rather than an nsIArray.
My theory is that the tests weren't properly handling nsIArray
and this was causing some checks to be skipped, thus letting the tests pass, erroneously.
Making accounts
return a JS array accidentally 'fixed' the tests, so they started failing :-)
Assignee | ||
Comment 1•5 years ago
|
||
This fixes the data in the tests, but won't fix the suspected breakage in the tests themselves.
But it will prevent test fails once the first patch in Bug 1614846 is applied and the tests start running properly!
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Tweaked to clarify the comments about default values in the testdata.
Assignee | ||
Comment 4•5 years ago
|
||
win32 try build just to show the tests still passing:
...even though they're probably really still failing without the Bug 1614846 patch!
But now they continue to work with the 1614846 patch applied: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=6c81ea172348b677edd90753b6f5b5be3afbce6a
Updated•5 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/d1e9c855e247
Fix incorrect/missing testdata in windows settings-import tests. r=mkmelin
Description
•