On 2017/06/16 5:33, Andrew Sutherland wrote:
On Thu, Jun 15, 2017, at 03:27 AM, ishikawa wrote:
On local machine, when I added a modal error dailog as a response to an
error condition, which happens to be  artificially created and tested in
xpcshell test, the test fails because the screen or whatever is not
available. Fair enough, but it was rather disappointing to see such a
feature needed to be disabled due to xpcshell test failing.

You may want to check out
https://searchfox.org/comm-central/source/mailnews/test/resources/alertTestUtils.js
which provides for intercepting various modal prompts in Thunderbird
xpcshell tests.  Whatever the test is testing likely wants to also be
verifying the dialog pops up, which that helper library provides.


Interesting.
But this covers only modal prompts generated by/in JavaScript modules, and not C++ code? If so, maybe I should re-think my previous error/warning dialog to see if the generation can be moved to JavaScript code.
It was generated in C++ code.

Andrew

Thank you again for the tips.

Chiaki
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to