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