calios-uikit-extension 0.0.1 → 0.0.2

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: a0c169ce6665d79228f6335ef2a8f885012d2454
4
- data.tar.gz: 9cc5ed7134cd85282e63cef1d06f95b0351b358f
3
+ metadata.gz: 84effcb7614303a2b1327986bf2ee0b7a3ef5ee5
4
+ data.tar.gz: c348322ace06fa8d9b6b1078499fbea31738c3a2
5
5
  SHA512:
6
- metadata.gz: b6d0718ce495ea8e411a883a8ff2a799f9ec89db510f19dd04746510275527977f0161299c1c92ea5a24f9154170ef1ca395c1d5969bbb6da6998c6fd1c6a63e
7
- data.tar.gz: b96430fb51ee14345694780e2a069368fa4f0ebd3661372b334d5d6aba40e089266c1b607ec6dd2ecf0844cb75b14b605b364d0776d976ecc0deffcbebec4a9a
6
+ metadata.gz: 5ade26e9c2cdc887be42393a3259da9efcf265f2b52e17e43576d8ef148b79556bb566b7509fcd0f542f1423af716c4578af9da88fbc8ab2dc5102e88d0fa747
7
+ data.tar.gz: 4451bc054c685c3ae3280a4c0f4e67c66c1f7c93f39b43a29e6a68aff4807b2ee7743284315d82b7004183e903e23f3bb3eb2b2e70b07cfd6713024b0a3a6469
@@ -39,6 +39,18 @@ class UIBase
39
39
 
40
40
  alias_method :f, :flash
41
41
 
42
+ def accessibility_label
43
+ self.property(:accessibilityLabel)
44
+ end
45
+
46
+ alias_method :label, :accessibility_label
47
+
48
+ def accessibility_identifier
49
+ self.property(:accessibilityIdentifier)
50
+ end
51
+
52
+ alias_method :identifier, :accessibility_identifier
53
+
42
54
  def help
43
55
  public_methods(false)
44
56
  end
@@ -85,5 +85,29 @@ class SpecUIButton < Minitest::Spec
85
85
  $args.first.must_equal(:finland)
86
86
  end
87
87
  end
88
+
89
+ describe 'UIButton.accessibility_label and aliases' do
90
+ it 'should call Calabash query method with correct parameters' do
91
+ UIButton.accessibility_label
92
+ $uiquery.must_equal("#{UIButton.class_name}")
93
+ $args.first.must_equal(:accessibilityLabel)
94
+
95
+ UIButton.label
96
+ $uiquery.must_equal("#{UIButton.class_name}")
97
+ $args.first.must_equal(:accessibilityLabel)
98
+ end
99
+ end
100
+
101
+ describe 'UIButton.accessibility_identifier and aliases' do
102
+ it 'should call Calabash query method with correct parameters' do
103
+ UIButton.accessibility_identifier
104
+ $uiquery.must_equal("#{UIButton.class_name}")
105
+ $args.first.must_equal(:accessibilityIdentifier)
106
+
107
+ UIButton.identifier
108
+ $uiquery.must_equal("#{UIButton.class_name}")
109
+ $args.first.must_equal(:accessibilityIdentifier)
110
+ end
111
+ end
88
112
  end
89
113
  end
@@ -129,5 +129,29 @@ class SpecUICollectionView < Minitest::Spec
129
129
  $args.first.must_equal(:myParam)
130
130
  end
131
131
  end
132
+
133
+ describe 'UICollectionView.accessibility_label and aliases' do
134
+ it 'should call Calabash query method with correct parameters' do
135
+ UICollectionView.accessibility_label
136
+ $uiquery.must_equal("#{UICollectionView.class_name}")
137
+ $args.first.must_equal(:accessibilityLabel)
138
+
139
+ UICollectionView.label
140
+ $uiquery.must_equal("#{UICollectionView.class_name}")
141
+ $args.first.must_equal(:accessibilityLabel)
142
+ end
143
+ end
144
+
145
+ describe 'UICollectionView.accessibility_identifier and aliases' do
146
+ it 'should call Calabash query method with correct parameters' do
147
+ UICollectionView.accessibility_identifier
148
+ $uiquery.must_equal("#{UICollectionView.class_name}")
149
+ $args.first.must_equal(:accessibilityIdentifier)
150
+
151
+ UICollectionView.identifier
152
+ $uiquery.must_equal("#{UICollectionView.class_name}")
153
+ $args.first.must_equal(:accessibilityIdentifier)
154
+ end
155
+ end
132
156
  end
133
157
  end
@@ -89,5 +89,29 @@ class SpecUICollectionViewCell < Minitest::Spec
89
89
  $args.first.must_equal(:varkaus)
90
90
  end
91
91
  end
92
+
93
+ describe 'UICollectionViewCell.accessibility_label and aliases' do
94
+ it 'should call Calabash query method with correct parameters' do
95
+ UICollectionViewCell.accessibility_label
96
+ $uiquery.must_equal("#{UICollectionViewCell.class_name}")
97
+ $args.first.must_equal(:accessibilityLabel)
98
+
99
+ UICollectionViewCell.label
100
+ $uiquery.must_equal("#{UICollectionViewCell.class_name}")
101
+ $args.first.must_equal(:accessibilityLabel)
102
+ end
103
+ end
104
+
105
+ describe 'UICollectionViewCell.accessibility_identifier and aliases' do
106
+ it 'should call Calabash query method with correct parameters' do
107
+ UICollectionViewCell.accessibility_identifier
108
+ $uiquery.must_equal("#{UICollectionViewCell.class_name}")
109
+ $args.first.must_equal(:accessibilityIdentifier)
110
+
111
+ UICollectionViewCell.identifier
112
+ $uiquery.must_equal("#{UICollectionViewCell.class_name}")
113
+ $args.first.must_equal(:accessibilityIdentifier)
114
+ end
115
+ end
92
116
  end
93
117
  end
@@ -85,5 +85,29 @@ class SpecUILabel < Minitest::Spec
85
85
  $args.first.must_equal(:kuopio)
86
86
  end
87
87
  end
88
+
89
+ describe 'UILabel.accessibility_label and aliases' do
90
+ it 'should call Calabash query method with correct parameters' do
91
+ UILabel.accessibility_label
92
+ $uiquery.must_equal("#{UILabel.class_name}")
93
+ $args.first.must_equal(:accessibilityLabel)
94
+
95
+ UILabel.label
96
+ $uiquery.must_equal("#{UILabel.class_name}")
97
+ $args.first.must_equal(:accessibilityLabel)
98
+ end
99
+ end
100
+
101
+ describe 'UILabel.accessibility_identifier and aliases' do
102
+ it 'should call Calabash query method with correct parameters' do
103
+ UILabel.accessibility_identifier
104
+ $uiquery.must_equal("#{UILabel.class_name}")
105
+ $args.first.must_equal(:accessibilityIdentifier)
106
+
107
+ UILabel.identifier
108
+ $uiquery.must_equal("#{UILabel.class_name}")
109
+ $args.first.must_equal(:accessibilityIdentifier)
110
+ end
111
+ end
88
112
  end
89
113
  end
@@ -89,5 +89,29 @@ class SpecUISwitch < Minitest::Spec
89
89
  $args.first.must_equal(:oulu)
90
90
  end
91
91
  end
92
+
93
+ describe 'UISwitch.accessibility_label and aliases' do
94
+ it 'should call Calabash query method with correct parameters' do
95
+ UISwitch.accessibility_label
96
+ $uiquery.must_equal("#{UISwitch.class_name}")
97
+ $args.first.must_equal(:accessibilityLabel)
98
+
99
+ UISwitch.label
100
+ $uiquery.must_equal("#{UISwitch.class_name}")
101
+ $args.first.must_equal(:accessibilityLabel)
102
+ end
103
+ end
104
+
105
+ describe 'UISwitch.accessibility_identifier and aliases' do
106
+ it 'should call Calabash query method with correct parameters' do
107
+ UISwitch.accessibility_identifier
108
+ $uiquery.must_equal("#{UISwitch.class_name}")
109
+ $args.first.must_equal(:accessibilityIdentifier)
110
+
111
+ UISwitch.identifier
112
+ $uiquery.must_equal("#{UISwitch.class_name}")
113
+ $args.first.must_equal(:accessibilityIdentifier)
114
+ end
115
+ end
92
116
  end
93
117
  end
@@ -79,5 +79,29 @@ class SpecUITableView < Minitest::Spec
79
79
  $args.first.must_equal(:salmiakki)
80
80
  end
81
81
  end
82
+
83
+ describe 'UITableView.accessibility_label and aliases' do
84
+ it 'should call Calabash query method with correct parameters' do
85
+ UITableView.accessibility_label
86
+ $uiquery.must_equal("#{UITableView.class_name}")
87
+ $args.first.must_equal(:accessibilityLabel)
88
+
89
+ UITableView.label
90
+ $uiquery.must_equal("#{UITableView.class_name}")
91
+ $args.first.must_equal(:accessibilityLabel)
92
+ end
93
+ end
94
+
95
+ describe 'UITableView.accessibility_identifier and aliases' do
96
+ it 'should call Calabash query method with correct parameters' do
97
+ UITableView.accessibility_identifier
98
+ $uiquery.must_equal("#{UITableView.class_name}")
99
+ $args.first.must_equal(:accessibilityIdentifier)
100
+
101
+ UITableView.identifier
102
+ $uiquery.must_equal("#{UITableView.class_name}")
103
+ $args.first.must_equal(:accessibilityIdentifier)
104
+ end
105
+ end
82
106
  end
83
107
  end
@@ -91,5 +91,29 @@ class SpecUITableViewCell < Minitest::Spec
91
91
  $uiquery.must_equal("#{UITableViewCell.class_name} marked:'myId'")
92
92
  end
93
93
  end
94
+
95
+ describe 'UITableViewCell.accessibility_label and aliases' do
96
+ it 'should call Calabash query method with correct parameters' do
97
+ UITableViewCell.accessibility_label
98
+ $uiquery.must_equal("#{UITableViewCell.class_name}")
99
+ $args.first.must_equal(:accessibilityLabel)
100
+
101
+ UITableViewCell.label
102
+ $uiquery.must_equal("#{UITableViewCell.class_name}")
103
+ $args.first.must_equal(:accessibilityLabel)
104
+ end
105
+ end
106
+
107
+ describe 'UITableViewCell.accessibility_identifier and aliases' do
108
+ it 'should call Calabash query method with correct parameters' do
109
+ UITableViewCell.accessibility_identifier
110
+ $uiquery.must_equal("#{UITableViewCell.class_name}")
111
+ $args.first.must_equal(:accessibilityIdentifier)
112
+
113
+ UITableViewCell.identifier
114
+ $uiquery.must_equal("#{UITableViewCell.class_name}")
115
+ $args.first.must_equal(:accessibilityIdentifier)
116
+ end
117
+ end
94
118
  end
95
119
  end
@@ -85,5 +85,29 @@ class SpecUITextField < Minitest::Spec
85
85
  $args.first.must_equal(:saimi)
86
86
  end
87
87
  end
88
+
89
+ describe 'UITextField.accessibility_label and aliases' do
90
+ it 'should call Calabash query method with correct parameters' do
91
+ UITextField.accessibility_label
92
+ $uiquery.must_equal("#{UITextField.class_name}")
93
+ $args.first.must_equal(:accessibilityLabel)
94
+
95
+ UITextField.label
96
+ $uiquery.must_equal("#{UITextField.class_name}")
97
+ $args.first.must_equal(:accessibilityLabel)
98
+ end
99
+ end
100
+
101
+ describe 'UITextField.accessibility_identifier and aliases' do
102
+ it 'should call Calabash query method with correct parameters' do
103
+ UITextField.accessibility_identifier
104
+ $uiquery.must_equal("#{UITextField.class_name}")
105
+ $args.first.must_equal(:accessibilityIdentifier)
106
+
107
+ UITextField.identifier
108
+ $uiquery.must_equal("#{UITextField.class_name}")
109
+ $args.first.must_equal(:accessibilityIdentifier)
110
+ end
111
+ end
88
112
  end
89
113
  end
@@ -0,0 +1,95 @@
1
+ require_relative 'spec_helper'
2
+
3
+ class SpecUIView < Minitest::Spec
4
+ before do
5
+ $uiquery = nil
6
+ $args = nil
7
+ end
8
+
9
+ after do
10
+ # nop
11
+ end
12
+
13
+ describe 'UIView' do
14
+ describe 'UIView.class_name' do
15
+ it 'should return class name' do
16
+ UIView.class_name.must_equal('UIView')
17
+ end
18
+ end
19
+
20
+ describe 'UIView.touch and aliases' do
21
+ it 'should call Calabash touch method with correct parameters' do
22
+ UIView.touch
23
+ $uiquery.must_equal("#{UIView.class_name}")
24
+
25
+ UIView.touch(0)
26
+ $uiquery.must_equal("#{UIView.class_name} index:0")
27
+
28
+ UIView.touch('myId')
29
+ $uiquery.must_equal("#{UIView.class_name} marked:'myId'")
30
+
31
+ UIView.tap
32
+ $uiquery.must_equal("#{UIView.class_name}")
33
+
34
+ UIView.tap(0)
35
+ $uiquery.must_equal("#{UIView.class_name} index:0")
36
+
37
+ UIView.tap('myId')
38
+ $uiquery.must_equal("#{UIView.class_name} marked:'myId'")
39
+ end
40
+ end
41
+
42
+ describe 'UIView.double_tap' do
43
+ it 'should call Calabash double_tap method with correct parameters' do
44
+ UIView.double_tap
45
+ $uiquery.must_equal(UIView.class_name)
46
+
47
+ UIView.double_tap(0)
48
+ $uiquery.must_equal("#{UIView.class_name} index:0")
49
+
50
+ UIView.double_tap('myId')
51
+ $uiquery.must_equal("#{UIView.class_name} marked:'myId'")
52
+ end
53
+ end
54
+
55
+ describe 'UIView.property and aliases' do
56
+ it 'should call Calabash query method with correct parameters' do
57
+ UIView.property(:finland)
58
+ $uiquery.must_equal("#{UIView.class_name}")
59
+ $args.first.must_equal(:finland)
60
+
61
+ UIView.prop(:finland)
62
+ $uiquery.must_equal("#{UIView.class_name}")
63
+ $args.first.must_equal(:finland)
64
+
65
+ UIView.p(:finland)
66
+ $uiquery.must_equal("#{UIView.class_name}")
67
+ $args.first.must_equal(:finland)
68
+ end
69
+ end
70
+
71
+ describe 'UIView.accessibility_label and aliases' do
72
+ it 'should call Calabash query method with correct parameters' do
73
+ UIView.accessibility_label
74
+ $uiquery.must_equal("#{UIView.class_name}")
75
+ $args.first.must_equal(:accessibilityLabel)
76
+
77
+ UIView.label
78
+ $uiquery.must_equal("#{UIView.class_name}")
79
+ $args.first.must_equal(:accessibilityLabel)
80
+ end
81
+ end
82
+
83
+ describe 'UIView.accessibility_identifier and aliases' do
84
+ it 'should call Calabash query method with correct parameters' do
85
+ UIView.accessibility_identifier
86
+ $uiquery.must_equal("#{UIView.class_name}")
87
+ $args.first.must_equal(:accessibilityIdentifier)
88
+
89
+ UIView.identifier
90
+ $uiquery.must_equal("#{UIView.class_name}")
91
+ $args.first.must_equal(:accessibilityIdentifier)
92
+ end
93
+ end
94
+ end
95
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calios-uikit-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jani Jegoroff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-15 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: calabash-cucumber
@@ -109,6 +109,7 @@ files:
109
109
  - spec/spec_ui_table_view.rb
110
110
  - spec/spec_ui_table_view_cell.rb
111
111
  - spec/spec_ui_text_field.rb
112
+ - spec/spec_ui_view.rb
112
113
  - spec/stubs/calabash_cucumber_core_stub.rb
113
114
  homepage: http://github.com/JaniJegoroff/calios-uikit-extension
114
115
  licenses:
@@ -145,4 +146,5 @@ test_files:
145
146
  - spec/spec_ui_table_view.rb
146
147
  - spec/spec_ui_table_view_cell.rb
147
148
  - spec/spec_ui_text_field.rb
149
+ - spec/spec_ui_view.rb
148
150
  - spec/stubs/calabash_cucumber_core_stub.rb