Sha256: 8582e972e9eb69193f203100e746f92d660d067f20c0d1d460367f79726eb2ab

Contents?: true

Size: 751 Bytes

Versions: 16

Compression:

Stored size: 751 Bytes

Contents

# def set_window_size(width, height)
#     if Capybara.current_driver == :selenium
#         Capybara.current_session.driver.browser.manage.window.resize_to(width, height)
#     elsif Capybara.current_driver == :poltergeist
#         Capybara.current_session.driver.resize(width, height)
#     end
# end
#
# begin
#     window_sizes = {
#         :'320' => { :width => 320, :height => 480 },
#         :'600' => { :width => 600, :height => 769 },
#         :'770' => { :width => 770, :height => 1025 },
#         :'1026' => { :width => 1026, :height => 1200 },
#     }
#     window_sizes.default = { :width => 994, :height=> 689 }
#     size = window_sizes[(ENV['DEVICE'] || 'default').to_sym]
#     set_window_size(size[:width], size[:height])
# end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
bddfire-1.9.7 scaffold/features/support/responsive.rb
bddfire-1.9.6 scaffold/features/support/responsive.rb
bddfire-1.9.5 scaffold/features/support/responsive.rb
bddfire-1.9.4 scaffold/features/support/responsive.rb
bddfire-1.9.3 scaffold/features/support/responsive.rb
bddfire-1.9.2 scaffold/features/support/responsive.rb
bddfire-1.9.1 scaffold/features/support/responsive.rb
bddfire-1.9.0 scaffold/features/support/responsive.rb
bddfire-1.8.9 scaffold/features/support/responsive.rb
bddfire-1.8.8 scaffold/features/support/responsive.rb
bddfire-1.8.7 scaffold/features/support/responsive.rb
bddfire-1.8.6 scaffold/features/support/responsive.rb
bddfire-1.8.5 scaffold/features/support/responsive.rb
bddfire-1.8.4 scaffold/features/support/responsive.rb
bddfire-1.8.3 scaffold/features/support/responsive.rb
bddfire-1.8.2 scaffold/features/support/responsive.rb