calios-uikit-extension 0.0.5 → 0.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a701ed9e6e99497e0f444fc04a76da50089702db
|
4
|
+
data.tar.gz: db33f344da6e25f279bca277d84c49b5db479cca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 463bfdca7a6cc2ed9220c2ec243f24b9ce819e1d67af36f21e037acfa2d3f9399195a81a872820df7c00727c903e28a82ebb5dd8359ce72efa6f514dd713b40d
|
7
|
+
data.tar.gz: 3c557e1fbeb51a08d3bdd21c6ef5e04f72830b15186ed65f23d77601b65f860af486825e7fcdd06985b40da5ea7b693030870f7daa70a600016e4c325939ccd5
|
@@ -6,7 +6,9 @@ require 'calios-uikit-extension/ui_base'
|
|
6
6
|
require 'calios-uikit-extension/ui_button'
|
7
7
|
require 'calios-uikit-extension/ui_collection_view'
|
8
8
|
require 'calios-uikit-extension/ui_collection_view_cell'
|
9
|
+
require 'calios-uikit-extension/ui_keyboard_automatic'
|
9
10
|
require 'calios-uikit-extension/ui_label'
|
11
|
+
require 'calios-uikit-extension/ui_navigation_bar'
|
10
12
|
require 'calios-uikit-extension/ui_search_bar'
|
11
13
|
require 'calios-uikit-extension/ui_segmented_control'
|
12
14
|
require 'calios-uikit-extension/ui_switch'
|
@@ -0,0 +1,113 @@
|
|
1
|
+
require_relative 'spec_helper'
|
2
|
+
|
3
|
+
class SpecUIKeyboardAutomatic < Minitest::Spec
|
4
|
+
before do
|
5
|
+
$uiquery = nil
|
6
|
+
$args = nil
|
7
|
+
end
|
8
|
+
|
9
|
+
after do
|
10
|
+
# nop
|
11
|
+
end
|
12
|
+
|
13
|
+
describe 'UIKeyboardAutomatic' do
|
14
|
+
describe 'UIKeyboardAutomatic.class_name' do
|
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
|
112
|
+
end
|
113
|
+
end
|
@@ -0,0 +1,113 @@
|
|
1
|
+
require_relative 'spec_helper'
|
2
|
+
|
3
|
+
class SpecUINavigationBar < Minitest::Spec
|
4
|
+
before do
|
5
|
+
$uiquery = nil
|
6
|
+
$args = nil
|
7
|
+
end
|
8
|
+
|
9
|
+
after do
|
10
|
+
# nop
|
11
|
+
end
|
12
|
+
|
13
|
+
describe 'UINavigationBar' do
|
14
|
+
describe 'UINavigationBar.class_name' do
|
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
|
112
|
+
end
|
113
|
+
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.
|
4
|
+
version: 0.0.6
|
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-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: calabash-cucumber
|
@@ -93,7 +93,9 @@ files:
|
|
93
93
|
- lib/calios-uikit-extension/ui_button.rb
|
94
94
|
- lib/calios-uikit-extension/ui_collection_view.rb
|
95
95
|
- lib/calios-uikit-extension/ui_collection_view_cell.rb
|
96
|
+
- lib/calios-uikit-extension/ui_keyboard_automatic.rb
|
96
97
|
- lib/calios-uikit-extension/ui_label.rb
|
98
|
+
- lib/calios-uikit-extension/ui_navigation_bar.rb
|
97
99
|
- lib/calios-uikit-extension/ui_search_bar.rb
|
98
100
|
- lib/calios-uikit-extension/ui_segmented_control.rb
|
99
101
|
- lib/calios-uikit-extension/ui_switch.rb
|
@@ -106,7 +108,9 @@ files:
|
|
106
108
|
- spec/spec_ui_button.rb
|
107
109
|
- spec/spec_ui_collection_view.rb
|
108
110
|
- spec/spec_ui_collection_view_cell.rb
|
111
|
+
- spec/spec_ui_keyboard_automatic.rb
|
109
112
|
- spec/spec_ui_label.rb
|
113
|
+
- spec/spec_ui_navigation_bar.rb
|
110
114
|
- spec/spec_ui_search_bar.rb
|
111
115
|
- spec/spec_ui_segmented_control.rb
|
112
116
|
- spec/spec_ui_switch.rb
|
@@ -145,7 +149,9 @@ test_files:
|
|
145
149
|
- spec/spec_ui_button.rb
|
146
150
|
- spec/spec_ui_collection_view.rb
|
147
151
|
- spec/spec_ui_collection_view_cell.rb
|
152
|
+
- spec/spec_ui_keyboard_automatic.rb
|
148
153
|
- spec/spec_ui_label.rb
|
154
|
+
- spec/spec_ui_navigation_bar.rb
|
149
155
|
- spec/spec_ui_search_bar.rb
|
150
156
|
- spec/spec_ui_segmented_control.rb
|
151
157
|
- spec/spec_ui_switch.rb
|