lib/calabash-cucumber/actions/playback_actions.rb in calabash-cucumber-0.10.0.pre1 vs lib/calabash-cucumber/actions/playback_actions.rb in calabash-cucumber-0.10.0.pre2
- old
+ new
@@ -1,40 +1,46 @@
require 'calabash-cucumber/playback_helpers'
require 'calabash-cucumber/connection_helpers'
require 'calabash-cucumber/query_helpers'
-
+# @!visibility private
class Calabash::Cucumber::PlaybackActions
include Calabash::Cucumber::PlaybackHelpers
include Calabash::Cucumber::ConnectionHelpers
include Calabash::Cucumber::QueryHelpers
-
+ # @!visibility private
def touch(options)
playback('touch', options)
end
+ # @!visibility private
def wait_tap(options)
touch(options)
end
+ # @!visibility private
def double_tap(options)
playback('double_tap', options)
end
+ # @!visibility private
def two_finger_tap(*args)
raise error_message('two_finger_tap')
end
+ # @!visibility private
def flick(*args)
raise error_message('flick')
end
+ # @!visibility private
def touch_hold(options)
playback('touch_hold', options)
end
+ # @!visibility private
def swipe(dir, options={})
current_orientation = options[:status_bar_orientation].to_sym
if current_orientation == :left
case dir
when :left then
@@ -79,27 +85,30 @@
playback("swipe_#{dir}", options)
end
+ # @!visibility private
def pan(from,to,options={})
interpolate 'pan', options.merge(:start => from, :end => to)
end
+ # @!visibility private
def pinch(in_out,options)
file = "pinch_in"
if in_out==:out
file = "pinch_out"
end
playback(file, options)
end
+ # @!visibility private
def send_app_to_background(secs)
raise 'Not implemented when running without instruments / UIA'
end
-
private
+ # @!visibility private
def error_message(gesture)
"Gesture: '#{gesture}' not supported unless running with instruments."
end
end
\ No newline at end of file