コード例 #1
0
 def simulator_device_type(self):
     device_type_identifier = self.get_option('device_type')
     if device_type_identifier:
         device_type = DeviceType.from_identifier(device_type_identifier)
     else:
         if self.architecture() == 'x86_64':
             device_type = DeviceType.from_name('iPhone 5s')
         else:
             device_type = DeviceType.from_name('iPhone 5')
     return device_type
コード例 #2
0
ファイル: ios.py プロジェクト: EdgarHz/webkit
 def simulator_device_type(self):
     device_type_identifier = self.get_option("device_type")
     if device_type_identifier:
         device_type = DeviceType.from_identifier(device_type_identifier)
     else:
         if self.architecture() == "x86_64":
             device_type = DeviceType.from_name("iPhone 5s")
         else:
             device_type = DeviceType.from_name("iPhone 5")
     return device_type
コード例 #3
0
ファイル: ios_simulator.py プロジェクト: SmileSoftware/webkit
 def simulator_device_type(self):
     device_type_identifier = self.get_option('device_type')
     if device_type_identifier:
         _log.debug('simulator_device_type for device identifier %s', device_type_identifier)
         device_type = DeviceType.from_identifier(device_type_identifier)
     else:
         _log.debug('simulator_device_type for device %s', self._device_class)
         device_name = self.DEVICE_CLASS_MAP[self.architecture()][self._device_class]
         if not device_name:
             raise Exception('Failed to find device for architecture {} and device class {}'.format(self.architecture()), self._device_class)
         device_type = DeviceType.from_name(device_name)
     return device_type
コード例 #4
0
ファイル: ios.py プロジェクト: ollie314/webkit
 def simulator_device_type(self):
     device_type_identifier = self.get_option('device_type')
     if device_type_identifier:
         _log.debug('simulator_device_type for device identifier %s', device_type_identifier)
         device_type = DeviceType.from_identifier(device_type_identifier)
     else:
         _log.debug('simulator_device_type for device %s', self._device_class)
         device_name = self.DEVICE_CLASS_MAP[self.architecture()][self._device_class]
         if not device_name:
             raise Exception('Failed to find device for architecture {} and device class {}'.format(self.architecture()), self._device_class)
         device_type = DeviceType.from_name(device_name)
     return device_type