зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1019043 - Return None when getting the device manager in B2GTestCaseMixin if target is B2G desktop. r=mdas
This commit is contained in:
Родитель
d057bdce3a
Коммит
ebef083295
|
@ -44,7 +44,8 @@ class B2GTestCaseMixin(object):
|
|||
self._device_manager = None
|
||||
|
||||
def get_device_manager(self, *args, **kwargs):
|
||||
if not self._device_manager:
|
||||
capabilities = self.marionette.session_capabilities
|
||||
if not self._device_manager and capabilities['device'] != 'desktop':
|
||||
self._device_manager = get_dm(self.marionette, **kwargs)
|
||||
return self._device_manager
|
||||
|
||||
|
@ -52,6 +53,7 @@ class B2GTestCaseMixin(object):
|
|||
def device_manager(self):
|
||||
return self.get_device_manager()
|
||||
|
||||
|
||||
class B2GTestResultMixin(object):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
Загрузка…
Ссылка в новой задаче