From 9ac6bde8a91f5f41c30fceeee6b98f9ca4bb8a91 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Sat, 26 Feb 2011 11:48:56 +0100 Subject: [PATCH] Accordion: Improve unit test to get consistent results on mobile devices --- tests/unit/accordion/accordio.html | 2 +- tests/unit/accordion/accordion.html | 2 +- tests/unit/accordion/accordion_deprecated.js | 2 +- tests/unit/accordion/accordion_options.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/accordion/accordio.html b/tests/unit/accordion/accordio.html index 22d88e90d..c75b52044 100644 --- a/tests/unit/accordion/accordio.html +++ b/tests/unit/accordion/accordio.html @@ -57,7 +57,7 @@ diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html index 8eed65073..541fb4de0 100644 --- a/tests/unit/accordion/accordion.html +++ b/tests/unit/accordion/accordion.html @@ -59,7 +59,7 @@ diff --git a/tests/unit/accordion/accordion_deprecated.js b/tests/unit/accordion/accordion_deprecated.js index 07974e75e..636404d18 100644 --- a/tests/unit/accordion/accordion_deprecated.js +++ b/tests/unit/accordion/accordion_deprecated.js @@ -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] ); }); diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js index 42cbb495c..3796d80de 100644 --- a/tests/unit/accordion/accordion_options.js +++ b/tests/unit/accordion/accordion_options.js @@ -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 ] ); }); -- 2.39.5