unittests/selectbox_test.rb in firewatir-1.6.6.rc1 vs unittests/selectbox_test.rb in firewatir-1.6.6.rc2
- old
+ new
@@ -117,11 +117,19 @@
assert_equal( browser.select_list(:index, index).type , l.type )
assert_equal( browser.select_list(:index, index).value , l.value )
index+=1
end
assert_equal( index-1, browser.select_lists.length)
- # Bug Fix 25
- browser.select_lists.each { |list| puts list.getAllContents() }
+ # Bug Fix 25
+ values = [
+ ["Option 1", "Option 2", "Option 3", "Option 4"],
+ ["Option 1", "Option 2", "Option 3", "Option 4", "Option 5", "Option 6"],
+ ["Option 1", "Option 2", "Option 3", "Option 4"],
+ ["Option 1", "Option 2"],
+ ["Option 1", "Option 2"]]
+ browser.select_lists.each_with_index do |list, index|
+ assert_equal(values[index], list.getAllContents())
+ end
end
end
class TC_Select_Options < Test::Unit::TestCase
tags :fails_on_ie