Skip to content
Permalink
Browse files

Accordion tests: Check for a specific height in heightStyle: content …

…tests.
  • Loading branch information...
scottgonzalez committed May 28, 2012
1 parent 359d0ea commit 2662edf7393d2fbe594b22f6294e14725847a8e8
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/unit/accordion/accordion_options.js
@@ -368,9 +368,9 @@ test( "{ heightStyle: 'content' }", function() {
sizes = element.find( ".ui-accordion-content" ).map(function() {
return $( this ).height();
}).get();
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 ] );
equal( sizes[ 0 ], 75 );
equal( sizes[ 1 ], 105 );
equal( sizes[ 2 ], 45 );
});

test( "{ heightStyle: 'fill' }", function() {

0 comments on commit 2662edf

Please sign in to comment.
You can’t perform that action at this time.