Path: blob/main/src/vs/base/parts/sandbox/test/electron-browser/globals.test.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import assert from 'assert';6import { ipcRenderer, process, webFrame, webUtils } from '../../electron-browser/globals.js';7import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../test/common/utils.js';89suite('Sandbox', () => {1011test('globals', async () => {12assert.ok(typeof ipcRenderer.send === 'function');13assert.ok(typeof webFrame.setZoomLevel === 'function');14assert.ok(typeof process.platform === 'string');15assert.ok(typeof webUtils.getPathForFile === 'function');16});1718ensureNoDisposablesAreLeakedInTestSuite();19});202122