Skip to content
Permalink
Browse files

Accordion unit tests: Cleaned and fixed destroy-method test, working …

…around html rendering inconsistencies
  • Loading branch information
jzaefferer committed Apr 12, 2010
1 parent ad6b462 commit f7c68244a0ee08fbd0bd2a9e4bc5487ea95123ba
Showing with 4 additions and 4 deletions.
  1. +3 −3 tests/unit/accordion/accordion.html
  2. +1 −1 tests/unit/accordion/accordion_methods.js
@@ -55,7 +55,7 @@ <h2 id="qunit-userAgent"></h2>
<div>
<div id="list1" class="foo">
<a class="bar">There is one obvious advantage:</a>
<div style="font-style: normal; " class="foo">
<div class="foo">
<p>
You've seen it coming!
<br/>
@@ -65,7 +65,7 @@ <h2 id="qunit-userAgent"></h2>
</p>
</div>
<a class="bar">Now that you've got...</a>
<div style="font-style: normal; " class="foo">
<div class="foo">
<p>
your bear, you have to admit it!
<br/>
@@ -76,7 +76,7 @@ <h2 id="qunit-userAgent"></h2>
</p>
</div>
<a class="bar">Rent one bear, ...</a>
<div style="font-style: normal; " class="foo">
<div class="foo">
<p>
get two for three beer.
</p>
@@ -31,7 +31,7 @@ test("init", function() {
});

test("destroy", function() {
var beforeHtml = $("#list1").parent().html();
var beforeHtml = $("#list1").find("div").css("font-style", "normal").end().parent().html();
var afterHtml = $("#list1").accordion().accordion("destroy").parent().html();
equal( afterHtml, beforeHtml );
});

0 comments on commit f7c6824

Please sign in to comment.
You can’t perform that action at this time.