As a follow-up to this question , I'm trying MozMill to test stand-alone XUL applications (not Firefox extensions). However, I have not yet "understood" - more precisely, how to test an application based on XULRunner.
Consider this application , for example. At the moment, I can run it from the command line, more or less this way:
$ /path/to/xulrunner /full/path/to/mozmillexample/application.ini
I would like to write Mozmill scripts to test it. For example, I would like to write a test, such as this, that has a βtasteβ of unit testing:
Components.utils.import("chrome://mozmillexample/content/example.js", example); var setupModule = function(module) { module.controller = mozmill.getBrowserController();
I would also like to write some functional tests:
Components.utils.import("chrome://mozmillexample/content/example.js", example); var setupModule = function(module) { module.controller = mozmill.getBrowserController();
Unfortunately, however, I did not find any documentation on testing stand-alone applications, at least not explaining the basic steps to anyone. So I ask: is it possible to write tests like these? How can I do this if possible?
javascript unit-testing tdd xul mozmill
brandizzi
source share