root/lang/ruby/ruwin/test/ruwin/test_combo_box.rb @ 28665

Revision 28665, 0.9 kB (checked in by isaisstillalive, 4 years ago)
  • ComboBox::Dropdownが親クラスのスタイルを引き継いでしまい、CBS_SIMPLE(1)|CBS_DROPDOWN(2)でCBS_DROPDOWNLIST(3)になってしまっていたのを修正。
Line 
1require File.expand_path(File.join(File.dirname(__FILE__), "..", "helper"))
2require "ruwin"
3require "ruwin/combo_box"
4require "testm_list_box"
5
6class TestRuwinComboBox < Test::Unit::TestCase
7  include Ruwin::Const::ComboBox
8  include TestModuleListBox
9  TARGET_CLASS = Ruwin::ComboBox
10 
11  def test_classname
12    assert_equal "COMBOBOX", @listbox.classname
13  end
14 
15  def test_style
16    assert_equal CBS_SIMPLE, (@listbox.style&(CBS_SIMPLE|CBS_DROPDOWN|CBS_DROPDOWNLIST))
17  end
18end
19
20class TestRuwinComboBoxDropdown < Test::Unit::TestCase
21  include Ruwin::Const::ComboBox
22  include TestModuleListBox
23  TARGET_CLASS = Ruwin::ComboBox::Dropdown
24 
25  def test_classname
26    assert_equal "COMBOBOX", @listbox.classname
27  end
28 
29  def test_style
30    assert_equal CBS_DROPDOWN, (@listbox.style&(CBS_SIMPLE|CBS_DROPDOWN|CBS_DROPDOWNLIST))
31  end
32end
Note: See TracBrowser for help on using the browser.