From 63ed4dccceab4a4ed699fa6a88c5d29e68cf6bef Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Sat, 20 Mar 2010 14:32:06 +0000 Subject: [PATCH] normalize margin/padding on test markup to get reliable height results --- tests/unit/accordion/accordion.html | 2 ++ tests/unit/accordion/accordion_options.js | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html index 70f650132..a7142250e 100644 --- a/tests/unit/accordion/accordion.html +++ b/tests/unit/accordion/accordion.html @@ -25,6 +25,8 @@ diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js index 237ff40d3..0782b4bb7 100644 --- a/tests/unit/accordion/accordion_options.js +++ b/tests/unit/accordion/accordion_options.js @@ -116,9 +116,9 @@ test("{ fillSpace: false }, default", function() { test("{ fillSpace: true }", function() { $("#navigationWrapper").height(500); $('#navigation').accordion({ fillSpace: true }); - equals( $('#navigation > li:eq(0) > ul').height(), 281 ); - equals( $('#navigation > li:eq(1) > ul').height(), 281 ); - equals( $('#navigation > li:eq(2) > ul').height(), 281 ); + equals( $('#navigation > li:eq(0) > ul').height(), 362 ); + equals( $('#navigation > li:eq(1) > ul').height(), 362 ); + equals( $('#navigation > li:eq(2) > ul').height(), 362 ); }); test("{ header: '> li > :first-child,> :not(li):even' }, default", function() { -- 2.39.5