Go to the source code of this file.
Functions | |
Components utils | import ("resource://app/jsmodules/sbProperties.jsm") |
Generic support functions for watchfolder tests. More... | |
function | setWatchFolder (file) |
function | reportJobProgress (job, jobName) |
function | getCopyOfFolder (folder, tempName) |
function | getCopyOfFile (file, tempName, optionalLocation) |
function | getTempFolder () |
function | removeTempFolder () |
Variables | |
var | Application |
var | gTempFolder = null |
function getCopyOfFile | ( | file, | |
tempName, | |||
optionalLocation | |||
) |
Copy the given folder to tempName, returning an nsIFile for the new location
Definition at line 90 of file head_watchfolders.js.
function getCopyOfFolder | ( | folder, | |
tempName | |||
) |
Copy the given folder to tempName, returning an nsIFile for the new location
Definition at line 75 of file head_watchfolders.js.
function getTempFolder | ( | ) |
Components utils import | ( | "resource://app/jsmodules/sbProperties.jsm" | ) |
Generic support functions for watchfolder tests.
function removeTempFolder | ( | ) |
Get rid of the temp folder created by getTempFolder. Called in tail_metadatamanager.js
Definition at line 122 of file head_watchfolders.js.
function reportJobProgress | ( | job, | |
jobName | |||
) |
Dump information for an sbIJobProgress interface. Used for debugging.
Definition at line 59 of file head_watchfolders.js.
function setWatchFolder | ( | file | ) |
Start watching the given nsIFile path, or pass null to disable
Definition at line 44 of file head_watchfolders.js.
var Application |
Definition at line 36 of file head_watchfolders.js.
var gTempFolder = null |
Get a temporary folder for use in tests. Will be removed in tail_watchfolders.js
Definition at line 104 of file head_watchfolders.js.