]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion unit tests: Cleaned and fixed destroy-method test, working around html...
authorjzaefferer <joern.zaefferer@gmail.com>
Mon, 12 Apr 2010 14:44:37 +0000 (16:44 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Mon, 12 Apr 2010 14:44:37 +0000 (16:44 +0200)
tests/unit/accordion/accordion.html
tests/unit/accordion/accordion_methods.js

index 3badebda9629c61092463f72b1f1a1b0e8180efb..9be9ee5c1e6cbeb96756f4388810d5430c2b5f29 100644 (file)
@@ -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>
index f2ed8dadfcb54ab0fc5bda57637bbdc59fc178ac..85f037a553f9e6f5c5bfbd3a182d0c82117b767a 100644 (file)
@@ -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 );
 });