提交 8f9e2739 编写于 作者: M Michel Kaporin

Removed exposure of require as it led to not working Spectron.

上级 e4601b2a
......@@ -12,10 +12,6 @@ if (window.location.search.indexOf('prof-startup') >= 0) {
profiler.startProfiling('renderer', true);
}
if (process.env.SMOKE_TEST) {
window.electronRequire = require; // if smoke test, expose require to Spectron to access the core Electron APIs
}
/*global window,document,define*/
const startTimer = require('../../../base/node/startupTimers').startTimer;
......
......@@ -42,7 +42,6 @@ if (parseInt(process.version.substr(1)) < 6) {
}
// Setting up environment variables
process.env.SMOKE_TEST = 'true';
process.env.VSCODE_LATEST_PATH = program.latest;
if (program.stable) process.env.VSCODE_STABLE_PATH = program.stable;
process.env.SMOKETEST_REPO = testRepoLocalDir;
......
......@@ -52,8 +52,7 @@ export class SpectronApplication {
this.spectron = new Application({
path: electronPath,
args: args,
chromeDriverArgs: chromeDriverArgs,
requireName: 'electronRequire'
chromeDriverArgs: chromeDriverArgs
});
this.screenshot = new Screenshot(this, testName);
this.client = new SpectronClient(this.spectron, this.screenshot);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册