@@ -719,54 +719,4 @@ describe('tab-container', function () {
719719 assert . deepStrictEqual ( panels . map ( isHidden ) , [ false , true , true ] , 'First panel is visible' )
720720 } )
721721 } )
722-
723- describe ( 'with custom tablist-tab-wrapper' , function ( ) {
724- beforeEach ( function ( ) {
725- document . body . innerHTML = `
726- <tab-container>
727- <div slot="tablist-tab-wrapper">
728- <div role="tablist">
729- <button type="button" role="tab">Tab one</button>
730- <button type="button" role="tab" aria-selected="true">Tab two</button>
731- <button type="button" role="tab">Tab three</button>
732- </div>
733- </div>
734- <div role="tabpanel" hidden>
735- Panel 1
736- </div>
737- <div role="tabpanel">
738- Panel 2
739- </div>
740- <div role="tabpanel" hidden data-tab-container-no-tabstop>
741- Panel 3
742- </div>
743- </tab-container>
744- `
745- tabs = Array . from ( document . querySelectorAll ( 'button' ) )
746- panels = Array . from ( document . querySelectorAll ( '[role="tabpanel"]' ) )
747- } )
748-
749- afterEach ( function ( ) {
750- // Check to make sure we still have accessible markup after the test finishes running.
751- expect ( document . body ) . to . be . accessible ( )
752-
753- document . body . innerHTML = ''
754- } )
755-
756- it ( 'has accessible markup' , function ( ) {
757- expect ( document . body ) . to . be . accessible ( )
758- } )
759-
760- it ( 'the second tab is still selected' , function ( ) {
761- assert . deepStrictEqual ( tabs . map ( isSelected ) , [ false , true , false ] , 'Second tab is selected' )
762- assert . deepStrictEqual ( panels . map ( isHidden ) , [ true , false , true ] , 'Second panel is visible' )
763- } )
764-
765- it ( 'selects the clicked tab' , function ( ) {
766- tabs [ 0 ] . click ( )
767-
768- assert . deepStrictEqual ( tabs . map ( isSelected ) , [ true , false , false ] , 'First tab is selected' )
769- assert . deepStrictEqual ( panels . map ( isHidden ) , [ false , true , true ] , 'First panel is visible' )
770- } )
771- } )
772722} )
0 commit comments