@@ -590,31 +590,6 @@ function cellMutationScenario(
590590 } ;
591591}
592592
593- /** Table-scoped mutation in a session: uses --table-node-id instead of --node-id. */
594- function tableScopedMutationScenario (
595- op : string ,
596- extraArgs : string [ ] ,
597- ) : ( harness : ConformanceHarness ) => Promise < ScenarioInvocation > {
598- return async ( harness ) => {
599- const label = `table-${ op . replace ( / \. / g, '-' ) } ` ;
600- const stateDir = await harness . createStateDir ( `${ label } -success` ) ;
601- const { tableNodeId, sessionId } = await harness . createTableFixture ( stateDir , label ) ;
602- return {
603- stateDir,
604- args : [
605- ...commandTokens ( `doc.${ op } ` as CliOperationId ) ,
606- '--session' ,
607- sessionId ,
608- '--table-node-id' ,
609- tableNodeId ,
610- ...extraArgs ,
611- '--out' ,
612- harness . createOutputPath ( `${ label } -out` ) ,
613- ] ,
614- } ;
615- } ;
616- }
617-
618593function tocMutationScenario (
619594 op : string ,
620595 extraArgs : string [ ] ,
@@ -2983,9 +2958,9 @@ export const SUCCESS_SCENARIOS = {
29832958 'doc.tables.split' : tableMutationScenario ( 'tables.split' , [ '--at-row-index' , '1' ] ) ,
29842959 'doc.tables.convertToText' : tableMutationScenario ( 'tables.convertToText' , [ '--delimiter' , 'tab' ] ) ,
29852960 'doc.tables.setLayout' : tableMutationScenario ( 'tables.setLayout' , [ '--alignment' , 'center' ] ) ,
2986- 'doc.tables.insertRow' : tableScopedMutationScenario ( 'tables.insertRow' , [ '--row-index' , '0' , '--position' , 'below' ] ) ,
2987- 'doc.tables.deleteRow' : tableScopedMutationScenario ( 'tables.deleteRow' , [ '--row-index' , '0' ] ) ,
2988- 'doc.tables.setRowHeight' : tableScopedMutationScenario ( 'tables.setRowHeight' , [
2961+ 'doc.tables.insertRow' : tableMutationScenario ( 'tables.insertRow' , [ '--row-index' , '0' , '--position' , 'below' ] ) ,
2962+ 'doc.tables.deleteRow' : tableMutationScenario ( 'tables.deleteRow' , [ '--row-index' , '0' ] ) ,
2963+ 'doc.tables.setRowHeight' : tableMutationScenario ( 'tables.setRowHeight' , [
29892964 '--row-index' ,
29902965 '0' ,
29912966 '--height-pt' ,
@@ -2994,19 +2969,19 @@ export const SUCCESS_SCENARIOS = {
29942969 'atLeast' ,
29952970 ] ) ,
29962971 'doc.tables.distributeRows' : tableMutationScenario ( 'tables.distributeRows' , [ ] ) ,
2997- 'doc.tables.setRowOptions' : tableScopedMutationScenario ( 'tables.setRowOptions' , [
2972+ 'doc.tables.setRowOptions' : tableMutationScenario ( 'tables.setRowOptions' , [
29982973 '--row-index' ,
29992974 '0' ,
30002975 '--allow-break-across-pages' ,
30012976 ] ) ,
3002- 'doc.tables.insertColumn' : tableScopedMutationScenario ( 'tables.insertColumn' , [
2977+ 'doc.tables.insertColumn' : tableMutationScenario ( 'tables.insertColumn' , [
30032978 '--column-index' ,
30042979 '0' ,
30052980 '--position' ,
30062981 'right' ,
30072982 ] ) ,
3008- 'doc.tables.deleteColumn' : tableScopedMutationScenario ( 'tables.deleteColumn' , [ '--column-index' , '0' ] ) ,
3009- 'doc.tables.setColumnWidth' : tableScopedMutationScenario ( 'tables.setColumnWidth' , [
2983+ 'doc.tables.deleteColumn' : tableMutationScenario ( 'tables.deleteColumn' , [ '--column-index' , '0' ] ) ,
2984+ 'doc.tables.setColumnWidth' : tableMutationScenario ( 'tables.setColumnWidth' , [
30102985 '--column-index' ,
30112986 '0' ,
30122987 '--width-pt' ,
@@ -3015,7 +2990,7 @@ export const SUCCESS_SCENARIOS = {
30152990 'doc.tables.distributeColumns' : tableMutationScenario ( 'tables.distributeColumns' , [ ] ) ,
30162991 'doc.tables.insertCell' : cellMutationScenario ( 'tables.insertCell' , [ '--mode' , 'shiftRight' ] ) ,
30172992 'doc.tables.deleteCell' : cellMutationScenario ( 'tables.deleteCell' , [ '--mode' , 'shiftLeft' ] ) ,
3018- 'doc.tables.mergeCells' : tableScopedMutationScenario ( 'tables.mergeCells' , [
2993+ 'doc.tables.mergeCells' : tableMutationScenario ( 'tables.mergeCells' , [
30192994 '--start-json' ,
30202995 JSON . stringify ( { rowIndex : 0 , columnIndex : 0 } ) ,
30212996 '--end-json' ,
0 commit comments