unittests/form_test.rb in watir-1.8.1 vs unittests/form_test.rb in watir-1.9.0.rc1

- old
+ new

@@ -44,9 +44,10 @@ tag_method :test_form_outer_html, :fails_on_firefox def test_form_outer_html expected = "\r\n<FORM id=f2 name=test2 action=pass2.html method=get><BR><INPUT type=submit value=Submit> </FORM>" actual = browser.form(:name, 'test2').html + actual.sub!('style=""','') # ie9 adds in a style tag so just strip it out # ignore attributes order by sorting them sorted_expected, sorted_actual = [expected, actual].map! do |html| html.strip.downcase.scan(%r{<form (.*)><br><(.*)> </form>}).flatten. map {|part| part.split(" ").sort.join(" ")}.join("><br><")