@@ -882,6 +882,24 @@ QUnit.module('Pane sizing', moduleConfig, () => {
882882 { targetButton : 'prev' , resizeHandleIndex : 0 , expectedLayout : [ '10.1626' , '44.9187' , '44.9187' ] } ,
883883 { targetButton : 'next' , resizeHandleIndex : 0 , expectedLayout : [ '27.5407' , '27.5407' , '44.9187' ] } ,
884884 ]
885+ } ,
886+ {
887+ items : [ { collapsible : true , collapsedSize : 50 , size : 100 , minSize : 100 , maxSize : 100 } , { collapsible : true , size : 100 } ] ,
888+ scenarios : [
889+ { targetButton : 'prev' , resizeHandleIndex : 0 , expectedLayout : [ '5' , '95' ] } ,
890+ { targetButton : 'next' , resizeHandleIndex : 0 , expectedLayout : [ '10.0806' , '89.9194' ] } ,
891+ { targetButton : 'next' , resizeHandleIndex : 0 , expectedLayout : [ '100' , '0' ] } ,
892+ { targetButton : 'prev' , resizeHandleIndex : 0 , expectedLayout : [ '10.0806' , '89.9194' ] } ,
893+ ] ,
894+ } ,
895+ {
896+ items : [ { collapsible : true , collapsedSize : 50 , size : 100 , minSize : 100 , maxSize : 100 } , { collapsible : false } , { collapsible : true , size : 100 } ] ,
897+ scenarios : [
898+ { targetButton : 'prev' , resizeHandleIndex : 0 , expectedLayout : [ '5.0813' , '84.7561' , '10.1626' ] } ,
899+ { targetButton : 'next' , resizeHandleIndex : 0 , expectedLayout : [ '10.1626' , '79.6748' , '10.1626' ] } ,
900+ { targetButton : 'next' , resizeHandleIndex : 1 , expectedLayout : [ '10.1626' , '89.8374' , '0' ] } ,
901+ { targetButton : 'prev' , resizeHandleIndex : 1 , expectedLayout : [ '10.1626' , '79.6748' , '10.1626' ] } ,
902+ ] ,
885903 }
886904 ] . forEach ( ( { items, scenarios } ) => {
887905 QUnit . test ( `The pane should restore its size after collapsing and expanding by click, items: ${ JSON . stringify ( items ) } ` , function ( assert ) {
0 commit comments