Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
[popup unit tests] Popup no longer has "in" class when open
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed May 21, 2012
1 parent 4899009 commit 6f48d2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/popup/popup_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,10 @@

asyncTest( "Popup opens and closes", function() {

expect( 5 );
expect( 4 );

$( "#test-popup" ).popup( "open" );
setTimeout(function() {
ok( $( "#test-popup" ).parent().hasClass( "in" ), "Open popup container has class 'in'" );
ok( !$( "#test-popup" ).parent().prev().hasClass( "ui-screen-hidden" ), "Open popup screen is not hidden" );
ok( $( "#test-popup" ).parent().attr( "class" ).match( /( |^)ui-body-[a-z]( |$)/ ), "Open popup has a valid overlay theme" );
$( "#test-popup" ).popup( "close" );
Expand Down

0 comments on commit 6f48d2a

Please sign in to comment.