Re: Creating mock nsIPrintingPromptService

2013-09-08 Thread Gavin Sharp
Here are a few examples of mocked components:

http://mxr.mozilla.org/mozilla-central/source/testing/specialpowers/content/MockPermissionPrompt.jsm?force=1
mocks nsIContentPermissionPrompt

http://mxr.mozilla.org/mozilla-central/source/dom/tests/mochitest/bugs/test_bug61098.html?raw=1
mocks nsIPrompt and nsIPromptService/nsIPromptFactory.

Gavin

On Sun, Sep 8, 2013 at 8:21 AM, Sunil Agrawal su...@armor5.com wrote:
 (Apologies if this is not the right forum, in which case please direct me to 
 one).

 I am looking at creating a mock nsIPrintingPromptService (so that I can bring 
 up my own Print dialog) for my testing purpose, preferably in Javascript.

 I looked around Mozilla code base but couldn't find a starting point. Is 
 there an existing test that could be doing something similar that I can use?

 Thanks in advance,
 Sunil
 ___
 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


Creating mock nsIPrintingPromptService

2013-09-07 Thread Sunil Agrawal
(Apologies if this is not the right forum, in which case please direct me to 
one).

I am looking at creating a mock nsIPrintingPromptService (so that I can bring 
up my own Print dialog) for my testing purpose, preferably in Javascript.

I looked around Mozilla code base but couldn't find a starting point. Is there 
an existing test that could be doing something similar that I can use?

Thanks in advance,
Sunil 
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform