Changeset 28664
- Timestamp:
- 01/19/09 21:14:02 (4 years ago)
- Location:
- lang/ruby/ruwin
- Files:
-
- 3 modified
-
lib/ruwin/combo_box.rb (modified) (1 diff)
-
test/ruwin/test_combo_box.rb (modified) (3 diffs)
-
test/ruwin/test_list_box.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/ruwin/lib/ruwin/combo_box.rb
r28652 r28664 25 25 26 26 class Dropdown < ComboBox 27 STYLE = superclass::STYLE|CBS_DROPDOWN 27 28 end 28 29 end -
lang/ruby/ruwin/test/ruwin/test_combo_box.rb
r28652 r28664 5 5 6 6 class TestRuwinComboBox < Test::Unit::TestCase 7 include Ruwin::Const::ComboBox 7 8 include TestModuleListBox 8 9 TARGET_CLASS = Ruwin::ComboBox … … 11 12 assert_equal "COMBOBOX", @listbox.classname 12 13 end 14 15 def test_style 16 assert_equal CBS_SIMPLE, (@listbox.style&CBS_SIMPLE) 17 end 13 18 end 14 19 15 20 class TestRuwinComboBoxDropdown < Test::Unit::TestCase 21 include Ruwin::Const::ComboBox 16 22 include TestModuleListBox 17 23 TARGET_CLASS = Ruwin::ComboBox::Dropdown … … 20 26 assert_equal "COMBOBOX", @listbox.classname 21 27 end 28 29 def test_style 30 assert_equal CBS_DROPDOWN, (@listbox.style&CBS_DROPDOWN) 31 end 22 32 end -
lang/ruby/ruwin/test/ruwin/test_list_box.rb
r28652 r28664 76 76 77 77 class TestRuwinListBox < Test::Unit::TestCase 78 include Ruwin::Const::ListBox 78 79 include TestModuleListBoxList 79 80 TARGET_CLASS = Ruwin::ListBox … … 82 83 assert_equal "LISTBOX", @listbox.classname 83 84 end 85 86 def test_style 87 assert_equal 0, (@listbox.style&LBS_MULTIPLESEL) 88 end 84 89 end 85 90 86 91 class TestRuwinListBoxDropdown < Test::Unit::TestCase 92 include Ruwin::Const::ComboBox 87 93 include TestModuleListBoxList 88 94 TARGET_CLASS = Ruwin::ListBox::Dropdown … … 91 97 assert_equal "COMBOBOX", @listbox.classname 92 98 end 99 100 def test_style 101 assert_equal CBS_DROPDOWNLIST, (@listbox.style&CBS_DROPDOWNLIST) 102 end 93 103 end 94 104 95 105 class TestRuwinListBoxMultiple < Test::Unit::TestCase 106 include Ruwin::Const::ListBox 96 107 include TestModuleListBox 97 108 TARGET_CLASS = Ruwin::ListBox::Multiple … … 99 110 def test_classname 100 111 assert_equal "LISTBOX", @listbox.classname 112 end 113 114 def test_style 115 assert_equal LBS_MULTIPLESEL, (@listbox.style&LBS_MULTIPLESEL) 101 116 end 102 117
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)