aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-03-27 07:42:43 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2010-03-27 07:42:43 +0100
commitb012de18a47607119fc47a49b22ff2376efa8972 (patch)
tree2df85e77395a851f3a0aac39ead36f25eb535423
parent8d57aa18478c1b7e6ac0f7f3f87895000514ddfa (diff)
downloadjquery-ui-b012de18a47607119fc47a49b22ff2376efa8972.tar.gz
jquery-ui-b012de18a47607119fc47a49b22ff2376efa8972.zip
Accordion unit tests: Further normalization of styles to get consistent results across browsers
-rw-r--r--tests/unit/accordion/accordion.html3
-rw-r--r--tests/unit/accordion/accordion_options.js6
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html
index a7142250e..4173ed9f1 100644
--- a/tests/unit/accordion/accordion.html
+++ b/tests/unit/accordion/accordion.html
@@ -25,8 +25,7 @@
<style>
#main { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
- #main h2 { margin: 0; }
- #main ul, #main li { padding: 0; }
+ #navigation * { margin: 0; padding: 0; font-size: 12px; }
</style>
</head>
<body>
diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js
index 0782b4bb7..cc7fc0369 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(), 362 );
- equals( $('#navigation > li:eq(1) > ul').height(), 362 );
- equals( $('#navigation > li:eq(2) > ul').height(), 362 );
+ equals( $('#navigation > li:eq(0) > ul').height(), 446 );
+ equals( $('#navigation > li:eq(1) > ul').height(), 446 );
+ equals( $('#navigation > li:eq(2) > ul').height(), 446 );
});
test("{ header: '> li > :first-child,> :not(li):even' }, default", function() {