]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Improve unit test to get consistent results on mobile devices
authorjzaefferer <joern.zaefferer@gmail.com>
Sat, 26 Feb 2011 10:48:56 +0000 (11:48 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Sat, 26 Feb 2011 10:48:56 +0000 (11:48 +0100)
tests/unit/accordion/accordio.html
tests/unit/accordion/accordion.html
tests/unit/accordion/accordion_deprecated.js
tests/unit/accordion/accordion_options.js

index 22d88e90dc50033f01a4fac850a19ce6dcbe1eac..c75b52044d56729600e76176adc22af06aace974 100644 (file)
@@ -57,7 +57,7 @@
        <script src="../swarminject.js"></script>
        <style>
        #qunit-fixture { font-size: 10pt; font-family: "trebuchet ms", verdana, arial; }
-       #list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; }
+       #list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; line-height: 15px; }
        </style>
 </head>
 <body>
index 8eed650732e9434989e947e6e407ee64f92b56f9..541fb4de01f9c5b93aff8b0440ebe7a2ea98ed11 100644 (file)
@@ -59,7 +59,7 @@
        <script src="../swarminject.js"></script>
        <style>
        #qunit-fixture { font-size: 10pt; font-family: "trebuchet ms", verdana, arial; }
-       #list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; }
+       #list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; line-height: 15px; }
        </style>
 </head>
 <body>
index 07974e75e45669778b0c2bf8c12aa46ca139113e..636404d18da83e766ab957c4d6df7a8ce0f858a2 100644 (file)
@@ -104,7 +104,7 @@ test("{ autoHeight: false }", function() {
        accordion.find(".ui-accordion-content").each(function() {
                sizes.push($(this).height());
        });
-       ok( sizes[0] >= 70 && sizes[0] <= 90, "was " + sizes[0] );
+       ok( sizes[0] >= 70 && sizes[0] <= 105, "was " + sizes[0] );
        ok( sizes[1] >= 98 && sizes[1] <= 126, "was " + sizes[1] );
        ok( sizes[2] >= 42 && sizes[2] <= 54, "was " + sizes[2] );
 });
index 42cbb495c711374bc54984960b31323221c08073..3796d80de248582eb70dc5d9aca970f75885dd23 100644 (file)
@@ -183,7 +183,7 @@ test( "{ heightStyle: 'content' }", function() {
        var sizes = ac.find( ".ui-accordion-content" ).map(function() {
                return $( this ).height();
        }).get();
-       ok( sizes[ 0 ] >= 70 && sizes[ 0 ] <= 90, "was " + sizes[ 0 ] );
+       ok( sizes[ 0 ] >= 70 && sizes[ 0 ] <= 105, "was " + sizes[ 0 ] );
        ok( sizes[ 1 ] >= 98 && sizes[ 1 ] <= 126, "was " + sizes[ 1 ] );
        ok( sizes[ 2 ] >= 42 && sizes[ 2 ] <= 54, "was " + sizes[ 2 ] );
 });