calabash-cucumber-ios-cn 0.0.4 → 0.0.5

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGEwYmFiZWQyMTI2ZjI2ZmE3YzA2NjYzN2I4MWY0MTBiMGY2OTc4YQ==
4
+ Y2E3N2JlMjdlMzYzZTI3OWI2ZTY2MzI0YTg4MjczMWIzOWY0NTcxNA==
5
5
  data.tar.gz: !binary |-
6
- YThjNWUxY2ZhZjY4NDdiMTc2YWJjN2FkNWMwZmMyMGU5MDEwZWM1MQ==
6
+ ZWM0YTFmZmU3ODg1NDI4MDVlNzRkYzc2YjhiZTExYTNmOWFhZGUzMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmQ5Zjg3Yjg2ZDU5NzNjNGE0M2ZkNzBiODcwZDI1MzhhM2RkYzAwNGFmNTBh
10
- MDgxZDVmMzU2ZDYwY2UyMGIyYzZhODcxNDVjOWFlNmRhZmJjNThjMDRjODhm
11
- NjBjYzNlZmQyMzQxZTAyZDdiNGEyNThiZWQwZjA1NjhiNDhkNjA=
9
+ MmEzZmZmNWIyZTg2YTUzYWIwMGNiYTExYmUwNDIwMGMwMzhhMTRkZTI1Mjdk
10
+ ZjQ3M2Y0NTE0MjNjY2ZkYzFiNWZkMDgzZmNkZWE3MGZkYWIzYTcyNjM4NWUz
11
+ MmY1ODc2YWNlMTdhZTg4ZGZmNzhjODZkZDFlZDk5N2MwNjYyZTc=
12
12
  data.tar.gz: !binary |-
13
- OWRhMTY1Y2ZlNDkxMjEyZWZlOTBlYjEyMTNiY2ZkZDBkODZmNTY4MmJhY2Ri
14
- ZjBkMjMzNzIxZmU4YThjOGFiOWY4M2U1NjRiNTM3MzA4MTFhYmNkZDM4Y2Q3
15
- NGI2MzVjNjI3MTYwYzM0ZWE5YzM0OTllOGVjY2M2MGQ4NzA0MGE=
13
+ ZTliNzI0YTMwYzM3YWU5YzA5ZjIwODU5Y2VmMTNjYjlkMGU4YmMyM2M4YzIz
14
+ YjYxMzU2NDVmNTVmY2E0ZGMxNmJkN2FiNWY2YjQwMTFhOTQ2NWVhN2EyMzRi
15
+ ZWIzMmFmMTVmOWMyMmZlNzg0ZmE5MDczNjA3MGE1NDRiNTAyN2Y=
@@ -1,53 +1,50 @@
1
1
  # encoding: UTF-8
2
2
 
3
- # calabash-ios uses "touch" and "press", calabash-android uses "click" :-(
4
- if Calabash.const_defined?(:Android)
5
- PRESS = 'click'
6
- else
7
- PRESS = 'press'
8
- end
9
-
10
3
  Given /^应用正在运行$/ do
11
4
  macro %Q|the app is running|
12
5
  end
13
6
 
14
7
  # -- Touch --#
15
8
  Then /^我点按屏幕左(\d+)上(\d+)$/ do |x, y|
16
- macro %Q|I #{PRESS} on screen #{x} from the left and #{y} from the top|
9
+ if Calabash.const_defined?(:Android)
10
+ macro %Q|I click on screen #{x} from the left and #{y} from the top|
11
+ else
12
+ macro %Q|I press on screen #{x} from the left and #{y} from the top|
13
+ end
17
14
  end
18
15
 
19
16
  Then /^我点按"([^\"]*)"$/ do |name|
20
- macro %Q|I #{PRESS} "#{name}"|
17
+ macro %Q|I press "#{name}"|
21
18
  end
22
19
 
23
20
  Then /^我点按"([^\"]*)"右(\d+)%下(\d+)$/ do |name,x,y|
24
- macro %Q|I #{PRESS} #{x}% right and #{y}% down from "#{name}"|
21
+ macro %Q|I press #{x}% right and #{y}% down from "#{name}"|
25
22
  end
26
23
 
27
24
  Then /^我点按第(\d+)个按钮$/ do |index|
28
- macro %Q|I #{PRESS} button number #{index}|
25
+ macro %Q|I press button number #{index}|
29
26
  end
30
27
 
31
28
  Then /^我点按"([^\"]*)"按钮$/ do |name|
32
- macro %Q|I #{PRESS} the "#{name}" button|
29
+ macro %Q|I press the "#{name}" button|
33
30
  end
34
31
 
35
32
  Then /^我点按第(\d+)个文本框$/ do |index|
36
- macro %Q|I #{PRESS} text field number #{index}|
33
+ macro %Q|I press text field number #{index}|
37
34
  end
38
35
 
39
36
 
40
37
  Then /^我点按文本框"([^\"]*)"$/ do |name|
41
- macro %Q|I #{PRESS} the "#{name}" text field|
38
+ macro %Q|I press the "#{name}" text field|
42
39
  end
43
40
 
44
41
  #Note in tables views: this means visible cell index!
45
42
  Then /^我点按第(\d+)个列表项$/ do |index|
46
- macro %Q|I #{PRESS} list item number #{index}|
43
+ macro %Q|I press list item number #{index}|
47
44
  end
48
45
 
49
46
  Then /^我点按列表项"([^\"]*)"$/ do |cell_name|
50
- macro %Q|I #{PRESS} list item "#{cell_name}"|
47
+ macro %Q|I press list item "#{cell_name}"|
51
48
  end
52
49
 
53
50
  Then /^我切换开关$/ do
@@ -2,8 +2,8 @@ module Calabash
2
2
  module Cucumber
3
3
  module IOS
4
4
  module CN
5
- VERSION = '0.0.4'
6
- FRAMEWORK_VERSION = '0.0.4'
5
+ VERSION = '0.0.5'
6
+ FRAMEWORK_VERSION = '0.0.5'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber-ios-cn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Li Jie