calabash-cucumber 0.9.146 → 0.9.147
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/calabash-ios-sim.rb +7 -1
- data/lib/calabash-cucumber/core.rb +25 -0
- data/lib/calabash-cucumber/version.rb +1 -1
- data/scripts/EmptyAppHack.app/Default-568h@2x.png +0 -0
- data/scripts/EmptyAppHack.app/Default.png +0 -0
- data/scripts/EmptyAppHack.app/Default@2x.png +0 -0
- data/scripts/EmptyAppHack.app/EmptyAppHack +0 -0
- data/scripts/EmptyAppHack.app/Info.plist +0 -0
- data/scripts/EmptyAppHack.app/PkgInfo +1 -0
- data/scripts/EmptyAppHack.app/en.lproj/InfoPlist.strings +0 -0
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b0a8c635a9a515e35b4e406f26ca3a4e7107338
|
4
|
+
data.tar.gz: 998e08494f31aa1f8444badef8f9db3b6d06226b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e151429e3bff2124dd51c3cf16293ba2a4ff435d8f48f9634a7747c04d196b5d17b3e68c57f5e2b0b3172e15122a39b55ddee81c8775bbb83c1a754befda8043
|
7
|
+
data.tar.gz: 5f77163900d5ef504acaf5d5440cf814e16a363378c0ed2e2299837fbdbab89a29de5c764ac0f199852b38b51011445eaf1332983e044380345a0aa86de4d1ee
|
data/bin/calabash-ios-sim.rb
CHANGED
@@ -7,6 +7,7 @@ end
|
|
7
7
|
|
8
8
|
def calabash_sim_reset
|
9
9
|
reset_script = File.expand_path("#{@script_dir}/reset_simulator.scpt")
|
10
|
+
app_path = File.expand_path("#{@script_dir}/EmptyAppHack.app")
|
10
11
|
launcher = SimLauncher::Simulator.new
|
11
12
|
|
12
13
|
sdks = ENV['SDK_VERSIONS']
|
@@ -16,7 +17,12 @@ def calabash_sim_reset
|
|
16
17
|
sdks = SimLauncher::SdkDetector.new(launcher).available_sdk_versions
|
17
18
|
end
|
18
19
|
|
19
|
-
|
20
|
+
|
21
|
+
sdks.each do |sdk|
|
22
|
+
launcher.launch_ios_app(app_path, sdk, ENV['DEVICE'] || 'iphone')
|
23
|
+
puts `osascript #{reset_script}`
|
24
|
+
end
|
25
|
+
|
20
26
|
|
21
27
|
end
|
22
28
|
|
@@ -190,6 +190,31 @@ module Calabash
|
|
190
190
|
views_touched
|
191
191
|
end
|
192
192
|
|
193
|
+
|
194
|
+
def scroll_to_row_with_mark(row_id, options={:query => 'tableView',
|
195
|
+
:scroll_position => :middle,
|
196
|
+
:animate => true})
|
197
|
+
uiquery = options[:query] || 'tableView'
|
198
|
+
|
199
|
+
args = []
|
200
|
+
if options.has_key?(:scroll_position)
|
201
|
+
args << options[:scroll_position]
|
202
|
+
else
|
203
|
+
args << 'middle'
|
204
|
+
end
|
205
|
+
if options.has_key?(:animate)
|
206
|
+
args << options[:animate]
|
207
|
+
end
|
208
|
+
|
209
|
+
views_touched=map(uiquery, :scrollToRowWithMark, row_id, *args)
|
210
|
+
|
211
|
+
if views_touched.empty? or views_touched.member? '<VOID>'
|
212
|
+
msg = options[:failed_message] || "Unable to scroll: '#{uiquery}' to: #{options}"
|
213
|
+
screenshot_and_raise msg
|
214
|
+
end
|
215
|
+
views_touched
|
216
|
+
end
|
217
|
+
|
193
218
|
def pinch(in_out, options={})
|
194
219
|
file = "pinch_in"
|
195
220
|
if in_out.to_sym==:out
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
APPL????
|
Binary file
|
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.9.
|
4
|
+
version: 0.9.147
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -290,6 +290,13 @@ files:
|
|
290
290
|
- lib/calabash-cucumber/version.rb
|
291
291
|
- lib/calabash-cucumber/wait_helpers.rb
|
292
292
|
- scripts/.irbrc
|
293
|
+
- scripts/EmptyAppHack.app/Default-568h@2x.png
|
294
|
+
- scripts/EmptyAppHack.app/Default.png
|
295
|
+
- scripts/EmptyAppHack.app/Default@2x.png
|
296
|
+
- scripts/EmptyAppHack.app/EmptyAppHack
|
297
|
+
- scripts/EmptyAppHack.app/Info.plist
|
298
|
+
- scripts/EmptyAppHack.app/PkgInfo
|
299
|
+
- scripts/EmptyAppHack.app/en.lproj/InfoPlist.strings
|
293
300
|
- scripts/data/.GlobalPreferences.plist
|
294
301
|
- scripts/data/clients.plist
|
295
302
|
- scripts/data/com.apple.Accessibility.plist
|