Hi, those familiar with test infrastructure
I am sorry that I am piggybacking my question/comment on a not directly
related topic.
During xpcshell test of TB, no display (of X11, say, under linux) is
shown. Is this a design decision and is to be expected?
If TB tries to show an error message using X11 dialog when it encounters
an error condition,
it fails miserably during xpcshell test since no display is available.
I had to disable a code to show an error using a dialog because of this
issue with xpcshell test some years ago.
So I am just curious if the decision to inhibit any graphical output
during xpcshell test is a conscious decision or not.
If there is a global variable/function that can tell whether TB is
running under xpcshell test, I could
have conditionally enable the graphical error dialog and still pass the
xpcshell test.
TIA
Chiaki
On 2019/08/27 7:40, Geoff Lankow wrote:
Hi
Over the past year or so, I've been adding mochitests for new
Thunderbird features. It's recently occurred to me that in a
mochitest, Thunderbird does not display mail messages. Not even the
message header list, just a blank rectangle where the message should be.
Obviously this is quite important as displaying messages is
Thunderbird's primary function. But I don't understand the reason.
I expect that it has something to do with message URLs, which are of
the form mailbox:///path/to/mailbox?number=1234.
I know that mochitest does things to network access to prevent tests
from accessing the internet, but that doesn't seem to be the reason as
I can load the URL using fetch.
Is there some logic in docshell that behaves differently in a test? As
far as I can work out, this code [1] is a part of the loading process,
and if docShell->LoadURI fails that would explain why nothing further
happens. (IANA core hacker, excuse my ignorance!)
GL
[1]
https://searchfox.org/comm-central/rev/753e6d9df9d7b9a989d735b01c8b280eef388bab/mailnews/local/src/nsMailboxService.cpp#205
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform