calabash-cucumber 0.12.0.pre1 → 0.12.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c783f0e2f43620a6e6d35da0d1dac392327bf27c
4
- data.tar.gz: 3b30f0c9be02032fcb2f154307355facabb6fd26
3
+ metadata.gz: d98aad9e62a5f680cca8f131bcf4ca1859de0b25
4
+ data.tar.gz: 65494d77c889024ae428d206c7d4c99d2a09ada2
5
5
  SHA512:
6
- metadata.gz: 6f9e99e6ab0912da13d308f6a7f83c152d2ef72e8df4d6ffcfec3046be6991999faf9deef7a75eb94185a924872478ca1ef25fad1ea7eb0ce62cde215ee47b64
7
- data.tar.gz: c9baebc395ddab5e389af42aa8d671dd48d16b63a883cd6733216744282f99ae982e869a096cd89f3fbf28e8d730b1eb5b9af45e0f3780dedfd3085df68b512c
6
+ metadata.gz: 1cea93576bd441d3433bb12bd8d9d1397743f98c677a038e27fe820e8935dba3b584a8e72889979d3f912002e64a05eaa877e9218d75573726a81d99a17cc2cf
7
+ data.tar.gz: 0faf238eaaf1874a90be17b581992fe2651f2fa1e9f41caa164ce818acde2f8745a18486fb20ee9ecf2592602404c23d91c581515d4b92081a844fedcabc45af
@@ -266,6 +266,14 @@ module Calabash
266
266
  #
267
267
  # @example
268
268
  # flick("MKMapView", {x:100,y:50})
269
+ # @note Due to a bug in the iOS Simulator (or UIAutomation on the simulator)
270
+ # swiping and other 'advanced' gestures are not supported in certain
271
+ # scroll views (e.g. UITableView or UIScrollView). It does work when running
272
+ # on physical devices, though, Here is a link to a relevant Stack Overflow post
273
+ # http://stackoverflow.com/questions/18792965/uiautomations-draginsidewithoptions-has-no-effect-on-ios7-simulator
274
+ # It is not a bug in Calabash itself but rather in UIAutomation and hence we can't just
275
+ # fix it. The work around is typically to use the scroll_to_* functions.
276
+ #
269
277
  # @param {String} uiquery query describing view to touch.
270
278
  # @param {Hash} delta coordinate describing the direction to flick
271
279
  # @param {Hash} options option for modifying the details of the touch.
@@ -3,7 +3,7 @@ module Calabash
3
3
 
4
4
  # @!visibility public
5
5
  # The Calabash iOS gem version.
6
- VERSION = '0.12.0.pre1'
6
+ VERSION = '0.12.0.pre2'
7
7
 
8
8
  # @!visibility public
9
9
  # The minimum required version of the calabash.framework or, for Xamarin
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0.pre1
4
+ version: 0.12.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-07 00:00:00.000000000 Z
11
+ date: 2014-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - ~>
172
172
  - !ruby/object:Gem::Version
173
- version: 1.2.0.pre1
173
+ version: 1.2.0.pre3
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - ~>
179
179
  - !ruby/object:Gem::Version
180
- version: 1.2.0.pre1
180
+ version: 1.2.0.pre3
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rake
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -363,7 +363,6 @@ files:
363
363
  - lib/calabash-cucumber/failure_helpers.rb
364
364
  - lib/calabash-cucumber/http_helpers.rb
365
365
  - lib/calabash-cucumber/ibase.rb
366
- - lib/calabash-cucumber/ios7_operations.rb
367
366
  - lib/calabash-cucumber/ipad_1x_2x.rb
368
367
  - lib/calabash-cucumber/keyboard_helpers.rb
369
368
  - lib/calabash-cucumber/keychain_helpers.rb
@@ -1,129 +0,0 @@
1
- require 'calabash-cucumber/launcher'
2
- require 'calabash-cucumber/uia'
3
- require 'calabash-cucumber/actions/instruments_actions'
4
- require 'calabash-cucumber/actions/playback_actions'
5
- require 'calabash-cucumber/environment_helpers'
6
-
7
- module Calabash
8
- module Cucumber
9
-
10
- # @deprecated The methods in this module have all been deprecated.
11
- #
12
- # All the methods have abstracted to actions/instruments_actions.rb.
13
- module IOS7Operations
14
- include Calabash::Cucumber::UIA
15
- include Calabash::Cucumber::EnvironmentHelpers
16
-
17
- # todo deprecate the Calabash::Cucumber::IOS7Operations
18
-
19
- # @!visibility private
20
- def touch_ios7(options)
21
- ui_query = options[:query]
22
- offset = options[:offset]
23
- if ui_query.nil?
24
- uia_tap_offset(offset)
25
- else
26
- el_to_touch = find_and_normalize_or_raise(ui_query)
27
- touch(el_to_touch, options)
28
- [el_to_touch]
29
- end
30
- end
31
-
32
- # @!visibility private
33
- def swipe_ios7(options)
34
- ui_query = options[:query]
35
- offset = options[:offset]
36
- if ui_query.nil?
37
- uia_swipe_offset(offset, options)
38
- else
39
- el_to_swipe = find_and_normalize_or_raise(ui_query)
40
- offset = point_from(el_to_swipe, options)
41
- uia_swipe_offset(offset, options)
42
- [el_to_swipe]
43
- end
44
- end
45
-
46
- # @!visibility private
47
- def pinch_ios7(in_or_out, options)
48
- ui_query = options[:query]
49
- offset = options[:offset]
50
- duration = options[:duration] || 0.5
51
- if ui_query.nil?
52
- uia_pinch_offset(in_or_out, offset, {:duration => options[:duration]})
53
- else
54
- el_to_pinch = find_and_normalize_or_raise(ui_query)
55
- offset = point_from(el_to_pinch, options)
56
- uia_pinch_offset(in_or_out, offset, duration)
57
- [el_to_pinch]
58
- end
59
- end
60
-
61
- # @!visibility private
62
- def pan_ios7(from, to, options={})
63
- from_result = find_and_normalize_or_raise from
64
- to_result = find_and_normalize_or_raise to
65
- uia_pan_offset(point_from(from_result, options),
66
- point_from(to_result, options),
67
- options)
68
- [to_result]
69
- end
70
-
71
- # @!visibility private
72
- def double_tap_ios7(options)
73
- ui_query = options[:query]
74
- offset = options[:offset]
75
- if ui_query.nil?
76
- uia_double_tap_offset(offset)
77
- else
78
- el_to_swipe = find_and_normalize_or_raise(ui_query)
79
- offset = point_from(el_to_swipe, options)
80
- uia_double_tap_offset(offset)
81
- [el_to_swipe]
82
- end
83
- end
84
-
85
- # @!visibility private
86
- def two_finger_tap_ios7(options)
87
- ui_query = options[:query]
88
- offset = options[:offset]
89
- if ui_query.nil?
90
- uia_two_finger_tap_offset(offset)
91
- else
92
- el_to_swipe = find_and_normalize_or_raise(ui_query)
93
- offset = point_from(el_to_swipe, options)
94
- uia_two_finger_tap_offset(offset)
95
- [el_to_swipe]
96
- end
97
- end
98
-
99
- # @!visibility private
100
- def flick_ios7(options, delta)
101
- ui_query = options[:query]
102
- offset = options[:offset]
103
- if ui_query.nil?
104
- uia_flick_offset(offset, add_offset(offset, delta))
105
- else
106
- el_to_swipe = find_and_normalize_or_raise(ui_query)
107
- offset = point_from(el_to_swipe, options)
108
- uia_flick_offset(offset, add_offset(offset, delta))
109
- [el_to_swipe]
110
- end
111
- end
112
-
113
- # @!visibility private
114
- def touch_hold_ios7(options)
115
- ui_query = options[:query]
116
- offset = options[:offset]
117
- duration = options[:duration] || 4
118
- if ui_query.nil?
119
- uia_touch_hold_offset(duration, offset)
120
- else
121
- el_to_swipe = find_and_normalize_or_raise(ui_query)
122
- offset = point_from(el_to_swipe, options)
123
- uia_touch_hold_offset(duration, offset)
124
- [el_to_swipe]
125
- end
126
- end
127
- end
128
- end
129
- end