Changeset 29227
- Timestamp:
- 01/29/09 16:42:33 (4 years ago)
- Location:
- lang/ruby/ruwin
- Files:
-
- 2 modified
-
lib/ruwin/edit_field.rb (modified) (1 diff)
-
test/ruwin/test_edit_field.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/ruwin/lib/ruwin/edit_field.rb
r29225 r29227 192 192 private 193 193 def count_br physical_first, physical_length 194 string[physical_first, physical_length].split("\r\n").size-1194 (string[physical_first, physical_length]+" ").split("\r").size-1 195 195 end 196 196 -
lang/ruby/ruwin/test/ruwin/test_edit_field.rb
r29145 r29227 30 30 assert_equal [12, 19], @control.get_selection 31 31 end 32 33 34 def test_count_br_half_line_brake 35 @control.string = "caption\r\ncaption\r\ncaption" 36 assert_equal 1, @control.__send__(:count_br, 0, 8) 37 end 38 39 def test_count_br_after_line_brake 40 @control.string = "caption\r\ncaption\r\ncaption" 41 assert_equal 1, @control.__send__(:count_br, 0, 9) 42 end 32 43 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)