Skip to content

Commit e14e65f

Browse files
author
Gabriel Schulhof
committed
Revert "Tests: Unit: Popup: Make sure closed popup is not :visible and that open popup is :visible. Tests jquery-archive#5892."
This reverts commit b69b430.
1 parent bb0297b commit e14e65f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/unit/popup/popup_core.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,10 @@
125125
var $popup = $( "#test-popup" ),
126126
link = $( "a#open-test-popup" )[ 0 ];
127127

128-
expect( 17 );
128+
expect( 14 );
129129

130130
$.testHelper.detailedEventCascade([
131131
function() {
132-
deepEqual( $( "#test-popup-popup:visible" ).length, 0, "Test popup is not initially :visible" );
133132
deepEqual( $.mobile.getAttribute( link, "aria-haspopup" ), true, "'aria-haspopup' attribute is set to true on link that opens the popup" );
134133
deepEqual( $.mobile.getAttribute( link, "aria-owns" ), "#test-popup", "'aria-owns' attribute is set to the ID of the owned popup ('#test-popup')" );
135134
deepEqual( $.mobile.getAttribute( link, "aria-expanded" ), false, "'aria-expanded' attribute is set to false when the popup is not open" );
@@ -144,7 +143,6 @@
144143
function( result ) {
145144
var theOffset = $( "#test-popup p" ).offset();
146145

147-
deepEqual( $( "#test-popup-popup:visible" ).length, 1, "Test popup is :visible when open" );
148146
deepEqual( $.mobile.getAttribute( link, "aria-expanded" ), true, "'aria-expanded' attribute is set to true when the popup is open" );
149147
ok( !$popup.parent().prev().hasClass( "ui-screen-hidden" ), "Open popup screen is not hidden" );
150148
ok( $popup.attr( "class" ).match( /( |^)ui-body-[a-z]( |$)/ ), "Open popup has a valid overlay theme" );
@@ -164,7 +162,6 @@
164162
},
165163

166164
function( result) {
167-
deepEqual( $( "#test-popup-popup:visible" ).length, 0, "Test popup is not :visible after it is closed" );
168165
deepEqual( $.mobile.getAttribute( link, "aria-expanded" ), false, "'aria-expanded' attribute is set to false when the popup is not open" );
169166
ok( !$popup.parent().hasClass( "in" ), "Closed popup container does not have class 'in'" );
170167
ok( $popup.parent().prev().hasClass( "ui-screen-hidden" ), "Closed popup screen is hidden" );

0 commit comments

Comments
 (0)