Just occurred to me: there should be another variant of this test where the user chooses Save in the confirmation dialog, but then Cancels the Save dialog (the testWindow.brackets.fs.showSaveDialog() dialog).