Innovenergy_trunk/frontend/node_modules/testcafe/lib/test-run/commands/service.js

62 lines
5.5 KiB
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrepareClientEnvironmentInDebugMode = exports.GetActiveElementCommand = exports.UnlockPageCommand = exports.BackupStoragesCommand = exports.TestDoneCommand = exports.SetBreakpointCommand = exports.HideAssertionRetriesStatusCommand = exports.ShowAssertionRetriesStatusCommand = void 0;
const type_1 = __importDefault(require("./type"));
// Commands
class ShowAssertionRetriesStatusCommand {
constructor(timeout) {
this.type = type_1.default.showAssertionRetriesStatus;
this.timeout = timeout;
}
}
exports.ShowAssertionRetriesStatusCommand = ShowAssertionRetriesStatusCommand;
class HideAssertionRetriesStatusCommand {
constructor(success) {
this.type = type_1.default.hideAssertionRetriesStatus;
this.success = success;
}
}
exports.HideAssertionRetriesStatusCommand = HideAssertionRetriesStatusCommand;
class SetBreakpointCommand {
constructor(isTestError, inCompilerService) {
this.type = type_1.default.setBreakpoint;
this.inCompilerService = inCompilerService;
this.isTestError = isTestError;
}
}
exports.SetBreakpointCommand = SetBreakpointCommand;
class TestDoneCommand {
constructor() {
this.type = type_1.default.testDone;
}
}
exports.TestDoneCommand = TestDoneCommand;
class BackupStoragesCommand {
constructor() {
this.type = type_1.default.backupStorages;
}
}
exports.BackupStoragesCommand = BackupStoragesCommand;
class UnlockPageCommand {
constructor() {
this.type = type_1.default.unlockPage;
}
}
exports.UnlockPageCommand = UnlockPageCommand;
class GetActiveElementCommand {
constructor() {
this.type = type_1.default.getActiveElement;
}
}
exports.GetActiveElementCommand = GetActiveElementCommand;
class PrepareClientEnvironmentInDebugMode {
constructor(esmRuntime) {
this.type = type_1.default.prepareClientEnvironmentInDebugMode;
this.esmRuntime = esmRuntime;
}
}
exports.PrepareClientEnvironmentInDebugMode = PrepareClientEnvironmentInDebugMode;
//# sourceMappingURL=data:application/json;base64,eyJ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