Sha256: 7756ecbf8bce352b57e1e27ba70fb7b8ecf654c6365900b4bb18f917f6b194c8
Contents?: true
Size: 1.79 KB
Versions: 1
Compression:
Stored size: 1.79 KB
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe "HtmlUnit bugs" do before :all do @browser = Browser.new(BROWSER_OPTIONS) end describe "HtmlUnit bug 1968686: https://sourceforge.net/tracker/index.php?func=detail&aid=1968686&group_id=47038&atid=448266" do it "does not raise NativeException: java.lang.StackOverflowError when going to a page where Javascripts prints a <body> tag inside another <body> tag" do lambda { @browser.goto(HTML_DIR + "/bug_javascript_001.html") }.should_not raise_error(NativeException) end end describe "HtmlUnit bug 1968708: https://sourceforge.net/tracker/index.php?func=detail&aid=1968708&group_id=47038&atid=448266" do it "only considers the first attribute if there are duplicate attributes" do @browser.goto(HTML_DIR + "/bug_duplicate_attributes.html") @browser.text_field(:index, 1).id.should == "org_id" end end # disabled for CI - need fix from HtmlUnit # describe "HtmlUnit bug XXXXXX" do # it "returns strings as UTF-8 when there's a charset mismatch between HTTP response header and <meta> tag" do # @browser.goto(TEST_HOST + "/charset_mismatch") # @browser.h1(:index, 1).text.should == "\303\270" # end # end it "evaluates <script> tags injected in the DOM through JQuery's replaceWith() - fixed in rev. 3598" do @browser.goto(HTML_DIR + "/jquery.html") @browser.link(:class, 'editLink').click @browser.div(:id, 'content').text.should == "typeof update: function" end it "doesn't return the TinyMCE DOM when executing javascript functions" do @browser.goto(HTML_DIR + "/tiny_mce.html") @browser.text.should include("Beskrivelse") @browser.checkbox(:id, "exemption").set @browser.text.should include("Beskrivelse") end after :all do @browser.close end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caius-celerity-0.0.6.11 | spec/htmlunit_spec.rb |