mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion unit tests: Cleaned and fixed destroy-method test, working around html rendering inconsistencies
This commit is contained in:
parent
ad6b4624b0
commit
f7c68244a0
@ -55,7 +55,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div id="list1" class="foo">
|
<div id="list1" class="foo">
|
||||||
<a class="bar">There is one obvious advantage:</a>
|
<a class="bar">There is one obvious advantage:</a>
|
||||||
<div style="font-style: normal; " class="foo">
|
<div class="foo">
|
||||||
<p>
|
<p>
|
||||||
You've seen it coming!
|
You've seen it coming!
|
||||||
<br/>
|
<br/>
|
||||||
@ -65,7 +65,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<a class="bar">Now that you've got...</a>
|
<a class="bar">Now that you've got...</a>
|
||||||
<div style="font-style: normal; " class="foo">
|
<div class="foo">
|
||||||
<p>
|
<p>
|
||||||
your bear, you have to admit it!
|
your bear, you have to admit it!
|
||||||
<br/>
|
<br/>
|
||||||
@ -76,7 +76,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<a class="bar">Rent one bear, ...</a>
|
<a class="bar">Rent one bear, ...</a>
|
||||||
<div style="font-style: normal; " class="foo">
|
<div class="foo">
|
||||||
<p>
|
<p>
|
||||||
get two for three beer.
|
get two for three beer.
|
||||||
</p>
|
</p>
|
||||||
|
@ -31,7 +31,7 @@ test("init", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("destroy", 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();
|
var afterHtml = $("#list1").accordion().accordion("destroy").parent().html();
|
||||||
equal( afterHtml, beforeHtml );
|
equal( afterHtml, beforeHtml );
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user