<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/>
</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/>
</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>
});
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 );
});