Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/base/parts/sandbox/test/electron-browser/globals.test.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import assert from 'assert';
7
import { ipcRenderer, process, webFrame, webUtils } from '../../electron-browser/globals.js';
8
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../test/common/utils.js';
9
10
suite('Sandbox', () => {
11
12
test('globals', async () => {
13
assert.ok(typeof ipcRenderer.send === 'function');
14
assert.ok(typeof webFrame.setZoomLevel === 'function');
15
assert.ok(typeof process.platform === 'string');
16
assert.ok(typeof webUtils.getPathForFile === 'function');
17
});
18
19
ensureNoDisposablesAreLeakedInTestSuite();
20
});
21
22