13 lines
376 B
JavaScript
13 lines
376 B
JavaScript
"use strict";
|
|
|
|
const remote = require("electron").remote;
|
|
|
|
const options = remote.getGlobal("options");
|
|
if (options.runIn === "render") {
|
|
const jasmine = require("./jasmine.js").execute(options.filter);
|
|
jasmine.onComplete((passed) => {
|
|
// Add a delay if this happens too fast, to allow the WebDriver to connect first.
|
|
remote.process.exit(passed ? 0 : -1);
|
|
});
|
|
}
|