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
data/spec/spec_ui_switch.rb
CHANGED
@@ -11,12 +11,6 @@ class SpecUISwitch < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UISwitch' do
|
14
|
-
describe 'UISwitch.class_name' do
|
15
|
-
it 'should return class name' do
|
16
|
-
UISwitch.class_name.must_equal('UISwitch')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
14
|
describe 'UISwitch.on?' do
|
21
15
|
it 'should call Calabash query method with correct parameters' do
|
22
16
|
$stub_query_response = [false, true]
|
@@ -38,98 +32,5 @@ class SpecUISwitch < Minitest::Spec
|
|
38
32
|
$args.first.must_equal(:isOn)
|
39
33
|
end
|
40
34
|
end
|
41
|
-
|
42
|
-
describe 'UISwitch.touch and aliases' do
|
43
|
-
it 'should call Calabash touch method with correct parameters' do
|
44
|
-
UISwitch.touch
|
45
|
-
$uiquery.must_equal("#{UISwitch.class_name}")
|
46
|
-
|
47
|
-
UISwitch.touch(0)
|
48
|
-
$uiquery.must_equal("#{UISwitch.class_name} index:0")
|
49
|
-
|
50
|
-
UISwitch.touch('myId')
|
51
|
-
$uiquery.must_equal("#{UISwitch.class_name} marked:'myId'")
|
52
|
-
|
53
|
-
UISwitch.tap
|
54
|
-
$uiquery.must_equal("#{UISwitch.class_name}")
|
55
|
-
|
56
|
-
UISwitch.tap(0)
|
57
|
-
$uiquery.must_equal("#{UISwitch.class_name} index:0")
|
58
|
-
|
59
|
-
UISwitch.tap('myId')
|
60
|
-
$uiquery.must_equal("#{UISwitch.class_name} marked:'myId'")
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
describe 'UISwitch.double_tap' do
|
65
|
-
it 'should call Calabash double_tap method with correct parameters' do
|
66
|
-
UISwitch.double_tap
|
67
|
-
$uiquery.must_equal(UISwitch.class_name)
|
68
|
-
|
69
|
-
UISwitch.double_tap(0)
|
70
|
-
$uiquery.must_equal("#{UISwitch.class_name} index:0")
|
71
|
-
|
72
|
-
UISwitch.double_tap('myId')
|
73
|
-
$uiquery.must_equal("#{UISwitch.class_name} marked:'myId'")
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
describe 'UISwitch.property and aliases' do
|
78
|
-
it 'should call Calabash query method with correct parameters' do
|
79
|
-
UISwitch.property(:oulu)
|
80
|
-
$uiquery.must_equal("#{UISwitch.class_name}")
|
81
|
-
$args.first.must_equal(:oulu)
|
82
|
-
|
83
|
-
UISwitch.prop(:oulu)
|
84
|
-
$uiquery.must_equal("#{UISwitch.class_name}")
|
85
|
-
$args.first.must_equal(:oulu)
|
86
|
-
|
87
|
-
UISwitch.p(:oulu)
|
88
|
-
$uiquery.must_equal("#{UISwitch.class_name}")
|
89
|
-
$args.first.must_equal(:oulu)
|
90
|
-
end
|
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
|
116
|
-
|
117
|
-
describe 'UISwitch.enabled?' do
|
118
|
-
it 'should call Calabash query method with correct parameters' do
|
119
|
-
$stub_query_response = [true, false]
|
120
|
-
|
121
|
-
UISwitch.enabled?.must_equal(true)
|
122
|
-
$uiquery.must_equal("#{UISwitch.class_name}")
|
123
|
-
$args.first.must_equal(:isEnabled)
|
124
|
-
|
125
|
-
UISwitch.enabled?(0).must_equal(true)
|
126
|
-
$uiquery.must_equal("#{UISwitch.class_name} index:0")
|
127
|
-
$args.first.must_equal(:isEnabled)
|
128
|
-
|
129
|
-
UISwitch.enabled?('myId').must_equal(true)
|
130
|
-
$uiquery.must_equal("#{UISwitch.class_name} marked:'myId'")
|
131
|
-
$args.first.must_equal(:isEnabled)
|
132
|
-
end
|
133
|
-
end
|
134
35
|
end
|
135
36
|
end
|
data/spec/spec_ui_table_view.rb
CHANGED
@@ -11,12 +11,6 @@ class SpecUITableView < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UITableView' do
|
14
|
-
describe 'UITableView.class_name' do
|
15
|
-
it 'should return class name' do
|
16
|
-
UITableView.class_name.must_equal('UITableView')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
14
|
describe 'UITableView.scroll' do
|
21
15
|
it 'should call Calabash scroll method with correct parameters' do
|
22
16
|
directions = [:up, :down, :left, :right]
|
@@ -28,98 +22,5 @@ class SpecUITableView < Minitest::Spec
|
|
28
22
|
end
|
29
23
|
end
|
30
24
|
end
|
31
|
-
|
32
|
-
describe 'UITableView.touch and aliases' do
|
33
|
-
it 'should call Calabash touch method with correct parameters' do
|
34
|
-
UITableView.touch
|
35
|
-
$uiquery.must_equal("#{UITableView.class_name}")
|
36
|
-
|
37
|
-
UITableView.touch(0)
|
38
|
-
$uiquery.must_equal("#{UITableView.class_name} index:0")
|
39
|
-
|
40
|
-
UITableView.touch('myId')
|
41
|
-
$uiquery.must_equal("#{UITableView.class_name} marked:'myId'")
|
42
|
-
|
43
|
-
UITableView.tap
|
44
|
-
$uiquery.must_equal("#{UITableView.class_name}")
|
45
|
-
|
46
|
-
UITableView.tap(0)
|
47
|
-
$uiquery.must_equal("#{UITableView.class_name} index:0")
|
48
|
-
|
49
|
-
UITableView.tap('myId')
|
50
|
-
$uiquery.must_equal("#{UITableView.class_name} marked:'myId'")
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe 'UITableView.double_tap' do
|
55
|
-
it 'should call Calabash double_tap method with correct parameters' do
|
56
|
-
UITableView.double_tap
|
57
|
-
$uiquery.must_equal(UITableView.class_name)
|
58
|
-
|
59
|
-
UITableView.double_tap(0)
|
60
|
-
$uiquery.must_equal("#{UITableView.class_name} index:0")
|
61
|
-
|
62
|
-
UITableView.double_tap('myId')
|
63
|
-
$uiquery.must_equal("#{UITableView.class_name} marked:'myId'")
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
describe 'UITableView.property and aliases' do
|
68
|
-
it 'should call Calabash query method with correct parameters' do
|
69
|
-
UITableView.property(:salmiakki)
|
70
|
-
$uiquery.must_equal("#{UITableView.class_name}")
|
71
|
-
$args.first.must_equal(:salmiakki)
|
72
|
-
|
73
|
-
UITableView.prop(:salmiakki)
|
74
|
-
$uiquery.must_equal("#{UITableView.class_name}")
|
75
|
-
$args.first.must_equal(:salmiakki)
|
76
|
-
|
77
|
-
UITableView.p(:salmiakki)
|
78
|
-
$uiquery.must_equal("#{UITableView.class_name}")
|
79
|
-
$args.first.must_equal(:salmiakki)
|
80
|
-
end
|
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
|
106
|
-
|
107
|
-
describe 'UITableView.enabled?' do
|
108
|
-
it 'should call Calabash query method with correct parameters' do
|
109
|
-
$stub_query_response = [true, false]
|
110
|
-
|
111
|
-
UITableView.enabled?.must_equal(true)
|
112
|
-
$uiquery.must_equal("#{UITableView.class_name}")
|
113
|
-
$args.first.must_equal(:isEnabled)
|
114
|
-
|
115
|
-
UITableView.enabled?(0).must_equal(true)
|
116
|
-
$uiquery.must_equal("#{UITableView.class_name} index:0")
|
117
|
-
$args.first.must_equal(:isEnabled)
|
118
|
-
|
119
|
-
UITableView.enabled?('myId').must_equal(true)
|
120
|
-
$uiquery.must_equal("#{UITableView.class_name} marked:'myId'")
|
121
|
-
$args.first.must_equal(:isEnabled)
|
122
|
-
end
|
123
|
-
end
|
124
25
|
end
|
125
26
|
end
|
@@ -11,12 +11,6 @@ class SpecUITableViewCell < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UITableViewCell' do
|
14
|
-
describe 'UITableViewCell.class_name' do
|
15
|
-
it 'should return class name' do
|
16
|
-
UITableViewCell.class_name.must_equal('UITableViewCell')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
14
|
describe 'UITableViewCell.selected?' do
|
21
15
|
it 'should call Calabash query method with correct parameters' do
|
22
16
|
$stub_query_response = [false, true]
|
@@ -56,82 +50,5 @@ class SpecUITableViewCell < Minitest::Spec
|
|
56
50
|
$args.first.must_equal(:text)
|
57
51
|
end
|
58
52
|
end
|
59
|
-
|
60
|
-
describe 'UITableViewCell.touch and aliases' do
|
61
|
-
it 'should call Calabash touch method with correct parameters' do
|
62
|
-
UITableViewCell.touch
|
63
|
-
$uiquery.must_equal("#{UITableViewCell.class_name}")
|
64
|
-
|
65
|
-
UITableViewCell.touch(0)
|
66
|
-
$uiquery.must_equal("#{UITableViewCell.class_name} index:0")
|
67
|
-
|
68
|
-
UITableViewCell.touch('myId')
|
69
|
-
$uiquery.must_equal("#{UITableViewCell.class_name} marked:'myId'")
|
70
|
-
|
71
|
-
UITableViewCell.tap
|
72
|
-
$uiquery.must_equal("#{UITableViewCell.class_name}")
|
73
|
-
|
74
|
-
UITableViewCell.tap(0)
|
75
|
-
$uiquery.must_equal("#{UITableViewCell.class_name} index:0")
|
76
|
-
|
77
|
-
UITableViewCell.tap('myId')
|
78
|
-
$uiquery.must_equal("#{UITableViewCell.class_name} marked:'myId'")
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
describe 'UITableViewCell.double_tap' do
|
83
|
-
it 'should call Calabash double_tap method with correct parameters' do
|
84
|
-
UITableViewCell.double_tap
|
85
|
-
$uiquery.must_equal(UITableViewCell.class_name)
|
86
|
-
|
87
|
-
UITableViewCell.double_tap(0)
|
88
|
-
$uiquery.must_equal("#{UITableViewCell.class_name} index:0")
|
89
|
-
|
90
|
-
UITableViewCell.double_tap('myId')
|
91
|
-
$uiquery.must_equal("#{UITableViewCell.class_name} marked:'myId'")
|
92
|
-
end
|
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
|
118
|
-
|
119
|
-
describe 'UITableViewCell.enabled?' do
|
120
|
-
it 'should call Calabash query method with correct parameters' do
|
121
|
-
$stub_query_response = [true, false]
|
122
|
-
|
123
|
-
UITableViewCell.enabled?.must_equal(true)
|
124
|
-
$uiquery.must_equal("#{UITableViewCell.class_name}")
|
125
|
-
$args.first.must_equal(:isEnabled)
|
126
|
-
|
127
|
-
UITableViewCell.enabled?(0).must_equal(true)
|
128
|
-
$uiquery.must_equal("#{UITableViewCell.class_name} index:0")
|
129
|
-
$args.first.must_equal(:isEnabled)
|
130
|
-
|
131
|
-
UITableViewCell.enabled?('myId').must_equal(true)
|
132
|
-
$uiquery.must_equal("#{UITableViewCell.class_name} marked:'myId'")
|
133
|
-
$args.first.must_equal(:isEnabled)
|
134
|
-
end
|
135
|
-
end
|
136
53
|
end
|
137
54
|
end
|
data/spec/spec_ui_text_field.rb
CHANGED
@@ -11,12 +11,6 @@ class SpecUITextField < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UITextField' do
|
14
|
-
describe 'UITextField.class_name' do
|
15
|
-
it 'should return class name' do
|
16
|
-
UITextField.class_name.must_equal('UITextField')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
14
|
describe 'UITextField.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 SpecUITextField < Minitest::Spec
|
|
34
28
|
$args.first.must_equal(:text)
|
35
29
|
end
|
36
30
|
end
|
37
|
-
|
38
|
-
describe 'UITextField.touch and aliases' do
|
39
|
-
it 'should call Calabash touch method with correct parameters' do
|
40
|
-
UITextField.touch
|
41
|
-
$uiquery.must_equal("#{UITextField.class_name}")
|
42
|
-
|
43
|
-
UITextField.touch(0)
|
44
|
-
$uiquery.must_equal("#{UITextField.class_name} index:0")
|
45
|
-
|
46
|
-
UITextField.touch('myId')
|
47
|
-
$uiquery.must_equal("#{UITextField.class_name} marked:'myId'")
|
48
|
-
|
49
|
-
UITextField.tap
|
50
|
-
$uiquery.must_equal("#{UITextField.class_name}")
|
51
|
-
|
52
|
-
UITextField.tap(0)
|
53
|
-
$uiquery.must_equal("#{UITextField.class_name} index:0")
|
54
|
-
|
55
|
-
UITextField.tap('myId')
|
56
|
-
$uiquery.must_equal("#{UITextField.class_name} marked:'myId'")
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
describe 'UITextField.double_tap' do
|
61
|
-
it 'should call Calabash double_tap method with correct parameters' do
|
62
|
-
UITextField.double_tap
|
63
|
-
$uiquery.must_equal(UITextField.class_name)
|
64
|
-
|
65
|
-
UITextField.double_tap(0)
|
66
|
-
$uiquery.must_equal("#{UITextField.class_name} index:0")
|
67
|
-
|
68
|
-
UITextField.double_tap('myId')
|
69
|
-
$uiquery.must_equal("#{UITextField.class_name} marked:'myId'")
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
describe 'UITextField.property and aliases' do
|
74
|
-
it 'should call Calabash query method with correct parameters' do
|
75
|
-
UITextField.property(:saimi)
|
76
|
-
$uiquery.must_equal("#{UITextField.class_name}")
|
77
|
-
$args.first.must_equal(:saimi)
|
78
|
-
|
79
|
-
UITextField.prop(:saimi)
|
80
|
-
$uiquery.must_equal("#{UITextField.class_name}")
|
81
|
-
$args.first.must_equal(:saimi)
|
82
|
-
|
83
|
-
UITextField.p(:saimi)
|
84
|
-
$uiquery.must_equal("#{UITextField.class_name}")
|
85
|
-
$args.first.must_equal(:saimi)
|
86
|
-
end
|
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
|
112
|
-
|
113
|
-
describe 'UITextField.enabled?' do
|
114
|
-
it 'should call Calabash query method with correct parameters' do
|
115
|
-
$stub_query_response = [true, false]
|
116
|
-
|
117
|
-
UITextField.enabled?.must_equal(true)
|
118
|
-
$uiquery.must_equal("#{UITextField.class_name}")
|
119
|
-
$args.first.must_equal(:isEnabled)
|
120
|
-
|
121
|
-
UITextField.enabled?(0).must_equal(true)
|
122
|
-
$uiquery.must_equal("#{UITextField.class_name} index:0")
|
123
|
-
$args.first.must_equal(:isEnabled)
|
124
|
-
|
125
|
-
UITextField.enabled?('myId').must_equal(true)
|
126
|
-
$uiquery.must_equal("#{UITextField.class_name} marked:'myId'")
|
127
|
-
$args.first.must_equal(:isEnabled)
|
128
|
-
end
|
129
|
-
end
|
130
31
|
end
|
131
32
|
end
|
data/spec/spec_ui_view.rb
CHANGED
@@ -11,103 +11,6 @@ class SpecUIView < Minitest::Spec
|
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'UIView' do
|
14
|
-
|
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
|
-
|
95
|
-
describe 'UIView.enabled?' do
|
96
|
-
it 'should call Calabash query method with correct parameters' do
|
97
|
-
$stub_query_response = [true, false]
|
98
|
-
|
99
|
-
UIView.enabled?.must_equal(true)
|
100
|
-
$uiquery.must_equal("#{UIView.class_name}")
|
101
|
-
$args.first.must_equal(:isEnabled)
|
102
|
-
|
103
|
-
UIView.enabled?(0).must_equal(true)
|
104
|
-
$uiquery.must_equal("#{UIView.class_name} index:0")
|
105
|
-
$args.first.must_equal(:isEnabled)
|
106
|
-
|
107
|
-
UIView.enabled?('myId').must_equal(true)
|
108
|
-
$uiquery.must_equal("#{UIView.class_name} marked:'myId'")
|
109
|
-
$args.first.must_equal(:isEnabled)
|
110
|
-
end
|
111
|
-
end
|
14
|
+
# Nothing here yet
|
112
15
|
end
|
113
16
|
end
|