lib/capybara/spec/views/with_html.erb in capybara-0.4.0 vs lib/capybara/spec/views/with_html.erb in capybara-0.4.1.rc

- old
+ new

@@ -1,17 +1,25 @@ <h1>This is a test</h1> -<p id="first"> +<h2 class="no text"></h2> +<h2 class="no text"></h2> +<h2 class="head" id="h2one">Header Class Test One</h2> +<h2 class="head" id="h2two">Header Class Test Two</h2> +<h2 class="head">Header Class Test Three</h2> +<h2 class="head">Header Class Test Four</h2> +<h2 class="head">Header Class Test Five</h2> + +<p class="para" id="first"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut <a href="/with_simple_html" title="awesome title" class="simple">labore</a> et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation <a href="/foo" id="foo">ullamco</a> laboris nisi ut aliquip ex ea commodo consequat. - <a href="/with_simple_html"><img src="http://www.foobar.sun/dummy_image.jpg" width="20" height="20" alt="awesome image" /></a> + <a href="/with_simple_html"><img width="20" height="20" alt="awesome image" /></a> </p> -<p id="second"> +<p class="para" id="second"> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat <a href="/redirect" id="red">Redirect</a> pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia text with whitespace @@ -31,21 +39,29 @@ <a href="#anchor">Anchor</a> <a href="/with_simple_html#anchor">Anchor on different page</a> <a href="/with_html#anchor">Anchor on same page</a> <input type="text" value="" id="test_field"> <input type="text" checked="checked" id="checked_field"> - <a href="/redirect"><img src="http://www.foobar.sun/dummy_image.jpg" width="20" height="20" alt="very fine image" /></a> - <a href="/with_simple_html"><img src="http://www.foobar.sun/dummy_image.jpg" width="20" height="20" alt="fine image" /></a> + <a href="/redirect"><img width="20" height="20" alt="very fine image" /></a> + <a href="/with_simple_html"><img width="20" height="20" alt="fine image" /></a> <a href="?query_string=true">Naked Query String</a> <% if params[:query_string] %> <em>Query String sent</em> <% end %> </p> <div id="hidden" style="display: none;"> <div id="hidden_via_ancestor">Inside element with hidden ancestor</div> <a href="/with_simple_html" title="awesome title" class="simple">hidden link</a> +</div> + +<div style="display: none;"> + <a class="visibility">hidden link</a> +</div> + +<div> + <a class="visibility">visible link</a> </div> <ul> <li id="john_monkey">Monkey John</li> <li id="paul_monkey">Monkey Paul</li>