Skip to content

Commit b012de1

Browse files
committed
Accordion unit tests: Further normalization of styles to get consistent results across browsers
1 parent 8d57aa1 commit b012de1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/unit/accordion/accordion.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525

2626
<style>
2727
#main { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
28-
#main h2 { margin: 0; }
29-
#main ul, #main li { padding: 0; }
28+
#navigation * { margin: 0; padding: 0; font-size: 12px; }
3029
</style>
3130
</head>
3231
<body>

tests/unit/accordion/accordion_options.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ test("{ fillSpace: false }, default", function() {
116116
test("{ fillSpace: true }", function() {
117117
$("#navigationWrapper").height(500);
118118
$('#navigation').accordion({ fillSpace: true });
119-
equals( $('#navigation > li:eq(0) > ul').height(), 362 );
120-
equals( $('#navigation > li:eq(1) > ul').height(), 362 );
121-
equals( $('#navigation > li:eq(2) > ul').height(), 362 );
119+
equals( $('#navigation > li:eq(0) > ul').height(), 446 );
120+
equals( $('#navigation > li:eq(1) > ul').height(), 446 );
121+
equals( $('#navigation > li:eq(2) > ul').height(), 446 );
122122
});
123123

124124
test("{ header: '> li > :first-child,> :not(li):even' }, default", function() {

0 commit comments

Comments
 (0)