Created
November 2, 2015 14:15
-
-
Save bootstraponline/be4114b54395ae1c4e3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin | |
Nov 2 2015 | |
https://docs.saucelabs.com/reference/test-configuration/#specifying-the-screen-resolution | |
Valid values for Windows XP and Windows 7 are: | |
800x600 1024x768 1052x864 1152x864 1280x800 1280x960 1280x1024 1400x1050 1440x900 1600x1200 1680x1050 1920x1200 2560x1600 | |
Valid values for OS X 10.8 are: | |
1024x768 1152x864 1152x900 1280x800 1280x1024 1376x1032 1400x1050 1600x1200 1680x1050 1920x1200 | |
Valid values for OS X 10.9 and 10.10 are: | |
800x600 1024x768 1152x720 1152x864 1152x900 1280x720 1280x768 1280x800 1280x960 1280x1024 1366x768 1376x1032 1400x1050 1440x900 1600x900 1600x1200 1680x1050 1920x1200 1920x1440 2048x1152 2048x1536 2360x1770 | |
Valid values for Windows 8 and 8.1 are: | |
800x600 1024x768 1280x1024 | |
=end | |
windows_xp = windows_7 = %w(800x600 1024x768 1052x864 1152x864 1280x800 1280x960 1280x1024 1400x1050 1440x900 1600x1200 1680x1050 1920x1200 2560x1600) | |
os_x_10_8 = %w(1024x768 1152x864 1152x900 1280x800 1280x1024 1376x1032 1400x1050 1600x1200 1680x1050 1920x1200) | |
os_x_10_9 = os_x_10_10 = %w(800x600 1024x768 1152x720 1152x864 1152x900 1280x720 1280x768 1280x800 1280x960 1280x1024 1366x768 1376x1032 1400x1050 1440x900 1600x900 1600x1200 1680x1050 1920x1200 1920x1440 2048x1152 2048x1536 2360x1770) | |
windows_8 = windows_8_1 = %w(800x600 1024x768 1280x1024) | |
intersection = windows_xp & windows_7 & os_x_10_8 & os_x_10_9 & os_x_10_10 & windows_8 & windows_8_1 | |
puts intersection | |
# Only two resolutions are supported by all operating systems | |
# according to the Sauce Labs Documentation. | |
# | |
# 1024x768 1280x1024 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment