User:madarche

  • Revision slug: User:madarche
  • Revision title: User:madarche
  • Revision id: 318095
  • Created:
  • Creator: madarche
  • Is current revision? No
  • Comment

Revision Content

Contributed documentation

I have been contributing to the following pages:

Bug reports and requests for enhancement

Here are some of the Mozilla bugs/requests for enhancement I've filled, that I'm following or for which I have provided patches:

  • {{ bug(671290) }} : Implement assertion methods to support arrays (and other objects)
  • {{ Bug(568978) }}: Need assertEquals support for arrays in JUM module
  • {{ Bug(650777) }}: Add support to turn on/off the add-ons toolbar
  • {{ Bug(570493) }}: fidesfit-client tests initial landing
  • {{ Bug(599292) }}: Make single pref and commandline flag to enable developer stuff, to easily set preferences like browser.dom.window.dump.enabled
  • {{ Bug(660069) }}: Provide an "id" for the sidebar close button XUL element
  • {{ Bug(560181) }}: Make it possible to copy paste the notificationbox content
  • {{ Bug(439323) }}: sizeToContent() not always working
  • {{ Bug(320831) }}: Expose visit ID in result nodes
  • {{ Bug(496653) }}:  Command line option --class <WM_CLASS> does not work
  • {{ Bug(596211) }}: [Linux] Wrong initial position for panel[noautohide="true"]

Unit and functional tests

Building applications without tests is a pain. Hopefully there are now usable tools to achieve that for Mozilla addons/extensions, such as Mozmill and UxU. Mozmill is not that easy to use at the beginning (the difficult part is to get how to retrieve the GUI elements references and there is also the recorder that produces a code-that-would-never-run-but-to-treat-as-an-example-to-get-elements-references) but once used to it, it's quite powerful.

What I miss in Mozmill

All the text below may be totally out of date since Mozmill has had much improvements since the time of this writing.

Mozmill would be easier to use with those little suggestions that I gather while I'm using it.

Textbox blanking method

A new method in the Mozmill Controller Object to blank a textbox, without having to use the controller keypress method with 'VK_BACK_SPACE' for each letter would be much welcome.

The keypress method is effective only on the input of the textfield element, which is impossible to get through the element id, one has to resort to use a mochi path. That's why this new blanking method should be given the textfield element, just like the type method.

See Bug 568961 - Need a function to clear a textbox

Retrieving values from filesystem files

It would be great to have an helper method to set some passwords in the login manager before browser window loads :

  • {{ bug(671256) }} : [RFE] Set some passwords in the login manager before browser window loads
  • {{ bug(568943) }} : Add possibility to load account information from local files for restricted tests

Revision Source

<h3 id="Contributed_documentation">Contributed documentation</h3>
<p>I have been contributing to the following pages:</p>
<ul>
  <li><a href="/Talk:en/XUL_School/JavaScript_Object_Management" title="https://developer.mozilla.org/Talk:en/XUL_School/JavaScript_Object_Management">Talk about JavaScript Object Management</a></li>
  <li><a href="/en/Command_Line_Options" title="https://developer.mozilla.org/en/Command_Line_Options">Command_Line_Options</a></li>
  <li><a href="/en/Code_snippets/Sidebar" title="https://developer.mozilla.org/en/Code_snippets/Sidebar">Sidebar code snippets</a></li>
  <li><a href="/en/Code_snippets/Tabbed_browser" title="https://developer.mozilla.org/en/Code_snippets/Tabbed_browser">Tabbed_browser</a> <a href="/en/Code_snippets/Tabbed_browser" title="https://developer.mozilla.org/en/Code_snippets/Tabbed_browser">code snippets</a></li>
  <li><a href="/en/Code_snippets/Preferences" title="https://developer.mozilla.org/en/Code_snippets/Preferences">Preferences code snippets</a></li>
  <li><a href="/en/How_to_implement_custom_autocomplete_search_component" title="https://developer.mozilla.org/en/How_to_implement_custom_autocomplete_search_component">How to implement custom autocomplete search component</a></li>
  <li><a href="/en/Mozmill_Tests" title="https://developer.mozilla.org/en/Mozmill_Tests">Mozmill tests</a></li>
  <li><a href="/en/Mozmill/First_Steps/Tutorial:_Introduction_to_Mozmill" title="https://developer.mozilla.org/en/Mozmill/First_Steps/Tutorial:_Introduction_to_Mozmill">Tutorial: Introduction to Mozmill</a></li>
  <li><a href="/en/Mozmill/Mozmill_Controller_Object" title="https://developer.mozilla.org/en/Mozmill/Mozmill Controller Object">Mozmill Controller Object</a></li>
  <li><a href="/en/DOM/XMLHttpRequest/Using_XMLHttpRequest" title="https://developer.mozilla.org/En/XMLHttpRequest/Using_XMLHttpRequest">Using XMLHttpRequest</a></li>
  <li><a href="/en/Setting_HTTP_request_headers" title="https://developer.mozilla.org/en/Setting_HTTP_request_headers">Setting HTTP request headers</a></li>
  <li><a href="/en/Gecko_user_agent_string_reference" title="https://developer.mozilla.org/en/Gecko_user_agent_string_reference">Gecko user agent string reference</a></li>
  <li><a href="/en/XPCOM_Interface_Reference/mozIStorageService" title="https://developer.mozilla.org/en/XPCOM_Interface_Reference/mozIStorageService">XPCOM_Interface_Reference/mozIStorageService</a></li>
  <li><a href="/en/XPCOM_Interface_Reference/nsIWebProgressListener" title="https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIWebProgressListener">XPCOM_Interface_Reference/nsIWebProgressListener</a></li>
  <li><a href="/en/XPCOM_Interface_Reference/nsISessionStore" title="https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsISessionStore">XPCOM_Interface_Reference/nsISessionStore</a></li>
  <li><a href="/en/XPCOM_Interface_Reference/nsIMIMEInputStream" title="https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIMIMEInputStream">XPCOM_Interface_Reference/nsIMIMEInputStream</a></li>
  <li><a href="/en/XPCOM_Interface_Reference/nsIProcess" title="https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIProcess">XPCOM_Interface_Reference/nsIProcess</a></li>
  <li><a href="/en/XPCOM_Interface_Reference/nsIFile" title="https://developer.mozilla.org/en/nsIFile">nsIFile</a></li>
  <li><a href="/en/XUL_School/Local_Storage" title="https://developer.mozilla.org/en/XUL_School/Local_Storage">XUL_School/Local_Storage</a></li>
  <li><a href="/en/XUL_Tutorial/Element_Positioning" title="https://developer.mozilla.org/en/XUL_Tutorial/Element_Positioning">XUL Tutorial/Element_Positioning</a></li>
  <li><a href="/en/XUL_Tutorial/The_Box_Model" title="https://developer.mozilla.org/en/XUL_Tutorial/The_Box_Model">XUL_Tutorial/The_Box_Model</a></li>
  <li><a href="/en/Creating_a_Mozilla_Extension/Finding_the_code_to_modify" title="https://developer.mozilla.org/en/Creating_a_Mozilla_Extension:Finding_the_code_to_modify">Creating_a_Mozilla_Extension / Finding_the_code_to_modify</a></li>
  <li><a href="/en/Extensions/Using_the_DOM_File_API_in_chrome_code" title="https://developer.mozilla.org/en/Extensions/Using_the_DOM_File_API_in_chrome_code">Extensions/Using_the_DOM_File_API_in_chrome_code</a></li>
  <li><a href="/en/XUL/prefwindow" title="https://developer.mozilla.org/en/XUL/prefwindow">XUL/prefwindow</a></li>
  <li><a href="/en/XUL/Method/loadOneTab" title="https://developer.mozilla.org/en/XUL/Method/loadOneTab">XUL/Method/loadOneTab</a></li>
  <li><a href="/en/XUL/Property/disabled" title="https://developer.mozilla.org/en/XUL/Property/disabled">XUL/Property/disabled</a></li>
  <li><a href="/en/XUL/Attribute/id" title="https://developer.mozilla.org/en/XUL/Attribute/id">XUL/Attribute/id</a></li>
  <li><a href="/en/XUL/Attribute/disabled" title="https://developer.mozilla.org/en/XUL/Attribute/disabled">XUL/Attribute/disabled</a></li>
  <li><a href="/en/XUL/Attribute/oncommand" title="en/XUL/Attribute/oncommand">XUL/Attribute/oncommand</a></li>
  <li><a href="/en/XUL/Attribute/icon" title="https://developer.mozilla.org/en/XUL/Attribute/icon">XUL/Attribute/icon</a></li>
  <li><a href="/En/DOM/DOMUserData" title="https://developer.mozilla.org/En/DOM/DOMUserData">DOM/DOMUserData</a></li>
  <li><a href="/En/DOM/Node.setUserData" title="https://developer.mozilla.org/En/DOM/Node.setUserData">DOM/Node.setUserData</a></li>
</ul>
<h3 id="Bug_reports_and_requests_for_enhancement">Bug reports and requests for enhancement</h3>
<p>Here are some of the Mozilla bugs/requests for enhancement I've filled, that I'm following or for which I have provided patches:</p>
<ul>
  <li>{{ bug(671290) }} : <span id="summary_alias_container"><span id="short_desc_nonedit_display">Implement assertion methods to support arrays (and other objects)</span></span></li>
  <li>{{ Bug(568978) }}: Need assertEquals support for arrays in JUM module</li>
  <li>{{ Bug(650777) }}:&nbsp;Add support to turn on/off the add-ons toolbar</li>
  <li>{{ Bug(570493) }}: <span id="summary_alias_container"><span id="short_desc_nonedit_display">fidesfit-client tests initial landing</span></span></li>
  <li>{{ Bug(599292) }}: <span id="summary_alias_container"><span id="short_desc_nonedit_display">Make single pref and commandline flag to enable developer stuff, to easily set preferences like <code>browser.dom.window.dump.enabled</code></span></span></li>
  <li>{{ Bug(660069) }}: Provide an "id" for the sidebar close button XUL element</li>
  <li>{{ Bug(560181) }}: <span id="summary_alias_container"> <span id="short_desc_nonedit_display">Make it possible to copy paste the notificationbox content</span></span></li>
  <li>{{ Bug(439323) }}: <span id="summary_alias_container"><span id="short_desc_nonedit_display">sizeToContent() not always working</span></span></li>
  <li>{{ Bug(320831) }}: <span id="summary_alias_container"><span id="short_desc_nonedit_display">Expose visit ID in result nodes</span></span></li>
  <li>{{ Bug(496653) }}:&nbsp;<span id="summary_alias_container"> <span id="short_desc_nonedit_display">Command line option --class &lt;WM_CLASS&gt; does not work</span></span></li>
  <li>{{ Bug(596211) }}: <span id="summary_alias_container"> <span id="short_desc_nonedit_display">[Linux] Wrong initial position for panel[noautohide="true"]</span></span></li>
</ul>
<h2 id="Unit_and_functional_tests">Unit and functional tests</h2>
<p>Building applications without tests is a pain. Hopefully there are now usable tools to achieve that for Mozilla addons/extensions, such as Mozmill and UxU. Mozmill is not that easy to use at the beginning (the difficult part is to get how to retrieve the GUI elements references and there is also the recorder that produces a code-that-would-never-run-but-to-treat-as-an-example-to-get-elements-references) but once used to it, it's quite powerful.</p>
<h3 id="What_I_miss_in_Mozmill">What I miss in Mozmill</h3>
<p><em>All the text below may be totally out of date since Mozmill has had much improvements since the time of this writing.</em></p>
<p>Mozmill would be easier to use with those little suggestions that I gather while I'm using it.</p>
<h4 id="Textbox_blanking_method">Textbox blanking method</h4>
<p>A new method in the <a href="../../../../en/Mozmill/Mozmill_Controller_Object" rel="internal">Mozmill Controller Object</a> to blank a textbox, without having to use the <code>controller <a href="/en/Mozmill/Mozmill_Controller_Object#keypress.28.29" title="https://developer.mozilla.org/en/Mozmill/Mozmill_Controller_Object#keypress.28.29">keypress</a></code> method with <code>'VK_BACK_SPACE'</code> for each letter would be much welcome.</p>
<p>The <a href="/en/Mozmill/Mozmill_Controller_Object#keypress.28.29" title="https://developer.mozilla.org/en/Mozmill/Mozmill_Controller_Object#keypress.28.29"><code>keypress</code></a> method is effective only on the input of the textfield element, which is impossible to get through the element id, one has to resort to use a mochi path. That's why this new blanking method should be given the textfield element, just like the <a href="/en/Mozmill/Mozmill_Controller_Object#type.28.29" title="https://developer.mozilla.org/en/Mozmill/Mozmill_Controller_Object#type.28.29"><code>type</code></a> method.</p>
<p>See <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=568961" title="https://bugzilla.mozilla.org/show_bug.cgi?id=568961">Bug&nbsp;568961 - Need a function to clear a textbox</a></p>
<h4 id="Retrieving_values_from_filesystem_files">Retrieving values from filesystem files</h4>
<p>It would be great to have an helper method to set some passwords in the login manager before browser window loads :</p>
<ul>
  <li>{{ bug(671256) }} : [RFE] Set some passwords in the login manager before browser window loads</li>
  <li>{{ bug(568943) }} : Add possibility to load account information from local files for restricted tests</li>
</ul>
Revert to this revision