def tearDown(self):
     clear_script = """
         window.removeEventListener("deviceorientation", window.wrappedJSObject.deviceListener);
         window.removeEventListener("deviceorientation", window.wrappedJSObject.checkValues);
     """
     self.marionette.execute_script(clear_script)
     TestCase.tearDown(self)
示例#2
0
 def tearDown(self):
     clear_script = """
         window.removeEventListener("deviceorientation", window.wrappedJSObject.deviceListener);
         window.removeEventListener("deviceorientation", window.wrappedJSObject.checkValues);
     """
     self.marionette.execute_script(clear_script)
     TestCase.tearDown(self)
 def tearDown(self):
     self.marionette.execute_script("""
     window.removeEventListener('devicelight', window.wrappedJSObject.event_function);
     """)
     TestCase.tearDown(self)
 def __init__(self, *args, **kwargs):
     TestCase.__init__(self, *args, **kwargs)
     TelephonyTestCommon.__init__(self)
 def __init__(self, *args, **kwargs):
     TestCase.__init__(self, *args, **kwargs)
     TelephonyTestCommon.__init__(self)
 def tearDown(self):
     self.clear_event_listener()
     TestCase.tearDown(self)
 def tearDown(self):
     self.clear_event_listener()
     TestCase.tearDown(self)