Bug 1019043 - Return None when getting the device manager in B2GTestCaseMixin if target is B2G desktop. r=mdas

This commit is contained in:
Dave Hunt 2014-06-02 09:20:00 -04:00
Родитель d057bdce3a
Коммит ebef083295
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -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):