@@ -89,10 +89,12 @@ QUnit.test( "data", function( assert ) {
8989} ) ;
9090
9191QUnit . test ( "focusable - visible, enabled elements" , function ( assert ) {
92- assert . expect ( 20 ) ;
92+ assert . expect ( 22 ) ;
9393
9494 assert . isNotFocusable ( "#formNoTabindex" , "form" ) ;
9595 assert . isFocusable ( "#formTabindex" , "form with tabindex" ) ;
96+ assert . isFocusable ( "#enabledFieldset input" , "input in enabled fieldset" ) ;
97+ assert . isNotFocusable ( "#disabledFieldset input" , "input in disabled fieldset" ) ;
9698 assert . isFocusable ( "#visibleAncestor-inputTypeNone" , "input, no type" ) ;
9799 assert . isFocusable ( "#visibleAncestor-inputTypeText" , "input, type text" ) ;
98100 assert . isFocusable ( "#visibleAncestor-inputTypeCheckbox" , "input, type checkbox" ) ;
@@ -184,10 +186,12 @@ QUnit.test( "focusable - dimensionless parent with overflow", function( assert )
184186} ) ;
185187
186188QUnit . test ( "tabbable - visible, enabled elements" , function ( assert ) {
187- assert . expect ( 18 ) ;
189+ assert . expect ( 20 ) ;
188190
189191 assert . isNotTabbable ( "#formNoTabindex" , "form" ) ;
190192 assert . isTabbable ( "#formTabindex" , "form with tabindex" ) ;
193+ assert . isTabbable ( "#enabledFieldset input" , "input in enabled fieldset" ) ;
194+ assert . isNotTabbable ( "#disabledFieldset input" , "input in disabled fieldset" ) ;
191195 assert . isTabbable ( "#visibleAncestor-inputTypeNone" , "input, no type" ) ;
192196 assert . isTabbable ( "#visibleAncestor-inputTypeText" , "input, type text" ) ;
193197 assert . isTabbable ( "#visibleAncestor-inputTypeCheckbox" , "input, type checkbox" ) ;
0 commit comments