aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro-integration/recipes-overlayed/firefox/firefox/fixes/Fix-some-tests-using-CurProcD-where-GreD-should-be-u.patch
blob: c1002a9a69f3e6ed23ddb203406edd27078aad3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From: Mike Hommey <mh@glandium.org>
Date: Thu, 14 Jul 2011 17:18:56 +0200
Subject: Fix some tests using CurProcD where GreD should be used

---
 dom/plugins/test/unit/head_plugins.js                    |    2 +-
 netwerk/test/unit/test_socks.js                          |    2 +-
 toolkit/mozapps/extensions/test/xpcshell/test_plugins.js |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dom/plugins/test/unit/head_plugins.js b/dom/plugins/test/unit/head_plugins.js
index ddb78f5..ca32106 100644
--- a/dom/plugins/test/unit/head_plugins.js
+++ b/dom/plugins/test/unit/head_plugins.js
@@ -38,7 +38,7 @@
 
 // Finds the test plugin library
 function get_test_plugin() {
-  var plugins = gDirSvc.get("CurProcD", Ci.nsILocalFile);
+  var plugins = gDirSvc.get("GreD", Ci.nsILocalFile);
   plugins.append("plugins");
   do_check_true(plugins.exists());
   var plugin = plugins.clone();
diff --git a/netwerk/test/unit/test_socks.js b/netwerk/test/unit/test_socks.js
index bbaeffa..f692d97 100644
--- a/netwerk/test/unit/test_socks.js
+++ b/netwerk/test/unit/test_socks.js
@@ -36,7 +36,7 @@ function runScriptSubprocess(script, args)
 {
   // logic copied from ted's crashreporter unit test
   var ds = new DirectoryService();
-  var bin = ds.get("CurProcD", Ci.nsILocalFile);
+  var bin = ds.get("GreD", Ci.nsILocalFile);
 
   bin.append("xpcshell");
   if (!bin.exists()) {
diff --git a/toolkit/mozapps/extensions/test/xpcshell/test_plugins.js b/toolkit/mozapps/extensions/test/xpcshell/test_plugins.js
index 71e9ac1..0bde3e2 100644
--- a/toolkit/mozapps/extensions/test/xpcshell/test_plugins.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_plugins.js
@@ -18,7 +18,7 @@ function run_test() {
 
 // Finds the test plugin library
 function get_test_plugin() {
-  var plugins = Services.dirsvc.get("CurProcD", AM_Ci.nsILocalFile);
+  var plugins = Services.dirsvc.get("GreD", AM_Ci.nsILocalFile);
   plugins.append("plugins");
   do_check_true(plugins.exists());