1
Index: firefox-trunk-19.0~a1~hg20121114r113217/toolkit/components/contentprefs/tests/unit/head_contentPrefs.js
2
===================================================================
3
--- firefox-trunk-19.0~a1~hg20121114r113217.orig/toolkit/components/contentprefs/tests/unit/head_contentPrefs.js 2012-11-14 21:08:30.000000000 +0000
4
+++ firefox-trunk-19.0~a1~hg20121114r113217/toolkit/components/contentprefs/tests/unit/head_contentPrefs.js 2012-11-19 21:33:15.781652408 +0000
8
//**************************************************************************//
11
- interfaces: [Ci.nsIDirectoryServiceProvider, Ci.nsISupports],
13
- QueryInterface: function ContentPrefTest_QueryInterface(iid) {
14
- if (!this.interfaces.some( function(v) { return iid.equals(v) } ))
15
- throw Cr.NS_ERROR_NO_INTERFACE;
20
- //**************************************************************************//
21
- // nsIDirectoryServiceProvider
23
- getFile: function ContentPrefTest_getFile(property, persistent) {
24
- persistent.value = true;
26
- if (property == "ProfD")
27
- return this._dirSvc.get("CurProcD", Ci.nsIFile);
29
- // This causes extraneous errors to show up in the log when the directory
30
- // service asks us first for CurProcD and MozBinD. I wish there was a way
31
- // to suppress those errors.
32
- throw Cr.NS_ERROR_FAILURE;
36
- //**************************************************************************//
39
getURI: function ContentPrefTest_getURI(spec) {
41
* of that directory if necessary.
43
getProfileDir: function ContentPrefTest_getProfileDir() {
47
- profileDir = this._dirSvc.get("ProfD", Ci.nsIFile);
52
- this._dirSvc.QueryInterface(Ci.nsIDirectoryService).registerProvider(this);
53
- profileDir = this._dirSvc.get("ProfD", Ci.nsIFile);
54
- this._dirSvc.unregisterProvider(this);
58
+ return this._dirSvc.get("ProfD", Ci.nsIFile);
68
let gInPrivateBrowsing = false;
69
function enterPBMode() {
70
gInPrivateBrowsing = true;
72
Services.obs.notifyObservers(null, "last-pb-context-exited", null);
75
-ContentPrefTest.deleteDatabase();
77
function inChildProcess() {
78
var appInfo = Cc["@mozilla.org/xre/app-info;1"];
79
if (!appInfo || appInfo.getService(Ci.nsIXULRuntime).processType ==
80
Index: firefox-trunk-19.0~a1~hg20121114r113217/toolkit/components/contentprefs/tests/unit/tail_contentPrefs.js
81
===================================================================
82
--- firefox-trunk-19.0~a1~hg20121114r113217.orig/toolkit/components/contentprefs/tests/unit/tail_contentPrefs.js 2012-11-14 21:08:30.000000000 +0000
83
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
85
-/* This Source Code Form is subject to the terms of the Mozilla Public
86
- * License, v. 2.0. If a copy of the MPL was not distributed with this
87
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
89
-ContentPrefTest.deleteDatabase();
90
-ContentPrefTest.__dirSvc = null;
91
Index: firefox-trunk-19.0~a1~hg20121114r113217/toolkit/components/contentprefs/tests/unit/xpcshell.ini
92
===================================================================
93
--- firefox-trunk-19.0~a1~hg20121114r113217.orig/toolkit/components/contentprefs/tests/unit/xpcshell.ini 2012-11-14 21:08:30.000000000 +0000
94
+++ firefox-trunk-19.0~a1~hg20121114r113217/toolkit/components/contentprefs/tests/unit/xpcshell.ini 2012-11-19 21:33:15.785652408 +0000
97
head = head_contentPrefs.js
98
-tail = tail_contentPrefs.js
103
Index: firefox-trunk-19.0~a1~hg20121114r113217/toolkit/components/contentprefs/tests/unit_ipc/tail_contentPrefs.js
104
===================================================================
105
--- firefox-trunk-19.0~a1~hg20121114r113217.orig/toolkit/components/contentprefs/tests/unit_ipc/tail_contentPrefs.js 2012-11-14 21:08:30.000000000 +0000
106
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
109
-load("../unit/tail_contentPrefs.js");
111
Index: firefox-trunk-19.0~a1~hg20121114r113217/toolkit/components/contentprefs/tests/unit_ipc/xpcshell.ini
112
===================================================================
113
--- firefox-trunk-19.0~a1~hg20121114r113217.orig/toolkit/components/contentprefs/tests/unit_ipc/xpcshell.ini 2012-11-14 21:08:30.000000000 +0000
114
+++ firefox-trunk-19.0~a1~hg20121114r113217/toolkit/components/contentprefs/tests/unit_ipc/xpcshell.ini 2012-11-19 23:52:10.541504311 +0000
117
head = head_contentPrefs.js
118
-tail = tail_contentPrefs.js
121
[test_contentPrefs_parentipc.js]