aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2010-03-20 14:32:06 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2010-03-20 14:32:06 +0000
commit63ed4dccceab4a4ed699fa6a88c5d29e68cf6bef (patch)
tree7dc9911228072f32a8e316fa455c4157d2f99e25 /tests
parent234c6cbfea0fe03d7717c27dd1f703caa1647e2f (diff)
downloadjquery-ui-63ed4dccceab4a4ed699fa6a88c5d29e68cf6bef.tar.gz
jquery-ui-63ed4dccceab4a4ed699fa6a88c5d29e68cf6bef.zip
normalize margin/padding on test markup to get reliable height results
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion.html2
-rw-r--r--tests/unit/accordion/accordion_options.js6
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 @@
<style>
#main { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
+ #main h2 { margin: 0; }
+ #main ul, #main li { padding: 0; }
</style>
</head>
<body>
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() {