class Lebowski::Foundation::WindowApplication

Used to represent a SproutCore application that is contained within a web brower window

Public Class Methods

new(params) click to toggle source
Calls superclass method Lebowski::Foundation::Application::new
# File lib/lebowski/foundation/application.rb, line 115
def initialize(params)
  super(params)
end

Public Instance Methods

maximize() click to toggle source

Maximizes the browser window

# File lib/lebowski/foundation/application.rb, line 140
def maximize() 
  exec_driver_in_context do |driver|
    driver.sc_window_maximize
  end
end
move_to(x, y) click to toggle source

Moves the browser window

# File lib/lebowski/foundation/application.rb, line 122
def move_to(x, y)
  exec_driver_in_context do |driver|
    @driver.sc_window_move_to(x,y)
  end
end
resize_to(width, height) click to toggle source

Resizes the browser window

# File lib/lebowski/foundation/application.rb, line 131
def resize_to(width, height)
  exec_driver_in_context do |driver|
    driver.sc_window_resize_to(width, height)
  end
end