uia 0.0.7 → 0.0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ === Version 0.0.7.1 / 2013-11-01
2
+ * Bug Fixes
3
+ * Fixes issue with ComboBox controls for Selection#selection_items
4
+
1
5
  === Version 0.0.7 / 2013-11-01
2
6
  * Enhancements
3
7
  * added a base implementation for the Window pattern
data/README.md CHANGED
@@ -23,9 +23,7 @@ Getting started with `uia` is easy. Simply require `uia` and then include the `U
23
23
  ```ruby
24
24
  require 'uia'
25
25
 
26
- include Uia
27
-
28
- main_window = find_element id: 'MainFormWindow'
26
+ main_window = Uia.find_element id: 'MainFormWindow'
29
27
 
30
28
  # returns all elements under main_window that are of control type button
31
29
  main_window.select(control_type: :button)
@@ -53,13 +53,13 @@
53
53
  <Optimization>Disabled</Optimization>
54
54
  <PreprocessorDefinitions>WIN32;_VARIADIC_MAX=10;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
55
55
  <PrecompiledHeader>Use</PrecompiledHeader>
56
- <AdditionalIncludeDirectories>C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll.Test\vendor\gmock\include;C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll;C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll.Test\vendor\gtest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
56
+ <AdditionalIncludeDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\include;$(SolutionDir)UiaDll;$(SolutionDir)UiaDll.Test\vendor\gtest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
57
57
  </ClCompile>
58
58
  <Link>
59
59
  <GenerateDebugInformation>true</GenerateDebugInformation>
60
60
  <AdditionalDependencies>gtestd.lib;gmockd.lib</AdditionalDependencies>
61
61
  <SubSystem>Console</SubSystem>
62
- <AdditionalLibraryDirectories>C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll.Test\vendor\gmock\lib;C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll.Test\vendor\gtest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
62
+ <AdditionalLibraryDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\lib;$(SolutionDir)UiaDll.Test\vendor\gtest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
63
63
  </Link>
64
64
  <PostBuildEvent>
65
65
  <Command>$(TargetPath)</Command>
@@ -70,13 +70,13 @@
70
70
  <WarningLevel>Level3</WarningLevel>
71
71
  <PreprocessorDefinitions>WIN32;_VARIADIC_MAX=10;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
72
72
  <PrecompiledHeader>Use</PrecompiledHeader>
73
- <AdditionalIncludeDirectories>C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll.Test\vendor\gmock\include;C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll;C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll.Test\vendor\gtest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
73
+ <AdditionalIncludeDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\include;$(SolutionDir)UiaDll;$(SolutionDir)UiaDll.Test\vendor\gtest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
74
74
  </ClCompile>
75
75
  <Link>
76
76
  <GenerateDebugInformation>true</GenerateDebugInformation>
77
77
  <AdditionalDependencies>gtest.lib;gmock.lib</AdditionalDependencies>
78
78
  <SubSystem>Console</SubSystem>
79
- <AdditionalLibraryDirectories>C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll.Test\vendor\gmock\lib;C:\Users\Levi\git\northwoods\uia\ext\UiaDll\UiaDll.Test\vendor\gtest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
79
+ <AdditionalLibraryDirectories>$(SolutionDir)UiaDll.Test\vendor\gmock\lib;$(SolutionDir)UiaDll.Test\vendor\gtest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
80
80
  </Link>
81
81
  <PostBuildEvent>
82
82
  <Command>$(TargetPath)</Command>
@@ -2,7 +2,7 @@ module Uia
2
2
  module Patterns
3
3
  module Selection
4
4
  def selection_items
5
- descendants.map {|e| e.as :selection_item }
5
+ select(pattern: :selection_item).map {|e| e.as :selection_item }
6
6
  end
7
7
 
8
8
  def multi_select?
@@ -1,3 +1,3 @@
1
1
  module Uia
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.7.1'
3
3
  end
@@ -3,6 +3,7 @@ require 'spec_helper'
3
3
  describe Uia::Patterns::Selection do
4
4
  let(:main) { Uia.find_element id: 'MainFormWindow' }
5
5
  Given(:select_list) { main.find(id: 'FruitListBox').as :selection }
6
+ Given(:combo_box) { main.find(id: 'FruitsComboBox').as :selection }
6
7
 
7
8
  context 'properties' do
8
9
  context '#multi_select?' do
@@ -16,7 +17,7 @@ describe Uia::Patterns::Selection do
16
17
  context '#selection_items' do
17
18
  let(:respond_to_selections) { lambda { |e| e.respond_to? :add_to_selection } }
18
19
 
19
- Then { select_list.selection_items.map(&:name) == ['Apple', 'Orange', 'Mango'] }
20
+ Then { combo_box.selection_items.map(&:name) == ['Apple', 'Caimito', 'Coconut', 'Orange', 'Passion Fruit'] }
20
21
  Then { select_list.selection_items.all?(&respond_to_selections) == true }
21
22
 
22
23
  context 'multiple levels of #selection_items' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-01 00:00:00.000000000 Z
12
+ date: 2013-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  segments:
241
241
  - 0
242
- hash: 1065096623
242
+ hash: 1001089377
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  none: false
245
245
  requirements:
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  segments:
250
250
  - 0
251
- hash: 1065096623
251
+ hash: 1001089377
252
252
  requirements: []
253
253
  rubyforge_project:
254
254
  rubygems_version: 1.8.24