calabash-cucumber 0.9.146 → 0.9.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b381bd7970b0647d9547254ec5b7a16e4a53914
4
- data.tar.gz: d224e7443159052355b4d847cdfe5d13c681f32d
3
+ metadata.gz: 1b0a8c635a9a515e35b4e406f26ca3a4e7107338
4
+ data.tar.gz: 998e08494f31aa1f8444badef8f9db3b6d06226b
5
5
  SHA512:
6
- metadata.gz: 2da6fbb7bca6e7f9160d2f38b7d36f58844373f713fb6896955a4902b15dac79a7725bf4f6f4191eb3550c454c015efd7a668d8d63e4c7ea7a4fea8a30cfef5c
7
- data.tar.gz: 784c79e04a5ba126e4e151249fdb0aa9fe0b47d8375dfc57e50a9fd766a244d88e8fca7b47de2069b4d8a30495f60753bc7821357e9c9236318523f92f4bde71
6
+ metadata.gz: e151429e3bff2124dd51c3cf16293ba2a4ff435d8f48f9634a7747c04d196b5d17b3e68c57f5e2b0b3172e15122a39b55ddee81c8775bbb83c1a754befda8043
7
+ data.tar.gz: 5f77163900d5ef504acaf5d5440cf814e16a363378c0ed2e2299837fbdbab89a29de5c764ac0f199852b38b51011445eaf1332983e044380345a0aa86de4d1ee
@@ -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
- launcher.reset(sdks)
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
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = '0.9.146'
3
+ VERSION = '0.9.147'
4
4
  FRAMEWORK_VERSION = '0.9.146'
5
5
  end
6
6
  end
Binary file
@@ -0,0 +1 @@
1
+ APPL????
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.146
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-05-23 00:00:00.000000000 Z
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