|
Revision 28665, 0.9 kB
(checked in by isaisstillalive, 4 years ago)
|
- ComboBox::Dropdownが親クラスのスタイルを引き継いでしまい、CBS_SIMPLE(1)|CBS_DROPDOWN(2)でCBS_DROPDOWNLIST(3)になってしまっていたのを修正。
|
| Line | |
|---|
| 1 | require File.expand_path(File.join(File.dirname(__FILE__), "..", "helper"))
|
|---|
| 2 | require "ruwin"
|
|---|
| 3 | require "ruwin/combo_box"
|
|---|
| 4 | require "testm_list_box"
|
|---|
| 5 |
|
|---|
| 6 | class 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
|
|---|
| 18 | end
|
|---|
| 19 |
|
|---|
| 20 | class 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
|
|---|
| 32 | end |
|---|