diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-12 16:44:37 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-12 16:44:37 +0200 |
commit | f7c68244a0ee08fbd0bd2a9e4bc5487ea95123ba (patch) | |
tree | ca21635583767a569331fb296c4dfa58fbedd7e9 | |
parent | ad6b4624b0d401568556eb7a8494e5321c43b75f (diff) | |
download | jquery-ui-f7c68244a0ee08fbd0bd2a9e4bc5487ea95123ba.tar.gz jquery-ui-f7c68244a0ee08fbd0bd2a9e4bc5487ea95123ba.zip |
Accordion unit tests: Cleaned and fixed destroy-method test, working around html rendering inconsistencies
-rw-r--r-- | tests/unit/accordion/accordion.html | 6 | ||||
-rw-r--r-- | tests/unit/accordion/accordion_methods.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html index 3badebda9..9be9ee5c1 100644 --- a/tests/unit/accordion/accordion.html +++ b/tests/unit/accordion/accordion.html @@ -55,7 +55,7 @@ <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 @@ </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 @@ </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> diff --git a/tests/unit/accordion/accordion_methods.js b/tests/unit/accordion/accordion_methods.js index f2ed8dadf..85f037a55 100644 --- a/tests/unit/accordion/accordion_methods.js +++ b/tests/unit/accordion/accordion_methods.js @@ -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 ); }); |