Sha256: db2effe5126b65b86db4408fbfc2a5a6eee96380a83a0e29e1147c7f758eeaaa
Contents?: true
Size: 1.2 KB
Versions: 4
Compression:
Stored size: 1.2 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
win-0.1.27 | spec/win/gui/dialog_spec.rb |
win-0.1.26 | spec/win/gui/dialog_spec.rb |
win-0.1.22 | spec/win/gui/dialog_spec.rb |
win-0.1.18 | spec/win/gui/dialog_spec.rb |