Skip to content

Commit

Permalink
rb: add closing comments to classes and modules
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Tolfsen <ato@mozilla.com>
  • Loading branch information
andreastt committed Apr 6, 2015
1 parent 6f3c0cf commit dcec4a5
Show file tree
Hide file tree
Showing 30 changed files with 121 additions and 122 deletions.
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/chrome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def self.path
@path ||= nil
end

end
end
end
end # Chrome
end # WebDriver
end # Selenium
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def location=(loc)
def set_location(lat, lon, alt)
self.location = Location.new(Float(lat), Float(lon), Float(alt))
end
end

end
end
end
end #HasLocation
end # DriverExtensions
end # WebDriver
end # Selenium
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@ def network_connection_type=(connection_type)

private

def type_to_values
{:airplane_mode => 1, :wifi => 2, :data => 4, :all => 6, :none => 0}
end

def values_to_type
type_to_values.invert
end

def valid_type?(type)
type_to_values.keys.include? type
end
end
end
end
end
def type_to_values
{:airplane_mode => 1, :wifi => 2, :data => 4, :all => 6, :none => 0}
end

def values_to_type
type_to_values.invert
end

def valid_type?(type)
type_to_values.keys.include? type
end

end # HasNetworkConnection
end # DriverExtensions
end # WebDriver
end # Selenium
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def remote_status
@bridge.status
end

end
end
end
end
end # HasRemoteStatus
end # DriverExtensions
end # WebDriver
end # Selenium
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def touch
def touch_screen
TouchScreen.new @bridge
end
end

end
end
end
end # HasTouchScreen
end # DriverExtensions
end # WebDriver
end # Selenium
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/common/html5/local_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def size
def keys
@bridge.getLocalStorageKeys.reverse
end
end

end
end
end
end # LocalStorage
end # HTML5
end # WebDriver
end # Selenium
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/common/html5/session_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def keys
def initialize(bridge)
@bridge = bridge
end
end

end
end
end
end # SessionStorage
end # HTML5
end # WebDriver
end # Selenium
10 changes: 5 additions & 5 deletions rb/lib/selenium/webdriver/common/html5/shared_web_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def fetch(key, &blk)
yield key
else
# should be KeyError, but it's 1.9-specific
raise IndexError, "missing key #{key.inspect}"
raise IndexError, "missing key #{key.inspect}"
end
end

Expand All @@ -35,8 +35,8 @@ def each(&blk)
yield k, self[k]
end
end
end

end
end
end
end # SharedWebStorage
end # HTML5
end # WebDriver
end # Selenium
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/common/json_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def json_dump(obj)
end
end

end
end
end
end # JsonHelper
end # WebDriver
end # Selenium
7 changes: 4 additions & 3 deletions rb/lib/selenium/webdriver/common/log_entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def to_s
def time
Time.at timestamp / 1000
end
end
end
end

end # LogEntry
end # WebDriver
end # Selenium
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/common/logs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ def available_types
@bridge.getAvailableLogTypes
end

end
end
end
end # Logs
end # WebDriver
end # Selenium
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/common/touch_action_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ def move(x, y = nil)
self
end

end
end
end
end # TouchActionBuilder
end # WebDriver
end # Selenium
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/common/touch_screen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ def assert_element(element)
end
end

end
end
end
end # TouchScreen
end # WebDriver
end # Selenium
7 changes: 3 additions & 4 deletions rb/lib/selenium/webdriver/common/window.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def maximize
@bridge.maximizeWindow
end


end
end
end
end # Window
end # WebDriver
end # Selenium
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/firefox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def self.path=(path)
Binary.path = path
end

end
end
end
end # Firefox
end # WebDriver
end # Selenium
7 changes: 4 additions & 3 deletions rb/lib/selenium/webdriver/ie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ def self.driver_path=(path)
def self.driver_path
@driver_path ||= nil
end
end
end
end

end # IE
end # WebDriver
end # Selenium

require 'selenium/webdriver/ie/server'
require 'selenium/webdriver/ie/bridge'
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/ie/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def server_args
args
end

end
end
end
end
end # Server
end # IE
end # WebDriver
end # Selenium
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/phantomjs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ def self.path
@path ||= Platform.find_binary("phantomjs")
end

end
end
end
end # PhantomJS
end # WebDriver
end # Selenium
8 changes: 3 additions & 5 deletions rb/lib/selenium/webdriver/remote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ module WebDriver
# @api private
module Remote

end
end
end


end # Remote
end # WebDriver
end # Selenium
4 changes: 2 additions & 2 deletions rb/lib/selenium/webdriver/remote/server_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def initialize(response)
super("status code #{response.code}")
end
end
end

end # ServerError
end # Error
end # WebDriver
end # Selenium
end # Selenium
6 changes: 3 additions & 3 deletions rb/lib/selenium/webdriver/safari.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def resource_path
end
end

end
end
end
end # Safari
end # WebDriver
end # Selenium

require 'selenium/webdriver/safari/browser'
require 'selenium/webdriver/safari/server'
Expand Down
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/safari/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def merge_capabilities(opts, safari_options)

caps
end
end

end
end
end
end # Bridge
end # Safari
end # WebDriver
end # Selenium
9 changes: 4 additions & 5 deletions rb/lib/selenium/webdriver/safari/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def stop
@process.stop if @process
end

end

end
end
end
end # Browser
end # Safari
end # WebDriver
end # Selenium
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/safari/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def restore_all
end
end

end
end
end
end
end # Extensions
end # Safari
end # WebDriver
end # Selenium
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/safari/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def verify_safari_extension(path)
pn
end

end
end
end
end
end # Options
end # Safari
end # WebDriver
end # Selenium
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/safari/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def encode_form_component(str)
str.gsub(":", '%3A').gsub('/', '%2F')
end
end
end

end
end
end
end # Server
end # Safari
end # WebDriver
end # Selenium
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/support/abstract_event_listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def before_quit(driver) end
def after_quit(driver) end
def before_close(driver) end
def after_close(driver) end
end

end
end
end
end # AbstractEventListener
end # Support
end # WebDriver
end # Selenium
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/support/block_event_listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def initialize(callback)
def method_missing(meth, *args, &blk)
@callback.call meth, *args
end
end

end
end
end
end # BlockEventListener
end # Support
end # WebDriver
end # Selenium
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/support/color.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def hex
"#%02x%02x%02x" % [red, green, blue]
end

end
end
end
end
end # Color
end # Support
end # WebDriver
end # Selenium
8 changes: 4 additions & 4 deletions rb/lib/selenium/webdriver/support/select.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ def self.escape(str)
%{"#{str}"}
end
end
end # Escaper

end # Escaper
end # Select
end
end
end
end # Support
end # WebDriver
end # Selenium

0 comments on commit dcec4a5

Please sign in to comment.