Bug 1371658 - Remove CommonTestCase.setup_SpecialPowers_observer; r=whimboo

SpecialPowers has been removed from Marionette, and this method does not
appear to be used anywhere in mozilla-central.

MozReview-Commit-ID: 3hkPVNJw0iA

--HG--
extra : rebase_source : a5cb71ece7d40dbbcb9ae5a532b74d69cd7b209c
This commit is contained in:
Andreas Tolfsen 2017-06-09 15:08:07 +01:00
Родитель f52073294a
Коммит e828570043
1 изменённых файлов: 0 добавлений и 17 удалений

Просмотреть файл

@ -269,23 +269,6 @@ class CommonTestCase(unittest.TestCase):
pass pass
self.marionette = None self.marionette = None
def setup_SpecialPowers_observer(self):
self.marionette.set_context("chrome")
self.marionette.execute_script("""
let SECURITY_PREF = "security.turn_off_all_security_so_that_viruses_can_take_over_this_computer";
Components.utils.import("resource://gre/modules/Preferences.jsm");
Preferences.set(SECURITY_PREF, true);
if (!testUtils.hasOwnProperty("specialPowersObserver")) {
let loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Components.interfaces.mozIJSSubScriptLoader);
loader.loadSubScript("chrome://specialpowers/content/SpecialPowersObserver.jsm",
testUtils);
testUtils.specialPowersObserver = new testUtils.SpecialPowersObserver();
testUtils.specialPowersObserver.init();
}
""")
class MarionetteTestCase(CommonTestCase): class MarionetteTestCase(CommonTestCase):