From 3a831373c9dfb2e82b5ce414e4ecd8ad9fb57a50 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Mon, 6 Aug 2012 22:14:27 +0200 Subject: [PATCH] Bug 778420 - Add Services getter to SpecialPowers. v1 --HG-- extra : rebase_source : 4d7c95cbcc68afd18a43eaae33012d21e6d4f02a --- testing/mochitest/tests/SimpleTest/specialpowersAPI.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testing/mochitest/tests/SimpleTest/specialpowersAPI.js b/testing/mochitest/tests/SimpleTest/specialpowersAPI.js index c2f180cf951..97652618c4b 100644 --- a/testing/mochitest/tests/SimpleTest/specialpowersAPI.js +++ b/testing/mochitest/tests/SimpleTest/specialpowersAPI.js @@ -9,6 +9,7 @@ var Ci = Components.interfaces; var Cc = Components.classes; Components.utils.import("resource://mochikit/MockFilePicker.jsm"); +Components.utils.import("resource://gre/modules/Services.jsm"); function SpecialPowersAPI() { this._consoleListeners = []; @@ -409,6 +410,10 @@ SpecialPowersAPI.prototype = { return MockFilePicker }, + get Services() { + return wrapPrivileged(Services); + }, + getDOMWindowUtils: function(aWindow) { if (aWindow == this.window.get() && this.DOMWindowUtils != null) return this.DOMWindowUtils;