Sha256: fbaa3931b5d28848064250512632316e8e806fc18b913d9b08d7901ae7e160d3

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 KB

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require 'win/gui/input'
#require 'win/gui/window'

module WinWindowTest

  include WinTestApp
  include Win::Gui::Dialog

  describe Win::Gui::Dialog do

    describe '#get_dlg_item' do
      spec{ use{ control_handle = get_dlg_item(handle = 0, item_id = 1) }}

      it 'returns handle to correctly specified control'

    end

    describe Win::Gui::Dialog, ' defines convenience/service methods on top of Windows API' do
#      describe 'dialog' do
#        spec{ use{ dialog( title ='Dialog Title', timeout_sec = 0.001, &any_block)  }}
#
#        it 'finds top-level dialog window by title' do
#          pending 'Some problems (?with timeouts?) leave window open ~half of the runs'
#          test_app do |app|
#            keystroke(VK_ALT, 'F'.ord, 'A'.ord)
#            @found = false
#            dialog('Save As', 0.5) do |dialog_window|
#              @found = true
#              keystroke(VK_ESCAPE)
#              dialog_window
#            end
#            @found.should == true
#          end
#        end
#
#        it 'yields found dialog window to a given block'
#
#      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
win-0.3.5 spec/win/gui/dialog_spec.rb
win-0.3.3 spec/win/gui/dialog_spec.rb
win-0.3.1 spec/win/gui/dialog_spec.rb