Bug 1003331 - Set screen brightness to 100% and turn off auto-adjustments. r=wlachance

This commit is contained in:
Dave Hunt 2014-04-29 19:57:44 +01:00
Родитель 1d7054e0d4
Коммит 2e6ce7b526
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -417,6 +417,7 @@ class EidetickerB2GMixin(EidetickerMixin):
self.b2gpopulate = B2GPopulate(self.marionette)
self.gaiaApps = GaiaApps(self.marionette)
self.gaiaData = GaiaData(self.marionette)
self.gaiaDevice = GaiaDevice(self.marionette)
def connectWIFI(self, wifiSettings):
@ -424,8 +425,7 @@ class EidetickerB2GMixin(EidetickerMixin):
Tries to connect to the wifi network
"""
self._logger.info("Setting up wifi...")
data = GaiaData(self.marionette)
data.connect_to_wifi(wifiSettings)
self.gaiaData.connect_to_wifi(wifiSettings)
self._logger.info("WIFI ready!")
def cleanup(self):
@ -470,6 +470,10 @@ marionetteScriptFinished();
self._logger.info("Unlocking screen...")
self.gaiaDevice.unlock()
# turn off automatic brightness adjustments and set to 100%
self.gaiaData.set_setting('screen.automatic-brightness', '')
self.gaiaData.set_setting('screen.brightness', 1)
# kill running apps so they don't interfere with the test
self._logger.info("Killing all running apps...")
self.gaiaApps.kill_all()