calios-uikit-extension 0.0.6 → 0.0.7
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 +4 -4
- data/lib/calios-uikit-extension.rb +2 -0
- data/lib/calios-uikit-extension/version.rb +3 -0
- data/spec/spec_ui_base.rb +103 -0
- data/spec/spec_ui_button.rb +0 -99
- data/spec/spec_ui_collection_view.rb +0 -99
- data/spec/spec_ui_collection_view_cell.rb +0 -99
- data/spec/spec_ui_keyboard_automatic.rb +1 -98
- data/spec/spec_ui_label.rb +0 -99
- data/spec/spec_ui_navigation_bar.rb +1 -98
- data/spec/spec_ui_search_bar.rb +0 -99
- data/spec/spec_ui_segmented_control.rb +0 -99
- data/spec/spec_ui_switch.rb +0 -99
- data/spec/spec_ui_table_view.rb +0 -99
- data/spec/spec_ui_table_view_cell.rb +0 -83
- data/spec/spec_ui_text_field.rb +0 -99
- data/spec/spec_ui_view.rb +1 -98
- metadata +3 -2
@@ -11,103 +11,6 @@ class SpecUIKeyboardAutomatic < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UIKeyboardAutomatic' do
|
14
|
-
|
15
|
-
it 'should return class name' do
|
16
|
-
UIKeyboardAutomatic.class_name.must_equal('UIKeyboardAutomatic')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
describe 'UIKeyboardAutomatic.touch and aliases' do
|
21
|
-
it 'should call Calabash touch method with correct parameters' do
|
22
|
-
UIKeyboardAutomatic.touch
|
23
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
24
|
-
|
25
|
-
UIKeyboardAutomatic.touch(0)
|
26
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name} index:0")
|
27
|
-
|
28
|
-
UIKeyboardAutomatic.touch('myId')
|
29
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name} marked:'myId'")
|
30
|
-
|
31
|
-
UIKeyboardAutomatic.tap
|
32
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
33
|
-
|
34
|
-
UIKeyboardAutomatic.tap(0)
|
35
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name} index:0")
|
36
|
-
|
37
|
-
UIKeyboardAutomatic.tap('myId')
|
38
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name} marked:'myId'")
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'UIKeyboardAutomatic.double_tap' do
|
43
|
-
it 'should call Calabash double_tap method with correct parameters' do
|
44
|
-
UIKeyboardAutomatic.double_tap
|
45
|
-
$uiquery.must_equal(UIKeyboardAutomatic.class_name)
|
46
|
-
|
47
|
-
UIKeyboardAutomatic.double_tap(0)
|
48
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name} index:0")
|
49
|
-
|
50
|
-
UIKeyboardAutomatic.double_tap('myId')
|
51
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name} marked:'myId'")
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
describe 'UIKeyboardAutomatic.property and aliases' do
|
56
|
-
it 'should call Calabash query method with correct parameters' do
|
57
|
-
UIKeyboardAutomatic.property(:finland)
|
58
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
59
|
-
$args.first.must_equal(:finland)
|
60
|
-
|
61
|
-
UIKeyboardAutomatic.prop(:finland)
|
62
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
63
|
-
$args.first.must_equal(:finland)
|
64
|
-
|
65
|
-
UIKeyboardAutomatic.p(:finland)
|
66
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
67
|
-
$args.first.must_equal(:finland)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
describe 'UIKeyboardAutomatic.accessibility_label and aliases' do
|
72
|
-
it 'should call Calabash query method with correct parameters' do
|
73
|
-
UIKeyboardAutomatic.accessibility_label
|
74
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
75
|
-
$args.first.must_equal(:accessibilityLabel)
|
76
|
-
|
77
|
-
UIKeyboardAutomatic.label
|
78
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
79
|
-
$args.first.must_equal(:accessibilityLabel)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
describe 'UIKeyboardAutomatic.accessibility_identifier and aliases' do
|
84
|
-
it 'should call Calabash query method with correct parameters' do
|
85
|
-
UIKeyboardAutomatic.accessibility_identifier
|
86
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
87
|
-
$args.first.must_equal(:accessibilityIdentifier)
|
88
|
-
|
89
|
-
UIKeyboardAutomatic.identifier
|
90
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
91
|
-
$args.first.must_equal(:accessibilityIdentifier)
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe 'UIKeyboardAutomatic.enabled?' do
|
96
|
-
it 'should call Calabash query method with correct parameters' do
|
97
|
-
$stub_query_response = [true, false]
|
98
|
-
|
99
|
-
UIKeyboardAutomatic.enabled?.must_equal(true)
|
100
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name}")
|
101
|
-
$args.first.must_equal(:isEnabled)
|
102
|
-
|
103
|
-
UIKeyboardAutomatic.enabled?(0).must_equal(true)
|
104
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name} index:0")
|
105
|
-
$args.first.must_equal(:isEnabled)
|
106
|
-
|
107
|
-
UIKeyboardAutomatic.enabled?('myId').must_equal(true)
|
108
|
-
$uiquery.must_equal("#{UIKeyboardAutomatic.class_name} marked:'myId'")
|
109
|
-
$args.first.must_equal(:isEnabled)
|
110
|
-
end
|
111
|
-
end
|
14
|
+
# Nothing here yet
|
112
15
|
end
|
113
16
|
end
|
data/spec/spec_ui_label.rb
CHANGED
@@ -11,12 +11,6 @@ class SpecUILabel < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UILabel' do
|
14
|
-
describe 'UILabel.class_name' do
|
15
|
-
it 'should return class name' do
|
16
|
-
UILabel.class_name.must_equal('UILabel')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
14
|
describe 'UILabel.text' do
|
21
15
|
it 'should call Calabash query method with correct parameters' do
|
22
16
|
$stub_query_response = %w(abc def ghi)
|
@@ -34,98 +28,5 @@ class SpecUILabel < Minitest::Spec
|
|
34
28
|
$args.first.must_equal(:text)
|
35
29
|
end
|
36
30
|
end
|
37
|
-
|
38
|
-
describe 'UILabel.touch and aliases' do
|
39
|
-
it 'should call Calabash touch method with correct parameters' do
|
40
|
-
UILabel.touch
|
41
|
-
$uiquery.must_equal("#{UILabel.class_name}")
|
42
|
-
|
43
|
-
UILabel.touch(0)
|
44
|
-
$uiquery.must_equal("#{UILabel.class_name} index:0")
|
45
|
-
|
46
|
-
UILabel.touch('myId')
|
47
|
-
$uiquery.must_equal("#{UILabel.class_name} marked:'myId'")
|
48
|
-
|
49
|
-
UILabel.tap
|
50
|
-
$uiquery.must_equal("#{UILabel.class_name}")
|
51
|
-
|
52
|
-
UILabel.tap(0)
|
53
|
-
$uiquery.must_equal("#{UILabel.class_name} index:0")
|
54
|
-
|
55
|
-
UILabel.tap('myId')
|
56
|
-
$uiquery.must_equal("#{UILabel.class_name} marked:'myId'")
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
describe 'UILabel.double_tap' do
|
61
|
-
it 'should call Calabash double_tap method with correct parameters' do
|
62
|
-
UILabel.double_tap
|
63
|
-
$uiquery.must_equal(UILabel.class_name)
|
64
|
-
|
65
|
-
UILabel.double_tap(0)
|
66
|
-
$uiquery.must_equal("#{UILabel.class_name} index:0")
|
67
|
-
|
68
|
-
UILabel.double_tap('myId')
|
69
|
-
$uiquery.must_equal("#{UILabel.class_name} marked:'myId'")
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
describe 'UILabel.property and aliases' do
|
74
|
-
it 'should call Calabash query method with correct parameters' do
|
75
|
-
UILabel.property(:kuopio)
|
76
|
-
$uiquery.must_equal("#{UILabel.class_name}")
|
77
|
-
$args.first.must_equal(:kuopio)
|
78
|
-
|
79
|
-
UILabel.prop(:kuopio)
|
80
|
-
$uiquery.must_equal("#{UILabel.class_name}")
|
81
|
-
$args.first.must_equal(:kuopio)
|
82
|
-
|
83
|
-
UILabel.p(:kuopio)
|
84
|
-
$uiquery.must_equal("#{UILabel.class_name}")
|
85
|
-
$args.first.must_equal(:kuopio)
|
86
|
-
end
|
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
|
112
|
-
|
113
|
-
describe 'UILabel.enabled?' do
|
114
|
-
it 'should call Calabash query method with correct parameters' do
|
115
|
-
$stub_query_response = [true, false]
|
116
|
-
|
117
|
-
UILabel.enabled?.must_equal(true)
|
118
|
-
$uiquery.must_equal("#{UILabel.class_name}")
|
119
|
-
$args.first.must_equal(:isEnabled)
|
120
|
-
|
121
|
-
UILabel.enabled?(0).must_equal(true)
|
122
|
-
$uiquery.must_equal("#{UILabel.class_name} index:0")
|
123
|
-
$args.first.must_equal(:isEnabled)
|
124
|
-
|
125
|
-
UILabel.enabled?('myId').must_equal(true)
|
126
|
-
$uiquery.must_equal("#{UILabel.class_name} marked:'myId'")
|
127
|
-
$args.first.must_equal(:isEnabled)
|
128
|
-
end
|
129
|
-
end
|
130
31
|
end
|
131
32
|
end
|
@@ -11,103 +11,6 @@ class SpecUINavigationBar < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UINavigationBar' do
|
14
|
-
|
15
|
-
it 'should return class name' do
|
16
|
-
UINavigationBar.class_name.must_equal('UINavigationBar')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
describe 'UINavigationBar.touch and aliases' do
|
21
|
-
it 'should call Calabash touch method with correct parameters' do
|
22
|
-
UINavigationBar.touch
|
23
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
24
|
-
|
25
|
-
UINavigationBar.touch(0)
|
26
|
-
$uiquery.must_equal("#{UINavigationBar.class_name} index:0")
|
27
|
-
|
28
|
-
UINavigationBar.touch('myId')
|
29
|
-
$uiquery.must_equal("#{UINavigationBar.class_name} marked:'myId'")
|
30
|
-
|
31
|
-
UINavigationBar.tap
|
32
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
33
|
-
|
34
|
-
UINavigationBar.tap(0)
|
35
|
-
$uiquery.must_equal("#{UINavigationBar.class_name} index:0")
|
36
|
-
|
37
|
-
UINavigationBar.tap('myId')
|
38
|
-
$uiquery.must_equal("#{UINavigationBar.class_name} marked:'myId'")
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'UINavigationBar.double_tap' do
|
43
|
-
it 'should call Calabash double_tap method with correct parameters' do
|
44
|
-
UINavigationBar.double_tap
|
45
|
-
$uiquery.must_equal(UINavigationBar.class_name)
|
46
|
-
|
47
|
-
UINavigationBar.double_tap(0)
|
48
|
-
$uiquery.must_equal("#{UINavigationBar.class_name} index:0")
|
49
|
-
|
50
|
-
UINavigationBar.double_tap('myId')
|
51
|
-
$uiquery.must_equal("#{UINavigationBar.class_name} marked:'myId'")
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
describe 'UINavigationBar.property and aliases' do
|
56
|
-
it 'should call Calabash query method with correct parameters' do
|
57
|
-
UINavigationBar.property(:finland)
|
58
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
59
|
-
$args.first.must_equal(:finland)
|
60
|
-
|
61
|
-
UINavigationBar.prop(:finland)
|
62
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
63
|
-
$args.first.must_equal(:finland)
|
64
|
-
|
65
|
-
UINavigationBar.p(:finland)
|
66
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
67
|
-
$args.first.must_equal(:finland)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
describe 'UINavigationBar.accessibility_label and aliases' do
|
72
|
-
it 'should call Calabash query method with correct parameters' do
|
73
|
-
UINavigationBar.accessibility_label
|
74
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
75
|
-
$args.first.must_equal(:accessibilityLabel)
|
76
|
-
|
77
|
-
UINavigationBar.label
|
78
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
79
|
-
$args.first.must_equal(:accessibilityLabel)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
describe 'UINavigationBar.accessibility_identifier and aliases' do
|
84
|
-
it 'should call Calabash query method with correct parameters' do
|
85
|
-
UINavigationBar.accessibility_identifier
|
86
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
87
|
-
$args.first.must_equal(:accessibilityIdentifier)
|
88
|
-
|
89
|
-
UINavigationBar.identifier
|
90
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
91
|
-
$args.first.must_equal(:accessibilityIdentifier)
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe 'UINavigationBar.enabled?' do
|
96
|
-
it 'should call Calabash query method with correct parameters' do
|
97
|
-
$stub_query_response = [true, false]
|
98
|
-
|
99
|
-
UINavigationBar.enabled?.must_equal(true)
|
100
|
-
$uiquery.must_equal("#{UINavigationBar.class_name}")
|
101
|
-
$args.first.must_equal(:isEnabled)
|
102
|
-
|
103
|
-
UINavigationBar.enabled?(0).must_equal(true)
|
104
|
-
$uiquery.must_equal("#{UINavigationBar.class_name} index:0")
|
105
|
-
$args.first.must_equal(:isEnabled)
|
106
|
-
|
107
|
-
UINavigationBar.enabled?('myId').must_equal(true)
|
108
|
-
$uiquery.must_equal("#{UINavigationBar.class_name} marked:'myId'")
|
109
|
-
$args.first.must_equal(:isEnabled)
|
110
|
-
end
|
111
|
-
end
|
14
|
+
# Nothing here yet
|
112
15
|
end
|
113
16
|
end
|
data/spec/spec_ui_search_bar.rb
CHANGED
@@ -11,12 +11,6 @@ class SpecUISearchBar < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UISearchBar' do
|
14
|
-
describe 'UISearchBar.class_name' do
|
15
|
-
it 'should return class name' do
|
16
|
-
UISearchBar.class_name.must_equal('UISearchBar')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
14
|
describe 'UISearchBar.text' do
|
21
15
|
it 'should call Calabash query method with correct parameters' do
|
22
16
|
$stub_query_response = %w(abc def ghi)
|
@@ -34,98 +28,5 @@ class SpecUISearchBar < Minitest::Spec
|
|
34
28
|
$args.first.must_equal(:text)
|
35
29
|
end
|
36
30
|
end
|
37
|
-
|
38
|
-
describe 'UISearchBar.touch and aliases' do
|
39
|
-
it 'should call Calabash touch method with correct parameters' do
|
40
|
-
UISearchBar.touch
|
41
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
42
|
-
|
43
|
-
UISearchBar.touch(0)
|
44
|
-
$uiquery.must_equal("#{UISearchBar.class_name} index:0")
|
45
|
-
|
46
|
-
UISearchBar.touch('myId')
|
47
|
-
$uiquery.must_equal("#{UISearchBar.class_name} marked:'myId'")
|
48
|
-
|
49
|
-
UISearchBar.tap
|
50
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
51
|
-
|
52
|
-
UISearchBar.tap(0)
|
53
|
-
$uiquery.must_equal("#{UISearchBar.class_name} index:0")
|
54
|
-
|
55
|
-
UISearchBar.tap('myId')
|
56
|
-
$uiquery.must_equal("#{UISearchBar.class_name} marked:'myId'")
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
describe 'UISearchBar.double_tap' do
|
61
|
-
it 'should call Calabash double_tap method with correct parameters' do
|
62
|
-
UISearchBar.double_tap
|
63
|
-
$uiquery.must_equal(UISearchBar.class_name)
|
64
|
-
|
65
|
-
UISearchBar.double_tap(0)
|
66
|
-
$uiquery.must_equal("#{UISearchBar.class_name} index:0")
|
67
|
-
|
68
|
-
UISearchBar.double_tap('myId')
|
69
|
-
$uiquery.must_equal("#{UISearchBar.class_name} marked:'myId'")
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
describe 'UISearchBar.property and aliases' do
|
74
|
-
it 'should call Calabash query method with correct parameters' do
|
75
|
-
UISearchBar.property(:finland)
|
76
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
77
|
-
$args.first.must_equal(:finland)
|
78
|
-
|
79
|
-
UISearchBar.prop(:finland)
|
80
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
81
|
-
$args.first.must_equal(:finland)
|
82
|
-
|
83
|
-
UISearchBar.p(:finland)
|
84
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
85
|
-
$args.first.must_equal(:finland)
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
describe 'UISearchBar.accessibility_label and aliases' do
|
90
|
-
it 'should call Calabash query method with correct parameters' do
|
91
|
-
UISearchBar.accessibility_label
|
92
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
93
|
-
$args.first.must_equal(:accessibilityLabel)
|
94
|
-
|
95
|
-
UISearchBar.label
|
96
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
97
|
-
$args.first.must_equal(:accessibilityLabel)
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
describe 'UISearchBar.accessibility_identifier and aliases' do
|
102
|
-
it 'should call Calabash query method with correct parameters' do
|
103
|
-
UISearchBar.accessibility_identifier
|
104
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
105
|
-
$args.first.must_equal(:accessibilityIdentifier)
|
106
|
-
|
107
|
-
UISearchBar.identifier
|
108
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
109
|
-
$args.first.must_equal(:accessibilityIdentifier)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
describe 'UISearchBar.enabled?' do
|
114
|
-
it 'should call Calabash query method with correct parameters' do
|
115
|
-
$stub_query_response = [true, false]
|
116
|
-
|
117
|
-
UISearchBar.enabled?.must_equal(true)
|
118
|
-
$uiquery.must_equal("#{UISearchBar.class_name}")
|
119
|
-
$args.first.must_equal(:isEnabled)
|
120
|
-
|
121
|
-
UISearchBar.enabled?(0).must_equal(true)
|
122
|
-
$uiquery.must_equal("#{UISearchBar.class_name} index:0")
|
123
|
-
$args.first.must_equal(:isEnabled)
|
124
|
-
|
125
|
-
UISearchBar.enabled?('myId').must_equal(true)
|
126
|
-
$uiquery.must_equal("#{UISearchBar.class_name} marked:'myId'")
|
127
|
-
$args.first.must_equal(:isEnabled)
|
128
|
-
end
|
129
|
-
end
|
130
31
|
end
|
131
32
|
end
|
@@ -11,105 +11,6 @@ class SpecUISegmentedControl < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UISegmentedControl' do
|
14
|
-
describe 'UISegmentedControl.class_name' do
|
15
|
-
it 'should return class name' do
|
16
|
-
UISegmentedControl.class_name.must_equal('UISegmentedControl')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
describe 'UISegmentedControl.touch and aliases' do
|
21
|
-
it 'should call Calabash touch method with correct parameters' do
|
22
|
-
UISegmentedControl.touch
|
23
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
24
|
-
|
25
|
-
UISegmentedControl.touch(0)
|
26
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name} index:0")
|
27
|
-
|
28
|
-
UISegmentedControl.touch('myId')
|
29
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name} marked:'myId'")
|
30
|
-
|
31
|
-
UISegmentedControl.tap
|
32
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
33
|
-
|
34
|
-
UISegmentedControl.tap(0)
|
35
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name} index:0")
|
36
|
-
|
37
|
-
UISegmentedControl.tap('myId')
|
38
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name} marked:'myId'")
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'UISegmentedControl.double_tap' do
|
43
|
-
it 'should call Calabash double_tap method with correct parameters' do
|
44
|
-
UISegmentedControl.double_tap
|
45
|
-
$uiquery.must_equal(UISegmentedControl.class_name)
|
46
|
-
|
47
|
-
UISegmentedControl.double_tap(0)
|
48
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name} index:0")
|
49
|
-
|
50
|
-
UISegmentedControl.double_tap('myId')
|
51
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name} marked:'myId'")
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
describe 'UISegmentedControl.property and aliases' do
|
56
|
-
it 'should call Calabash query method with correct parameters' do
|
57
|
-
UISegmentedControl.property(:finland)
|
58
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
59
|
-
$args.first.must_equal(:finland)
|
60
|
-
|
61
|
-
UISegmentedControl.prop(:finland)
|
62
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
63
|
-
$args.first.must_equal(:finland)
|
64
|
-
|
65
|
-
UISegmentedControl.p(:finland)
|
66
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
67
|
-
$args.first.must_equal(:finland)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
describe 'UISegmentedControl.accessibility_label and aliases' do
|
72
|
-
it 'should call Calabash query method with correct parameters' do
|
73
|
-
UISegmentedControl.accessibility_label
|
74
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
75
|
-
$args.first.must_equal(:accessibilityLabel)
|
76
|
-
|
77
|
-
UISegmentedControl.label
|
78
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
79
|
-
$args.first.must_equal(:accessibilityLabel)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
describe 'UISegmentedControl.accessibility_identifier and aliases' do
|
84
|
-
it 'should call Calabash query method with correct parameters' do
|
85
|
-
UISegmentedControl.accessibility_identifier
|
86
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
87
|
-
$args.first.must_equal(:accessibilityIdentifier)
|
88
|
-
|
89
|
-
UISegmentedControl.identifier
|
90
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
91
|
-
$args.first.must_equal(:accessibilityIdentifier)
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe 'UISegmentedControl.enabled?' do
|
96
|
-
it 'should call Calabash query method with correct parameters' do
|
97
|
-
$stub_query_response = [true, false]
|
98
|
-
|
99
|
-
UISegmentedControl.enabled?.must_equal(true)
|
100
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name}")
|
101
|
-
$args.first.must_equal(:isEnabled)
|
102
|
-
|
103
|
-
UISegmentedControl.enabled?(0).must_equal(true)
|
104
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name} index:0")
|
105
|
-
$args.first.must_equal(:isEnabled)
|
106
|
-
|
107
|
-
UISegmentedControl.enabled?('myId').must_equal(true)
|
108
|
-
$uiquery.must_equal("#{UISegmentedControl.class_name} marked:'myId'")
|
109
|
-
$args.first.must_equal(:isEnabled)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
14
|
describe 'UISegmentedControl.number_of_segments' do
|
114
15
|
it 'should call Calabash query method with correct parameters' do
|
115
16
|
$stub_query_response = [4, 6]
|