1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/dirprovider/tests/unit/head_dirprovider.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +const Cc = Components.classes; 1.9 +const Ci = Components.interfaces; 1.10 + 1.11 +var gProfD = do_get_profile(); 1.12 +var gDirSvc = Cc["@mozilla.org/file/directory_service;1"]. 1.13 + getService(Ci.nsIProperties); 1.14 +var gPrefSvc = Cc["@mozilla.org/preferences-service;1"]. 1.15 + getService(Ci.nsIPrefBranch); 1.16 + 1.17 +function writeTestFile(aParent, aName) { 1.18 + let file = aParent.clone(); 1.19 + file.append(aName); 1.20 + file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0644); 1.21 + return file; 1.22 +} 1.23 +