提交 fe9fb3bf 编写于 作者: D Daniel Imms

Fix Mac test

上级 d7bc002a
......@@ -4,8 +4,9 @@
*--------------------------------------------------------------------------------------------*/
'use strict';
import { TPromise } from 'vs/base/common/winjs.base';
import * as assert from 'assert';
import * as platform from 'vs/base/common/platform';
import { TPromise } from 'vs/base/common/winjs.base';
import { ILifecycleService, ShutdownEvent, ShutdownReason } from 'vs/platform/lifecycle/common/lifecycle';
import { workbenchInstantiationService, TestLifecycleService, TestTextFileService, TestWindowsService } from 'vs/workbench/test/workbenchTestServices';
import { onError, toResource } from 'vs/base/test/common/utils';
......@@ -269,7 +270,12 @@ suite('Files - TextFileService', () => {
const service = accessor.textFileService;
hotExitTest.call(this, HotExitConfiguration.ON_EXIT, ShutdownReason.CLOSE, (veto) => {
assert.ok(!service.cleanupBackupsBeforeShutdownCalled);
assert.ok(!veto);
if (platform.isMacintosh) {
// A single window CLOSE onMac does not imply an EXIT
assert.ok(veto);
} else {
assert.ok(!veto);
}
}, done);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册