atspi_app_driver 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +5 -0
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/lib/atspi_app_driver.rb +4 -23
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d96669dfa5f95113fbfda9be3163f59a9ec820fa
|
4
|
+
data.tar.gz: ee2a81cf4cac239df5693aa8eefe7e59256a98fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0b4bf649a0a2d588490c7cbac6efa9b4e45bd8f4e83fe625f4108ea9ca1a81034974af27d86542ed10c085dc1b7a72d492d2d379b5f8d37e9dae43206e5f3ae
|
7
|
+
data.tar.gz: 25ffcfc815d52b1ef6e6308c514c99344e8a926a60c8237346c03f9e3aa753cb4226ff2599a3b500163d4d09afdc0bf291b304ba4e68b498d0ff63028ddd4ca7
|
data/Changelog.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Atspi App Driver
|
2
2
|
|
3
|
-
Test driver for the Atspi-enabled applications. Takes care of boot
|
4
|
-
shutdown, and provides a handle on the GUI's main UI frame.
|
3
|
+
Test driver for the Atspi-enabled applications using GirFFI. Takes care of boot
|
4
|
+
and shutdown, and provides a handle on the GUI's main UI frame.
|
5
5
|
|
6
6
|
## Usage
|
7
7
|
|
data/lib/atspi_app_driver.rb
CHANGED
@@ -1,26 +1,7 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
module Atspi
|
4
|
-
class << self
|
5
|
-
def const_missing(name)
|
6
|
-
init
|
7
|
-
if const_defined?(name)
|
8
|
-
const_get(name)
|
9
|
-
else
|
10
|
-
super
|
11
|
-
end
|
12
|
-
end
|
1
|
+
require 'gir_ffi'
|
13
2
|
|
14
|
-
|
15
|
-
|
16
|
-
remove_method(:init)
|
17
|
-
remove_method(:const_missing)
|
18
|
-
end
|
19
|
-
loader = GObjectIntrospection::Loader.new(self)
|
20
|
-
loader.load('Atspi')
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
3
|
+
GirFFI.setup :Atspi
|
4
|
+
Atspi.load_class :Accessible
|
24
5
|
|
25
6
|
# Utility monkey-patches for the Atspi::Accessible class
|
26
7
|
module AtspiAccessiblePatches
|
@@ -111,7 +92,7 @@ class AtspiAppDriver
|
|
111
92
|
raise "Frame has unexpected role #{role.inspect}" unless role == :frame
|
112
93
|
|
113
94
|
wait_for('frame to be focused', 10) do
|
114
|
-
frame.
|
95
|
+
frame.get_state_set.get_states.to_a.include? :active
|
115
96
|
end
|
116
97
|
|
117
98
|
frame
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atspi_app_driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: gir_ffi
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.11.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.11.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,47 +39,47 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: gir_ffi-gtk
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.11.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.11.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '5.5'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '5.5'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '12.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '12.0'
|
83
83
|
description:
|
84
84
|
email:
|
85
85
|
- matijs@matijs.net
|
@@ -112,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.6.
|
115
|
+
rubygems_version: 2.6.13
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
|
-
summary: Test
|
118
|
+
summary: Test GirFFI-based applications using Atspi
|
119
119
|
test_files: []
|