예제 #1
0
 def tearDown(self):
     clear_script = """
         window.removeEventListener("deviceorientation", window.wrappedJSObject.deviceListener);
         window.removeEventListener("deviceorientation", window.wrappedJSObject.checkValues);
     """
     self.marionette.execute_script(clear_script)
     MinimalTestCase.tearDown(self)
 def tearDown(self):
     clear_script = """
         window.removeEventListener("deviceorientation", window.wrappedJSObject.deviceListener);
         window.removeEventListener("deviceorientation", window.wrappedJSObject.checkValues);
     """
     self.marionette.execute_script(clear_script)
     MinimalTestCase.tearDown(self)
예제 #3
0
 def tearDown(self):
     self.marionette.execute_script(
         """
     window.navigator.battery.onchargingchange = null;
     window.navigator.battery.onchargingtimechange = null;
     """
     )
     MinimalTestCase.tearDown(self)
 def tearDown(self):
     MinimalTestCase.tearDown(self)
 def tearDown(self):
     self.marionette.execute_script("""
         SpecialPowers.removePermission("sms", document);
         SpecialPowers.setBoolPref("dom.sms.enabled", false);
     """)
     MinimalTestCase.tearDown(self)
 def tearDown(self):
     MinimalTestCase.tearDown(self)
예제 #7
0
 def tearDown(self):
     self.marionette.execute_script("""
     window.navigator.battery.onchargingchange = null;
     window.navigator.battery.onchargingtimechange = null;
     """)
     MinimalTestCase.tearDown(self)
예제 #8
0
 def tearDown(self):
     self.marionette.execute_script("""
     window.removeEventListener('devicelight', window.wrappedJSObject.prox_function);
     """)
     MinimalTestCase.tearDown(self)