Bug 632895 - Reftests on device cannot require 800x1000 window size. r=ctalbert, a=NPOTB

This commit is contained in:
Joel Maher 2011-02-23 14:38:59 -05:00
parent cadb3b3032
commit da1d32d704

View File

@ -346,6 +346,13 @@ def main():
print "ERROR: Invalid options specified, use --help for a list of valid options"
sys.exit(1)
parts = dm.getInfo('screen')['screen'][0].split()
width = int(parts[0].split(':')[1])
height = int(parts[1].split(':')[1])
if (width < 1050 or height < 1050):
print "ERROR: Invalid screen resolution %sx%s, please adjust to 1366x1050 or higher" % (width, height)
sys.exit(1)
automation.setAppName(options.app)
automation.setRemoteProfile(options.remoteProfile)
automation.setRemoteLog(options.remoteLogFile)