Sync snapshot (2026-08-10) (#80)
- Improve DOCX rendering fidelity, pagination, image handling, and Markdown paste - Expand PDF text editing with paragraph reflow, style preservation, and more reliable text matching - Harden XLSX sheet deletion, localized date formats, multi-row autofit, charts, and system font support - Add inline AI turn rollback and sent-attachment visibility across editors - Add Office-style ScreenTips and refine ribbons, dialogs, menus, and themes - Improve Slides cropping, rotate and flip tools, printing, animations, and editing workflows - Add shell settings, configurable save locations, account credits, and update recovery guidance - Add Intel macOS and RPM download support and refresh public documentation Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
This commit is contained in:
co-authored by
GenOffice
parent
fd33934dab
commit
7023e635bd
@@ -91,4 +91,27 @@ describe('showSaveDialogWithMemory', () => {
|
||||
await showOpenDialogWithMemory(second, undefined, {})
|
||||
expect(second.showOpenDialog).toHaveBeenCalledWith({})
|
||||
})
|
||||
|
||||
it('anchors a bare file-name suggestion in the fallback dir when nothing is remembered', async () => {
|
||||
const dialog = fakeDialog()
|
||||
await showSaveDialogWithMemory(dialog, undefined, { defaultPath: 'deck.pptx' }, '/default/save')
|
||||
expect(dialog.showSaveDialog).toHaveBeenCalledWith({
|
||||
defaultPath: join('/default/save', 'deck.pptx'),
|
||||
})
|
||||
})
|
||||
|
||||
it('prefers the remembered directory over the fallback dir', async () => {
|
||||
const dialog = fakeDialog({ showSaveDialog: pickedSave(join('/work', 'deck.pptx')) })
|
||||
await showSaveDialogWithMemory(dialog, undefined, { defaultPath: 'deck.pptx' })
|
||||
await showSaveDialogWithMemory(dialog, undefined, { defaultPath: 'b.pptx' }, '/default/save')
|
||||
expect(dialog.showSaveDialog).toHaveBeenLastCalledWith({
|
||||
defaultPath: join('/work', 'b.pptx'),
|
||||
})
|
||||
})
|
||||
|
||||
it('keeps an explicit absolute defaultPath untouched even with a fallback dir', async () => {
|
||||
const dialog = fakeDialog()
|
||||
await showSaveDialogWithMemory(dialog, undefined, { defaultPath: '/docs/tab.pdf' }, '/default')
|
||||
expect(dialog.showSaveDialog).toHaveBeenCalledWith({ defaultPath: '/docs/tab.pdf' })
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user