]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion unit tests: One more height-testing hotfix for Safari 3.x
authorjzaefferer <joern.zaefferer@gmail.com>
Tue, 13 Apr 2010 08:36:04 +0000 (10:36 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Tue, 13 Apr 2010 08:36:04 +0000 (10:36 +0200)
tests/unit/accordion/accordion_options.js

index 31aabc0d11010f5020fd2787d732ec019fa1c778..8abbd978645bd26ae45c8f467cd1158b44ebb5b8 100644 (file)
@@ -73,11 +73,11 @@ test("{ autoHeight: false }", function() {
        var accordion = $('#navigation').accordion({ autoHeight: false });
        var sizes = [];
        accordion.find(".ui-accordion-content").each(function() {
-               sizes.push($(this).outerHeight());
+               sizes.push($(this).height());
        });
-       ok( sizes[0] >= 70 && sizes[0] <= 90 );
-       ok( sizes[1] >= 98 && sizes[1] <= 126 );
-       ok( sizes[2] >= 54 && sizes[2] <= 54 );
+       ok( sizes[0] >= 70 && sizes[0] <= 90, "was " + sizes[0] );
+       ok( sizes[1] >= 98 && sizes[1] <= 126, "was " + sizes[1] );
+       ok( sizes[2] >= 54 && sizes[2] <= 54, "was " + sizes[2] );
 });
 
 test("{ collapsible: false }, default", function() {