head_watchfolders.js File Reference

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 Documentation

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

function getTempFolder ( )

Definition at line 105 of file head_watchfolders.js.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

function reportJobProgress (   job,
  jobName 
)

Dump information for an sbIJobProgress interface. Used for debugging.

Definition at line 59 of file head_watchfolders.js.

Here is the call graph for this function:

function setWatchFolder (   file)

Start watching the given nsIFile path, or pass null to disable

Definition at line 44 of file head_watchfolders.js.

Here is the caller graph for this function:

Variable Documentation

var Application
Initial value:
= Cc["@mozilla.org/fuel/application;1"]
.getService(Ci.fuelIApplication)
const Cc
const Ci

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.