mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-06 13:03:10 +08:00
chore(tests): suppress beforeunload to stop spec-runner from quitting over and over [wip]
This commit is contained in:
parent
e813727d28
commit
0107398019
1 changed files with 3 additions and 2 deletions
|
@ -120,8 +120,9 @@ class SpecRunner {
|
|||
}
|
||||
|
||||
_setupWindow() {
|
||||
window.addEventListener('core:close', () => window.close());
|
||||
window.addEventListener('beforeunload', () => {
|
||||
window.addEventListener('beforeunload', (e) => {
|
||||
// TODO(flotwig): figure out a way to stop the tests from quitting prematurely that is not this
|
||||
e.returnValue = 'foo'
|
||||
AppEnv.storeWindowDimensions();
|
||||
AppEnv.saveWindowState();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue