unittests/images_xpath_test.rb in firewatir-1.6.6.rc1 vs unittests/images_xpath_test.rb in firewatir-1.6.6.rc2
- old
+ new
@@ -109,10 +109,10 @@
#assert_raises(UnknownObjectException ) { browser.image(:xpath , "//img[@name='no_image_with_this']").hasLoaded? }
#assert_raises(UnknownObjectException ) { browser.image(:xpath , "//img[@id='no_image_with_this']").hasLoaded? }
#assert_raises(UnknownObjectException ) { browser.image(:xpath , "//img[@src='no_image_with_this']").hasLoaded? }
# to string tests -- output should be verified!
- puts browser.image(:xpath , "//img[@name='circle']").to_s
+ assert_equal("name: circle\ntype: \nid: \nvalue: \ndisabled: \nsrc: images/circle.jpg\nheight: 106\nalt: \nwidth: 106", browser.image(:xpath , "//img[@name='circle']").to_s)
end
end