зеркало из https://github.com/mozilla/eideticker.git
Galaxy Nexus should use landscape orientation in no-capture adb mode
This ensures we can compare results that we're getting using the decklink cards, where the device is always in landscape.
This commit is contained in:
Родитель
57ea286f74
Коммит
9ed423ecfa
|
@ -26,6 +26,7 @@ DEVICE_PROPERTIES = {
|
|||
"galaxy nexus": {
|
||||
"hdmiResolution": "720p",
|
||||
"inputDevice": "/dev/input/event1",
|
||||
"defaultOrientation": "landscape",
|
||||
"dimensions": (1180, 720),
|
||||
"swipePadding": (240, 40, 100, 40)},
|
||||
"panda": {
|
||||
|
@ -409,8 +410,9 @@ class DroidADB(EidetickerMixin, EidetickerDroidMixin, mozdevice.DroidADB):
|
|||
|
||||
@property
|
||||
def rotation(self):
|
||||
return 0 # No way to find real rotation, assume 0
|
||||
|
||||
if self.deviceProperties.get('defaultOrientation') == 'landscape':
|
||||
return 90
|
||||
return 0
|
||||
|
||||
class DroidSUT(EidetickerMixin, EidetickerDroidMixin, mozdevice.DroidSUT):
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче