XUL Explorer:UseCases/Extension Testing: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
Line 47: Line 47:
<tr>
<tr>
<td>Auto-locate Firefox profiles and Firefox executable</td>
<td>Auto-locate Firefox profiles and Firefox executable</td>
<td>Low</td>
<td style="background-color:yellow;text-align:center;">Low</td>
<td>
<td>
* This is probably a more difficult and time consuming feature to do, since it depends on the platform and where to check.
* This is probably a more difficult and time consuming feature to do, since it depends on the platform and where to check.
Line 54: Line 54:
<tr>
<tr>
<td>Read values from prefs.js</td>
<td>Read values from prefs.js</td>
<td>Medium</td>
<td style="background-color:green;text-align:center;">Done / Medium</td>
<td>
<td>
* Done
* Save information so app doesn't have to auto-locate executable/ask user each time</td>
* Save information so app doesn't have to auto-locate executable/ask user each time</td>
</tr>
</tr>
<tr>
<tr>
<td>Pick files (firefox executable)/directories (profile directory)</td>
<td>Pick files (firefox executable)/directories (profile directory)</td>
<td>High</td>
<td style="background-color:green;text-align:center;">Done / High</td>
<td>Done</td>
<td>Done</td>
</tr>
</tr>
<tr>
<tr>
<td>Locate root directory of extension</td>
<td>Locate root directory of extension</td>
<td>High</td>
<td style="background-color:green;text-align:center;">Done / High</td>
<td>Done
<td>Needed to write in text file. This is tricky because it should point to the same directory as application.ini, but where that file is isn't always relative to the current file. So we have a few options
 
Needed to write in text file. This is tricky because it should point to the same directory as application.ini, but where that file is isn't always relative to the current file. So we have a few options
* Go through each tab for a file named application.ini, and take it's document.title
* Go through each tab for a file named application.ini, and take it's document.title
* Have the user locate by hand (but this shouldn't be saved to prefs.js
* Have the user locate by hand (but this shouldn't be saved to prefs.js
Line 77: Line 74:
<tr>
<tr>
<td>locate extension id</td>
<td>locate extension id</td>
<td>High</td>
<td style="background-color:red;text-align:center;">High</td>
<td>Read application.ini/install.rdf, but how?</td>
<td>Read application.ini/install.rdf, but how? I have managed to finish application.ini, since it only relies on [http://mxr.mozilla.org/seamonkey/source/xulrunner/setup/nsXULAppInstall.js#61 undocumented] [http://mxr.mozilla.org/seamonkey/source/xpcom/ds/nsIINIParser.idl#43 interfaces]. I have no clue right now on RDF, but Mark Finkle pointed to possible [http://www.xulplanet.com/downloads/rdfds/ help].</td>
</tr>
</tr>
<tr>
<tr>
<td>create text file/directory</td>
<td>create text file/directory</td>
<td>Medium</td>
<td style="background-color:orange;text-align:center;">Medium</td>
<td>Create a directory/text file. I don't think this will be difficult at all
<td>Create a directory/text file. I don't think this will be difficult at all
* resource : [http://developer.mozilla.org/en/docs/Code_snippets:File_I/O File I/O]</td>
* resource : [http://developer.mozilla.org/en/docs/Code_snippets:File_I/O File I/O]</td>
Line 88: Line 85:
<tr>
<tr>
<td>Launch Firefox</td>
<td>Launch Firefox</td>
<td>Medium</td>
<td style="background-color:orange;text-align:center;">Medium</td>
<td>Not sure how to do this yet
<td>Not sure how to do this yet
* resource : [http://developer.mozilla.org/en/docs/Code_snippets:Running_applications Running applications]</td>
* resource : [http://developer.mozilla.org/en/docs/Code_snippets:Running_applications Running applications]</td>
Line 94: Line 91:
<tr>
<tr>
<td>Wait for Firefox to close and delete file/directory</td>
<td>Wait for Firefox to close and delete file/directory</td>
<td>High</td>
<td style="background-color:red;text-align:center;">High</td>
<td>Important, but not sure how to do this either. If I figure out how to launch Firefox, there will probably be an easy way to catch when it is closed.</td>
<td>Important, but not sure how to do this either. If I figure out how to launch Firefox, there will probably be an easy way to catch when it is closed.</td>
</tr>
</tr>
78

edits

Navigation menu