diff --git a/demo/scripts/controlsV2/sidePane/presets/allPresets/listPresets.ts b/demo/scripts/controlsV2/sidePane/presets/allPresets/listPresets.ts index d4a1f060c73..70e3ce6b503 100644 --- a/demo/scripts/controlsV2/sidePane/presets/allPresets/listPresets.ts +++ b/demo/scripts/controlsV2/sidePane/presets/allPresets/listPresets.ts @@ -35,7 +35,7 @@ export const simpleList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -78,7 +78,7 @@ export const simpleList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -130,7 +130,7 @@ export const simpleList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -191,7 +191,7 @@ export const simpleList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -266,7 +266,7 @@ export const simpleList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -307,7 +307,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -346,7 +346,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -385,7 +385,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -424,7 +424,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -472,7 +472,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -520,7 +520,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -568,7 +568,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -625,7 +625,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -682,7 +682,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -739,7 +739,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -769,7 +769,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -808,7 +808,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -856,7 +856,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -904,7 +904,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -943,7 +943,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -973,7 +973,7 @@ export const numberedList: Preset = { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-api/test/modelApi/block/setModelAlignmentTest.ts b/packages/roosterjs-content-model-api/test/modelApi/block/setModelAlignmentTest.ts index e9f695a57fc..cea3870af98 100644 --- a/packages/roosterjs-content-model-api/test/modelApi/block/setModelAlignmentTest.ts +++ b/packages/roosterjs-content-model-api/test/modelApi/block/setModelAlignmentTest.ts @@ -191,7 +191,7 @@ describe('align left', () => { blocks: [para1, para2, para3], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -254,7 +254,7 @@ describe('align left', () => { blocks: [para1, para2, para3], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -369,7 +369,7 @@ describe('align left', () => { blocks: [para1, para2, para3], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { textAlign: 'center' }, @@ -482,7 +482,7 @@ describe('align left', () => { blocks: [para1, para2, para3], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { textAlign: 'end' }, @@ -597,7 +597,7 @@ describe('align left', () => { blocks: [para1, para2, para3], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -717,7 +717,7 @@ describe('align left', () => { blocks: [para1, para2, para3], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -838,7 +838,7 @@ describe('align left', () => { blocks: [para1, para2, para3], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -964,7 +964,7 @@ describe('align left', () => { blocks: [para, para2], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { textAlign: 'justify' }, diff --git a/packages/roosterjs-content-model-api/test/modelApi/block/setModelDirectionTest.ts b/packages/roosterjs-content-model-api/test/modelApi/block/setModelDirectionTest.ts index 0b986bbbbbc..e262d80b6df 100644 --- a/packages/roosterjs-content-model-api/test/modelApi/block/setModelDirectionTest.ts +++ b/packages/roosterjs-content-model-api/test/modelApi/block/setModelDirectionTest.ts @@ -113,7 +113,7 @@ describe('setModelDirection', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, levels: [ { @@ -142,7 +142,7 @@ describe('setModelDirection', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, levels: [ { @@ -178,7 +178,7 @@ describe('setModelDirection', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, levels: [ { @@ -209,7 +209,7 @@ describe('setModelDirection', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, levels: [ { diff --git a/packages/roosterjs-content-model-api/test/modelApi/block/setModelIndentationTest.ts b/packages/roosterjs-content-model-api/test/modelApi/block/setModelIndentationTest.ts index f3b72328752..9cad3b4dc88 100644 --- a/packages/roosterjs-content-model-api/test/modelApi/block/setModelIndentationTest.ts +++ b/packages/roosterjs-content-model-api/test/modelApi/block/setModelIndentationTest.ts @@ -293,7 +293,7 @@ describe('indent', () => { }, ], blocks: [para1, para2, para3], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, ], @@ -355,7 +355,7 @@ describe('indent', () => { }, ], blocks: [para1, para2, para3], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, ], @@ -397,7 +397,7 @@ describe('indent', () => { }, ], blocks: [para2], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, listItem3, @@ -450,7 +450,7 @@ describe('indent', () => { }, ], blocks: [para1, para2], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, { @@ -465,7 +465,7 @@ describe('indent', () => { }, ], blocks: [para3], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, ], @@ -517,7 +517,7 @@ describe('indent', () => { }, ], blocks: [para1, para2], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, { @@ -533,7 +533,7 @@ describe('indent', () => { }, ], blocks: [para3], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, ], @@ -586,7 +586,7 @@ describe('indent', () => { }, ], blocks: [para1], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, { @@ -602,7 +602,7 @@ describe('indent', () => { }, ], blocks: [para2], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, { diff --git a/packages/roosterjs-content-model-api/test/modelApi/block/toggleModelBlockQuoteTest.ts b/packages/roosterjs-content-model-api/test/modelApi/block/toggleModelBlockQuoteTest.ts index 2969ec2145f..824802d3cca 100644 --- a/packages/roosterjs-content-model-api/test/modelApi/block/toggleModelBlockQuoteTest.ts +++ b/packages/roosterjs-content-model-api/test/modelApi/block/toggleModelBlockQuoteTest.ts @@ -635,7 +635,7 @@ describe('toggleModelBlockQuote', () => { levels: [], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -693,7 +693,7 @@ describe('toggleModelBlockQuote', () => { levels: [], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-api/test/modelApi/common/clearModelFormatTest.ts b/packages/roosterjs-content-model-api/test/modelApi/common/clearModelFormatTest.ts index e4a8d230bf5..dfeaf85a8fa 100644 --- a/packages/roosterjs-content-model-api/test/modelApi/common/clearModelFormatTest.ts +++ b/packages/roosterjs-content-model-api/test/modelApi/common/clearModelFormatTest.ts @@ -406,7 +406,7 @@ describe('clearModelFormat', () => { levels: [], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -486,7 +486,7 @@ describe('clearModelFormat', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, format: {}, blocks: [ @@ -512,7 +512,7 @@ describe('clearModelFormat', () => { { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, ]); expect(tables).toEqual([]); @@ -553,7 +553,7 @@ describe('clearModelFormat', () => { format: { fontSize: '20px', }, - isSelected: true, + isSelected: false, }, format: {}, blocks: [ diff --git a/packages/roosterjs-content-model-api/test/modelApi/list/setListTypeTest.ts b/packages/roosterjs-content-model-api/test/modelApi/list/setListTypeTest.ts index aa2084fd99a..2d9c7120c63 100644 --- a/packages/roosterjs-content-model-api/test/modelApi/list/setListTypeTest.ts +++ b/packages/roosterjs-content-model-api/test/modelApi/list/setListTypeTest.ts @@ -89,7 +89,7 @@ describe('indent', () => { fontSize: undefined, textColor: undefined, }, - isSelected: true, + isSelected: false, }, format: {}, }, @@ -149,7 +149,7 @@ describe('indent', () => { fontSize: undefined, textColor: undefined, }, - isSelected: true, + isSelected: false, }, format: {}, }, @@ -191,7 +191,7 @@ describe('indent', () => { blockType: 'BlockGroup', levels: [{ listType: 'OL', format: {}, dataset: {} }], blocks: [para], - formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: true }, + formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: false }, format: {}, }, ], @@ -221,7 +221,7 @@ describe('indent', () => { blockType: 'BlockGroup', levels: [], blocks: [para], - formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: true }, + formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: false }, format: {}, }, ], @@ -275,7 +275,7 @@ describe('indent', () => { blockType: 'BlockGroup', levels: [], blocks: [para], - formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: true }, + formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: false }, format: {}, }, ], @@ -332,7 +332,7 @@ describe('indent', () => { blockType: 'BlockGroup', levels: [{ listType: 'OL', dataset: {}, format: {} }], blocks: [para1], - formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: true }, + formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: false }, format: {}, }, { @@ -343,7 +343,7 @@ describe('indent', () => { { listType: 'OL', dataset: {}, format: {} }, ], blocks: [para2], - formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: true }, + formatHolder: { segmentType: 'SelectionMarker', format: {}, isSelected: false }, format: {}, }, { @@ -375,7 +375,7 @@ describe('indent', () => { fontSize: undefined, textColor: undefined, }, - isSelected: true, + isSelected: false, }, format: {}, }, @@ -438,7 +438,7 @@ describe('indent', () => { fontSize: '10px', textColor: 'black', }, - isSelected: true, + isSelected: false, }, format: { textAlign: 'start', @@ -512,7 +512,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -541,7 +541,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -596,7 +596,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -653,7 +653,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -681,7 +681,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -709,7 +709,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -745,7 +745,7 @@ describe('indent', () => { blockGroupType: 'ListItem', blocks: [para1], levels: [{ listType: 'UL', format: {}, dataset: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, ], @@ -784,7 +784,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -814,7 +814,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -864,7 +864,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -902,7 +902,7 @@ describe('indent', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { diff --git a/packages/roosterjs-content-model-api/test/modelApi/list/setModelListStartNumberTest.ts b/packages/roosterjs-content-model-api/test/modelApi/list/setModelListStartNumberTest.ts index 931d823e51a..5ec49dd766d 100644 --- a/packages/roosterjs-content-model-api/test/modelApi/list/setModelListStartNumberTest.ts +++ b/packages/roosterjs-content-model-api/test/modelApi/list/setModelListStartNumberTest.ts @@ -44,7 +44,7 @@ describe('setModelListStartNumber', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -83,7 +83,7 @@ describe('setModelListStartNumber', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-api/test/modelApi/list/setModelListStyleTest.ts b/packages/roosterjs-content-model-api/test/modelApi/list/setModelListStyleTest.ts index 60551d8149a..ba55eae7dbf 100644 --- a/packages/roosterjs-content-model-api/test/modelApi/list/setModelListStyleTest.ts +++ b/packages/roosterjs-content-model-api/test/modelApi/list/setModelListStyleTest.ts @@ -44,7 +44,7 @@ describe('setModelListStyle', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -83,7 +83,7 @@ describe('setModelListStyle', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-api/test/modelApi/selection/adjustWordSelectionTest.ts b/packages/roosterjs-content-model-api/test/modelApi/selection/adjustWordSelectionTest.ts index 23517eb65c5..2dda9470b5b 100644 --- a/packages/roosterjs-content-model-api/test/modelApi/selection/adjustWordSelectionTest.ts +++ b/packages/roosterjs-content-model-api/test/modelApi/selection/adjustWordSelectionTest.ts @@ -587,7 +587,7 @@ describe('adjustWordSelection', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -617,7 +617,7 @@ describe('adjustWordSelection', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-api/test/publicApi/block/setAlignmentTest.ts b/packages/roosterjs-content-model-api/test/publicApi/block/setAlignmentTest.ts index b44b06d947e..0c3b1c48dc8 100644 --- a/packages/roosterjs-content-model-api/test/publicApi/block/setAlignmentTest.ts +++ b/packages/roosterjs-content-model-api/test/publicApi/block/setAlignmentTest.ts @@ -877,7 +877,7 @@ describe('setAlignment in list', () => { }, ], blocks: [], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, 'center', @@ -917,7 +917,7 @@ describe('setAlignment in list', () => { ], }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, 'left', @@ -953,7 +953,7 @@ describe('setAlignment in list', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -993,7 +993,7 @@ describe('setAlignment in list', () => { ], }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, 'center', @@ -1029,7 +1029,7 @@ describe('setAlignment in list', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1069,7 +1069,7 @@ describe('setAlignment in list', () => { ], }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: { textAlign: 'end', }, @@ -1107,7 +1107,7 @@ describe('setAlignment in list', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1149,7 +1149,7 @@ describe('setAlignment in list', () => { ], }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: { textAlign: 'end', }, @@ -1187,7 +1187,7 @@ describe('setAlignment in list', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { diff --git a/packages/roosterjs-content-model-api/test/publicApi/list/setListStartNumberTest.ts b/packages/roosterjs-content-model-api/test/publicApi/list/setListStartNumberTest.ts index 52aa776c4e0..5bde3faa81b 100644 --- a/packages/roosterjs-content-model-api/test/publicApi/list/setListStartNumberTest.ts +++ b/packages/roosterjs-content-model-api/test/publicApi/list/setListStartNumberTest.ts @@ -71,7 +71,7 @@ describe('setListStartNumber', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -108,7 +108,7 @@ describe('setListStartNumber', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -139,7 +139,7 @@ describe('setListStartNumber', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -166,7 +166,7 @@ describe('setListStartNumber', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: { startNumberOverride: 2 } }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -201,7 +201,7 @@ describe('setListStartNumber', () => { { listType: 'OL', dataset: {}, format: { startNumberOverride: 1 } }, { listType: 'UL', dataset: {}, format: {} }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -231,7 +231,7 @@ describe('setListStartNumber', () => { { listType: 'OL', dataset: {}, format: { startNumberOverride: 1 } }, { listType: 'UL', dataset: {}, format: { startNumberOverride: 2 } }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', diff --git a/packages/roosterjs-content-model-api/test/publicApi/list/setListStyleTest.ts b/packages/roosterjs-content-model-api/test/publicApi/list/setListStyleTest.ts index e54c995400f..4eb27c91217 100644 --- a/packages/roosterjs-content-model-api/test/publicApi/list/setListStyleTest.ts +++ b/packages/roosterjs-content-model-api/test/publicApi/list/setListStyleTest.ts @@ -68,7 +68,7 @@ describe('setListStyle', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -105,7 +105,7 @@ describe('setListStyle', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -136,7 +136,7 @@ describe('setListStyle', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -169,7 +169,7 @@ describe('setListStyle', () => { format: {}, }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -212,7 +212,7 @@ describe('setListStyle', () => { format: {}, }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -250,7 +250,7 @@ describe('setListStyle', () => { format: {}, }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -282,7 +282,7 @@ describe('setListStyle', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -302,7 +302,7 @@ describe('setListStyle', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -323,7 +323,7 @@ describe('setListStyle', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', dataset: {}, format: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -355,7 +355,7 @@ describe('setListStyle', () => { format: {}, }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -381,7 +381,7 @@ describe('setListStyle', () => { format: {}, }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -408,7 +408,7 @@ describe('setListStyle', () => { format: {}, }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', diff --git a/packages/roosterjs-content-model-core/test/corePlugin/copyPaste/deleteEmptyListTest.ts b/packages/roosterjs-content-model-core/test/corePlugin/copyPaste/deleteEmptyListTest.ts index c6e27c35217..5c13f319b09 100644 --- a/packages/roosterjs-content-model-core/test/corePlugin/copyPaste/deleteEmptyListTest.ts +++ b/packages/roosterjs-content-model-core/test/corePlugin/copyPaste/deleteEmptyListTest.ts @@ -63,7 +63,7 @@ describe('deleteEmptyList - when cut', () => { levels: [], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -174,7 +174,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -211,7 +211,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -241,7 +241,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -289,7 +289,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -319,7 +319,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -378,7 +378,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -415,7 +415,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -463,7 +463,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -540,7 +540,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -573,7 +573,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -607,7 +607,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -637,7 +637,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -695,7 +695,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -729,7 +729,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -759,7 +759,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -871,7 +871,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -932,7 +932,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1061,7 +1061,7 @@ describe('deleteEmptyList - when cut', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-dom/lib/modelApi/creators/createListItem.ts b/packages/roosterjs-content-model-dom/lib/modelApi/creators/createListItem.ts index 34cfd2332da..fbad6b221de 100644 --- a/packages/roosterjs-content-model-dom/lib/modelApi/creators/createListItem.ts +++ b/packages/roosterjs-content-model-dom/lib/modelApi/creators/createListItem.ts @@ -15,6 +15,10 @@ export function createListItem( levels: ContentModelListLevel[], format?: ContentModelSegmentFormat ): ContentModelListItem { + const formatHolder = createSelectionMarker(format); + + formatHolder.isSelected = false; + return { blockType: 'BlockGroup', blockGroupType: 'ListItem', @@ -22,7 +26,7 @@ export function createListItem( levels: levels ? levels.map(level => createListLevel(level.listType, level.format, level.dataset)) : [], - formatHolder: createSelectionMarker(format), + formatHolder, format: {}, }; } diff --git a/packages/roosterjs-content-model-dom/test/domToModel/processors/childProcessorTest.ts b/packages/roosterjs-content-model-dom/test/domToModel/processors/childProcessorTest.ts index 64124c3a65e..dd4f8301fc7 100644 --- a/packages/roosterjs-content-model-dom/test/domToModel/processors/childProcessorTest.ts +++ b/packages/roosterjs-content-model-dom/test/domToModel/processors/childProcessorTest.ts @@ -454,7 +454,7 @@ describe('childProcessor', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', format: {}, dataset: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', @@ -503,7 +503,7 @@ describe('childProcessor', () => { blockType: 'BlockGroup', blockGroupType: 'ListItem', levels: [{ listType: 'OL', format: { startNumberOverride: 1 }, dataset: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, blocks: [ { blockType: 'Paragraph', diff --git a/packages/roosterjs-content-model-dom/test/domToModel/processors/listItemProcessorTest.ts b/packages/roosterjs-content-model-dom/test/domToModel/processors/listItemProcessorTest.ts index f8d890cbe37..a39fc7173e7 100644 --- a/packages/roosterjs-content-model-dom/test/domToModel/processors/listItemProcessorTest.ts +++ b/packages/roosterjs-content-model-dom/test/domToModel/processors/listItemProcessorTest.ts @@ -57,7 +57,7 @@ describe('listItemProcessor', () => { levels: [ { listType: 'UL', format: { displayForDummyItem: 'block' }, dataset: {} }, ], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, ], @@ -91,7 +91,7 @@ describe('listItemProcessor', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -129,7 +129,7 @@ describe('listItemProcessor', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontSize: '10px', }, @@ -181,7 +181,7 @@ describe('listItemProcessor', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -232,7 +232,7 @@ describe('listItemProcessor', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -293,7 +293,7 @@ describe('listItemProcessor', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -345,7 +345,7 @@ describe('listItemProcessor', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { lineHeight: '2' }, @@ -410,7 +410,7 @@ describe('listItemProcessor without format handlers', () => { blockGroupType: 'ListItem', blocks: [], levels: [{ listType: 'UL', format: {}, dataset: {} }], - formatHolder: { segmentType: 'SelectionMarker', isSelected: true, format: {} }, + formatHolder: { segmentType: 'SelectionMarker', isSelected: false, format: {} }, format: {}, }, ], @@ -444,7 +444,7 @@ describe('listItemProcessor without format handlers', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -482,7 +482,7 @@ describe('listItemProcessor without format handlers', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontSize: '10px', }, @@ -534,7 +534,7 @@ describe('listItemProcessor without format handlers', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-dom/test/domToModel/processors/listProcessorTest.ts b/packages/roosterjs-content-model-dom/test/domToModel/processors/listProcessorTest.ts index 85f4d203d4e..63bd2a1de78 100644 --- a/packages/roosterjs-content-model-dom/test/domToModel/processors/listProcessorTest.ts +++ b/packages/roosterjs-content-model-dom/test/domToModel/processors/listProcessorTest.ts @@ -219,7 +219,7 @@ describe('listProcessor', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, format: {}, }, @@ -261,7 +261,7 @@ describe('listProcessor', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, format: {}, }, @@ -646,7 +646,7 @@ describe('listProcessor process metadata', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, format: {}, }, diff --git a/packages/roosterjs-content-model-dom/test/endToEndTest.ts b/packages/roosterjs-content-model-dom/test/endToEndTest.ts index f3fd9d32d89..ac93f89d664 100644 --- a/packages/roosterjs-content-model-dom/test/endToEndTest.ts +++ b/packages/roosterjs-content-model-dom/test/endToEndTest.ts @@ -82,7 +82,7 @@ describe('End to end test for DOM => Model => DOM/TEXT', () => { fontSize: '11pt', textColor: 'black', }, - isSelected: true, + isSelected: false, }, }, { @@ -129,7 +129,7 @@ describe('End to end test for DOM => Model => DOM/TEXT', () => { fontSize: '11pt', textColor: 'black', }, - isSelected: true, + isSelected: false, }, }, ], @@ -159,7 +159,7 @@ describe('End to end test for DOM => Model => DOM/TEXT', () => { levels: [{ listType: 'OL', format: {}, dataset: {} }], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -181,7 +181,7 @@ describe('End to end test for DOM => Model => DOM/TEXT', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -206,7 +206,7 @@ describe('End to end test for DOM => Model => DOM/TEXT', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -225,7 +225,7 @@ describe('End to end test for DOM => Model => DOM/TEXT', () => { levels: [{ listType: 'OL', format: {}, dataset: {} }], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -2082,7 +2082,7 @@ describe('End to end test for DOM => Model => DOM/TEXT', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, levels: [ diff --git a/packages/roosterjs-content-model-dom/test/modelApi/common/isEmptyTest.ts b/packages/roosterjs-content-model-dom/test/modelApi/common/isEmptyTest.ts index f5bf8275abb..83784229efc 100644 --- a/packages/roosterjs-content-model-dom/test/modelApi/common/isEmptyTest.ts +++ b/packages/roosterjs-content-model-dom/test/modelApi/common/isEmptyTest.ts @@ -150,7 +150,7 @@ describe('isEmpty', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, }); @@ -166,7 +166,7 @@ describe('isEmpty', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, blocks: [ { diff --git a/packages/roosterjs-content-model-dom/test/modelApi/creators/creatorsTest.ts b/packages/roosterjs-content-model-dom/test/modelApi/creators/creatorsTest.ts index 84d717594d6..019b533068e 100644 --- a/packages/roosterjs-content-model-dom/test/modelApi/creators/creatorsTest.ts +++ b/packages/roosterjs-content-model-dom/test/modelApi/creators/creatorsTest.ts @@ -429,7 +429,7 @@ describe('Creators', () => { levels: [], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -448,7 +448,7 @@ describe('Creators', () => { levels: [{ listType: 'OL', dataset: {}, format: {} }], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontSize: 'a' }, }, format: {}, @@ -466,7 +466,7 @@ describe('Creators', () => { levels: [{ listType: 'OL', dataset: {}, format: {} }], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontSize: 'a' }, }, format: {}, diff --git a/packages/roosterjs-content-model-dom/test/modelApi/editing/cloneModelTest.ts b/packages/roosterjs-content-model-dom/test/modelApi/editing/cloneModelTest.ts index eb66439c627..ffb923e17a3 100644 --- a/packages/roosterjs-content-model-dom/test/modelApi/editing/cloneModelTest.ts +++ b/packages/roosterjs-content-model-dom/test/modelApi/editing/cloneModelTest.ts @@ -220,7 +220,7 @@ describe('cloneModel', () => { formatHolder: { segmentType: 'SelectionMarker', format: { fontSize: '20' }, - isSelected: true, + isSelected: false, }, levels: [ { diff --git a/packages/roosterjs-content-model-dom/test/modelApi/editing/mergeModelTest.ts b/packages/roosterjs-content-model-dom/test/modelApi/editing/mergeModelTest.ts index 2735810b4ec..538aaee4bd7 100644 --- a/packages/roosterjs-content-model-dom/test/modelApi/editing/mergeModelTest.ts +++ b/packages/roosterjs-content-model-dom/test/modelApi/editing/mergeModelTest.ts @@ -382,7 +382,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -421,7 +421,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -451,7 +451,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -550,7 +550,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -591,7 +591,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -719,7 +719,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -758,7 +758,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -793,7 +793,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -838,7 +838,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1878,7 +1878,7 @@ describe('mergeModel', () => { color: 'red', formatName: 'ToBeRemoved', } as any, - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', }, levels: [ @@ -1943,7 +1943,7 @@ describe('mergeModel', () => { backgroundColor: 'rgb(0,0,0)', color: 'rgb(255,255,255)', } as any, - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', }, levels: [{ listType: 'OL', dataset: {}, format: {} }], @@ -3149,7 +3149,7 @@ describe('mergeModel', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-dom/test/modelApi/selection/iterateSelectionsTest.ts b/packages/roosterjs-content-model-dom/test/modelApi/selection/iterateSelectionsTest.ts index 231e5d66ad9..55f2664bc5d 100644 --- a/packages/roosterjs-content-model-dom/test/modelApi/selection/iterateSelectionsTest.ts +++ b/packages/roosterjs-content-model-dom/test/modelApi/selection/iterateSelectionsTest.ts @@ -1121,7 +1121,7 @@ describe('iterateSelections', () => { { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, ]); }); @@ -1167,7 +1167,7 @@ describe('iterateSelections', () => { { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, ]); }); diff --git a/packages/roosterjs-content-model-dom/test/modelToDom/handlers/handleListItemTest.ts b/packages/roosterjs-content-model-dom/test/modelToDom/handlers/handleListItemTest.ts index 2ecafb30b3c..09ea4c633d7 100644 --- a/packages/roosterjs-content-model-dom/test/modelToDom/handlers/handleListItemTest.ts +++ b/packages/roosterjs-content-model-dom/test/modelToDom/handlers/handleListItemTest.ts @@ -236,7 +236,7 @@ describe('handleListItem without format handler', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, levels: [listLevel0], }; diff --git a/packages/roosterjs-content-model-dom/test/modelToDom/handlers/handleListTest.ts b/packages/roosterjs-content-model-dom/test/modelToDom/handlers/handleListTest.ts index 52c23da397d..1f2437fc58b 100644 --- a/packages/roosterjs-content-model-dom/test/modelToDom/handlers/handleListTest.ts +++ b/packages/roosterjs-content-model-dom/test/modelToDom/handlers/handleListTest.ts @@ -487,7 +487,7 @@ describe('handleList handles metadata', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, levels: [listLevel0, listLevel1], }; diff --git a/packages/roosterjs-content-model-plugins/test/autoFormat/list/keyboardListTriggerTest.ts b/packages/roosterjs-content-model-plugins/test/autoFormat/list/keyboardListTriggerTest.ts index c36675f94a5..991c67f1e11 100644 --- a/packages/roosterjs-content-model-plugins/test/autoFormat/list/keyboardListTriggerTest.ts +++ b/packages/roosterjs-content-model-plugins/test/autoFormat/list/keyboardListTriggerTest.ts @@ -96,7 +96,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -144,7 +144,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -204,7 +204,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -248,7 +248,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -380,7 +380,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -479,7 +479,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -513,7 +513,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -575,7 +575,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -609,7 +609,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -650,7 +650,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -684,7 +684,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -728,7 +728,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, @@ -776,7 +776,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -810,7 +810,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -856,7 +856,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -890,7 +890,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -956,7 +956,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -990,7 +990,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1044,7 +1044,7 @@ describe('keyboardListTrigger', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: { fontFamily: undefined, fontSize: undefined, diff --git a/packages/roosterjs-content-model-plugins/test/edit/deleteSteps/deleteCollapsedSelectionTest.ts b/packages/roosterjs-content-model-plugins/test/edit/deleteSteps/deleteCollapsedSelectionTest.ts index 7b59fbb670e..7a33cd10902 100644 --- a/packages/roosterjs-content-model-plugins/test/edit/deleteSteps/deleteCollapsedSelectionTest.ts +++ b/packages/roosterjs-content-model-plugins/test/edit/deleteSteps/deleteCollapsedSelectionTest.ts @@ -681,7 +681,7 @@ describe('deleteSelection - forward', () => { format: {}, formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, levels: [], @@ -879,7 +879,7 @@ describe('deleteSelection - forward', () => { levels: [], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, blocks: [ @@ -2261,7 +2261,7 @@ describe('deleteSelection - backward', () => { format: {}, formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, levels: [], @@ -2440,7 +2440,7 @@ describe('deleteSelection - backward', () => { levels: [], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, blocks: [ @@ -3307,7 +3307,7 @@ describe('deleteSelection - backward', () => { formatHolder: { segmentType: 'SelectionMarker', format: {}, - isSelected: true, + isSelected: false, }, format: {}, blocks: [ @@ -3495,7 +3495,7 @@ describe('deleteSelection - backward', () => { levels: [], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-plugins/test/edit/deleteSteps/deleteListTest.ts b/packages/roosterjs-content-model-plugins/test/edit/deleteSteps/deleteListTest.ts index 0ede21fb419..721a853d875 100644 --- a/packages/roosterjs-content-model-plugins/test/edit/deleteSteps/deleteListTest.ts +++ b/packages/roosterjs-content-model-plugins/test/edit/deleteSteps/deleteListTest.ts @@ -40,7 +40,7 @@ describe('deleteList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, }, @@ -115,7 +115,7 @@ describe('deleteList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, }, @@ -164,7 +164,7 @@ describe('deleteList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, }, @@ -240,7 +240,7 @@ describe('deleteList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, }, @@ -314,7 +314,7 @@ describe('deleteList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, }, @@ -371,7 +371,7 @@ describe('deleteList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -498,7 +498,7 @@ describe('deleteList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, }, diff --git a/packages/roosterjs-content-model-plugins/test/edit/inputSteps/handleEnterOnListTest.ts b/packages/roosterjs-content-model-plugins/test/edit/inputSteps/handleEnterOnListTest.ts index d2ab154dc73..e8b88ac05e7 100644 --- a/packages/roosterjs-content-model-plugins/test/edit/inputSteps/handleEnterOnListTest.ts +++ b/packages/roosterjs-content-model-plugins/test/edit/inputSteps/handleEnterOnListTest.ts @@ -72,7 +72,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -112,7 +112,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -154,7 +154,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -225,7 +225,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -267,7 +267,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -309,7 +309,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -360,7 +360,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -403,7 +403,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -444,7 +444,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -490,7 +490,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -527,7 +527,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -575,7 +575,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -617,7 +617,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -661,7 +661,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -698,7 +698,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -746,7 +746,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -783,7 +783,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -825,7 +825,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -873,7 +873,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -909,7 +909,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -955,7 +955,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -992,7 +992,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1038,7 +1038,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1080,7 +1080,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1122,7 +1122,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1158,7 +1158,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1200,7 +1200,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1240,7 +1240,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1277,7 +1277,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1329,7 +1329,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1384,7 +1384,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1426,7 +1426,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1468,7 +1468,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1519,7 +1519,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1576,7 +1576,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1617,7 +1617,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1661,7 +1661,7 @@ describe('handleEnterOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1746,7 +1746,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1787,7 +1787,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1829,7 +1829,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1865,7 +1865,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1906,7 +1906,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1952,7 +1952,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1988,7 +1988,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -2028,7 +2028,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -2070,7 +2070,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -2106,7 +2106,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -2167,7 +2167,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -2208,7 +2208,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -2250,7 +2250,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -2291,7 +2291,7 @@ describe(' handleEnterOnList - keyboardInput', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-plugins/test/edit/keyboardDeleteTest.ts b/packages/roosterjs-content-model-plugins/test/edit/keyboardDeleteTest.ts index 6f18bb9f62d..73aa831ef2c 100644 --- a/packages/roosterjs-content-model-plugins/test/edit/keyboardDeleteTest.ts +++ b/packages/roosterjs-content-model-plugins/test/edit/keyboardDeleteTest.ts @@ -433,7 +433,7 @@ describe('keyboardDelete', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, }, @@ -476,7 +476,7 @@ describe('keyboardDelete', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, }, diff --git a/packages/roosterjs-content-model-plugins/test/edit/keyboardTabTest.ts b/packages/roosterjs-content-model-plugins/test/edit/keyboardTabTest.ts index bfc2cf68bd4..03f30f31e1d 100644 --- a/packages/roosterjs-content-model-plugins/test/edit/keyboardTabTest.ts +++ b/packages/roosterjs-content-model-plugins/test/edit/keyboardTabTest.ts @@ -151,7 +151,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -204,7 +204,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -241,7 +241,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -278,7 +278,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -331,7 +331,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -368,7 +368,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -405,7 +405,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -452,7 +452,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -494,7 +494,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -531,7 +531,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -583,7 +583,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -620,7 +620,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -657,7 +657,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -705,7 +705,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -757,7 +757,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -794,7 +794,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -851,7 +851,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -888,7 +888,7 @@ describe('keyboardTab', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1665,7 +1665,7 @@ describe('keyboardTab - handleTabOnParagraph -', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1697,7 +1697,7 @@ describe('keyboardTab - handleTabOnParagraph -', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1729,7 +1729,7 @@ describe('keyboardTab - handleTabOnParagraph -', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1784,7 +1784,7 @@ describe('keyboardTab - handleTabOnParagraph -', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1816,7 +1816,7 @@ describe('keyboardTab - handleTabOnParagraph -', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1848,7 +1848,7 @@ describe('keyboardTab - handleTabOnParagraph -', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { diff --git a/packages/roosterjs-content-model-plugins/test/edit/tabUtils/handleTabOnListTest.ts b/packages/roosterjs-content-model-plugins/test/edit/tabUtils/handleTabOnListTest.ts index 6f457fb0ae6..18c6fa56ee9 100644 --- a/packages/roosterjs-content-model-plugins/test/edit/tabUtils/handleTabOnListTest.ts +++ b/packages/roosterjs-content-model-plugins/test/edit/tabUtils/handleTabOnListTest.ts @@ -54,7 +54,7 @@ describe('handleTabOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -96,7 +96,7 @@ describe('handleTabOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -150,7 +150,7 @@ describe('handleTabOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -192,7 +192,7 @@ describe('handleTabOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -246,7 +246,7 @@ describe('handleTabOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -288,7 +288,7 @@ describe('handleTabOnList', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, diff --git a/packages/roosterjs-content-model-plugins/test/paste/processPastedContentFromWacTest.ts b/packages/roosterjs-content-model-plugins/test/paste/processPastedContentFromWacTest.ts index b55a219683a..d45f6a5ea42 100644 --- a/packages/roosterjs-content-model-plugins/test/paste/processPastedContentFromWacTest.ts +++ b/packages/roosterjs-content-model-plugins/test/paste/processPastedContentFromWacTest.ts @@ -230,7 +230,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -264,7 +264,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -306,7 +306,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -356,7 +356,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -398,7 +398,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -448,7 +448,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -501,7 +501,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -543,7 +543,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -596,7 +596,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -643,7 +643,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -696,7 +696,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -755,7 +755,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -797,7 +797,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -850,7 +850,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -908,7 +908,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -955,7 +955,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1068,7 +1068,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1110,7 +1110,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1151,7 +1151,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1560,7 +1560,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -1600,7 +1600,7 @@ describe('wordOnlineHandler', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -2862,7 +2862,7 @@ describe('wordOnlineHandler', () => { blocks: [ { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -2935,7 +2935,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -3008,7 +3008,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -3088,7 +3088,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -3168,7 +3168,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -3255,7 +3255,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -3342,7 +3342,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -3422,7 +3422,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -3502,7 +3502,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -3575,7 +3575,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -3872,7 +3872,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -4011,7 +4011,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -4255,7 +4255,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -4329,7 +4329,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -4520,7 +4520,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', @@ -4594,7 +4594,7 @@ describe('wordOnlineHandler', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, Aptos_MSFontService, sans-serif', diff --git a/packages/roosterjs-content-model-plugins/test/paste/processPastedContentFromWordDesktopTest.ts b/packages/roosterjs-content-model-plugins/test/paste/processPastedContentFromWordDesktopTest.ts index 19890f0f8a9..f14038afee5 100644 --- a/packages/roosterjs-content-model-plugins/test/paste/processPastedContentFromWordDesktopTest.ts +++ b/packages/roosterjs-content-model-plugins/test/paste/processPastedContentFromWordDesktopTest.ts @@ -327,7 +327,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -365,7 +365,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -419,7 +419,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -466,7 +466,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -520,7 +520,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -575,7 +575,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -628,7 +628,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -683,7 +683,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -785,7 +785,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { marginTop: '1em', marginBottom: '1em' }, @@ -838,7 +838,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { marginTop: '1em', marginBottom: '1em' }, @@ -882,7 +882,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { marginTop: '1em', marginBottom: '1em' }, @@ -953,7 +953,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { marginTop: '1em', marginBottom: '1em' }, @@ -1014,7 +1014,7 @@ describe('processPastedContentFromWordDesktopTest', () => { blocks: [ { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1051,7 +1051,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1097,7 +1097,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1156,7 +1156,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1328,7 +1328,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { @@ -1396,7 +1396,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { marginTop: '1em', marginBottom: '1em' }, @@ -1432,7 +1432,7 @@ describe('processPastedContentFromWordDesktopTest', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: { marginTop: '1em', marginBottom: '1em' }, @@ -1484,7 +1484,7 @@ describe('processPastedContentFromWordDesktopTest', () => { blocks: [ { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1530,7 +1530,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1575,7 +1575,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1641,7 +1641,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1687,7 +1687,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1771,7 +1771,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1811,7 +1811,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1850,7 +1850,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1890,7 +1890,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1947,7 +1947,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -1987,7 +1987,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2044,7 +2044,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2084,7 +2084,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2141,7 +2141,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2181,7 +2181,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2238,7 +2238,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2278,7 +2278,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2335,7 +2335,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2375,7 +2375,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2432,7 +2432,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2498,7 +2498,7 @@ describe('processPastedContentFromWordDesktopTest', () => { blocks: [ { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -2550,7 +2550,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -2617,7 +2617,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -2696,7 +2696,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -2787,7 +2787,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -2890,7 +2890,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -3005,7 +3005,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -3132,7 +3132,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -3271,7 +3271,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -3422,7 +3422,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -3560,7 +3560,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -3686,7 +3686,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -3800,7 +3800,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -3902,7 +3902,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -3992,7 +3992,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -4070,7 +4070,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -4136,7 +4136,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: { fontFamily: 'Aptos, sans-serif', @@ -4235,7 +4235,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4281,7 +4281,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4321,7 +4321,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4373,7 +4373,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4413,7 +4413,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4465,7 +4465,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4527,7 +4527,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4567,7 +4567,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4675,7 +4675,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4716,7 +4716,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4768,7 +4768,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4808,7 +4808,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4887,7 +4887,7 @@ describe('processPastedContentFromWordDesktopTest', () => { blocks: [ { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -4927,7 +4927,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -5002,7 +5002,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -5059,7 +5059,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, @@ -5130,7 +5130,7 @@ describe('processPastedContentFromWordDesktopTest', () => { }, { formatHolder: { - isSelected: true, + isSelected: false, segmentType: 'SelectionMarker', format: {}, }, diff --git a/packages/roosterjs-content-model-plugins/test/shortcut/utils/setShortcutIndentationCommandTest.ts b/packages/roosterjs-content-model-plugins/test/shortcut/utils/setShortcutIndentationCommandTest.ts index b5bbbce3f0b..f9562243de8 100644 --- a/packages/roosterjs-content-model-plugins/test/shortcut/utils/setShortcutIndentationCommandTest.ts +++ b/packages/roosterjs-content-model-plugins/test/shortcut/utils/setShortcutIndentationCommandTest.ts @@ -93,7 +93,7 @@ describe('setShortcutIndentationCommand', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -127,7 +127,7 @@ describe('setShortcutIndentationCommand', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -172,7 +172,7 @@ describe('setShortcutIndentationCommand', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {}, @@ -211,7 +211,7 @@ describe('setShortcutIndentationCommand', () => { ], formatHolder: { segmentType: 'SelectionMarker', - isSelected: true, + isSelected: false, format: {}, }, format: {},