Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
2
node_modules/jasmine-spec-reporter/built/display/colors-display.d.ts
generated
vendored
Normal file
2
node_modules/jasmine-spec-reporter/built/display/colors-display.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
import { Configuration } from "../configuration";
|
||||
export declare function init(configuration: Configuration): void;
|
19
node_modules/jasmine-spec-reporter/built/display/colors-display.js
generated
vendored
Normal file
19
node_modules/jasmine-spec-reporter/built/display/colors-display.js
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.init = void 0;
|
||||
// tslint:disable-next-line:no-submodule-imports
|
||||
var colors = require("colors/safe");
|
||||
function init(configuration) {
|
||||
colors.enabled = configuration.colors.enabled;
|
||||
colors.setTheme({
|
||||
failed: configuration.colors.failed,
|
||||
pending: configuration.colors.pending,
|
||||
successful: configuration.colors.successful,
|
||||
prettyStacktraceFilename: configuration.colors.prettyStacktraceFilename,
|
||||
prettyStacktraceLineNumber: configuration.colors.prettyStacktraceLineNumber,
|
||||
prettyStacktraceColumnNumber: configuration.colors.prettyStacktraceColumnNumber,
|
||||
prettyStacktraceError: configuration.colors.prettyStacktraceError,
|
||||
});
|
||||
}
|
||||
exports.init = init;
|
||||
//# sourceMappingURL=colors-display.js.map
|
9
node_modules/jasmine-spec-reporter/built/display/colors-theme.d.ts
generated
vendored
Normal file
9
node_modules/jasmine-spec-reporter/built/display/colors-theme.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
interface String {
|
||||
successful: string;
|
||||
failed: string;
|
||||
pending: string;
|
||||
prettyStacktraceFilename: string;
|
||||
prettyStacktraceLineNumber: string;
|
||||
prettyStacktraceColumnNumber: string;
|
||||
prettyStacktraceError: string;
|
||||
}
|
1
node_modules/jasmine-spec-reporter/built/display/colors-theme.js
generated
vendored
Normal file
1
node_modules/jasmine-spec-reporter/built/display/colors-theme.js
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
//# sourceMappingURL=colors-theme.js.map
|
26
node_modules/jasmine-spec-reporter/built/display/execution-display.d.ts
generated
vendored
Normal file
26
node_modules/jasmine-spec-reporter/built/display/execution-display.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
/// <reference types="jasmine" />
|
||||
import { Configuration } from "../configuration";
|
||||
import { DisplayProcessor } from "../display-processor";
|
||||
import { CustomReporterResult, ExecutedSpecs } from "../spec-reporter";
|
||||
import { Logger } from "./logger";
|
||||
import SuiteInfo = jasmine.SuiteInfo;
|
||||
export declare class ExecutionDisplay {
|
||||
private configuration;
|
||||
private logger;
|
||||
private specs;
|
||||
private static hasCustomDisplaySpecStarted;
|
||||
private suiteHierarchy;
|
||||
private suiteHierarchyDisplayed;
|
||||
private hasCustomDisplaySpecStarted;
|
||||
constructor(configuration: Configuration, logger: Logger, specs: ExecutedSpecs, displayProcessors: DisplayProcessor[]);
|
||||
jasmineStarted(suiteInfo: SuiteInfo): void;
|
||||
specStarted(result: CustomReporterResult): void;
|
||||
successful(result: CustomReporterResult): void;
|
||||
failed(result: CustomReporterResult): void;
|
||||
pending(result: CustomReporterResult): void;
|
||||
suiteStarted(result: CustomReporterResult): void;
|
||||
suiteDone(result: CustomReporterResult): void;
|
||||
private ensureSuiteDisplayed;
|
||||
private displaySuite;
|
||||
private computeSuiteIndent;
|
||||
}
|
118
node_modules/jasmine-spec-reporter/built/display/execution-display.js
generated
vendored
Normal file
118
node_modules/jasmine-spec-reporter/built/display/execution-display.js
generated
vendored
Normal file
|
@ -0,0 +1,118 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ExecutionDisplay = void 0;
|
||||
var ExecutionDisplay = /** @class */ (function () {
|
||||
function ExecutionDisplay(configuration, logger, specs, displayProcessors) {
|
||||
this.configuration = configuration;
|
||||
this.logger = logger;
|
||||
this.specs = specs;
|
||||
this.suiteHierarchy = [];
|
||||
this.suiteHierarchyDisplayed = [];
|
||||
this.hasCustomDisplaySpecStarted = ExecutionDisplay.hasCustomDisplaySpecStarted(displayProcessors);
|
||||
}
|
||||
ExecutionDisplay.hasCustomDisplaySpecStarted = function (processors) {
|
||||
var isDisplayed = false;
|
||||
processors.forEach(function (processor) {
|
||||
var log = "foo";
|
||||
var result = processor.displaySpecStarted({ id: "bar", description: "bar", fullName: "bar" }, log);
|
||||
isDisplayed = isDisplayed || result !== log;
|
||||
});
|
||||
return isDisplayed;
|
||||
};
|
||||
ExecutionDisplay.prototype.jasmineStarted = function (suiteInfo) {
|
||||
this.logger.process(suiteInfo, function (displayProcessor, object, log) {
|
||||
return displayProcessor.displayJasmineStarted(object, log);
|
||||
});
|
||||
};
|
||||
ExecutionDisplay.prototype.specStarted = function (result) {
|
||||
if (this.hasCustomDisplaySpecStarted) {
|
||||
this.ensureSuiteDisplayed();
|
||||
this.logger.process(result, function (displayProcessor, object, log) {
|
||||
return displayProcessor.displaySpecStarted(object, log);
|
||||
});
|
||||
}
|
||||
};
|
||||
ExecutionDisplay.prototype.successful = function (result) {
|
||||
this.specs.successful.push(result);
|
||||
if (this.configuration.spec.displaySuccessful) {
|
||||
this.ensureSuiteDisplayed();
|
||||
this.logger.process(result, function (displayProcessor, object, log) {
|
||||
return displayProcessor.displaySuccessfulSpec(object, log);
|
||||
});
|
||||
}
|
||||
};
|
||||
ExecutionDisplay.prototype.failed = function (result) {
|
||||
this.specs.failed.push(result);
|
||||
if (this.configuration.spec.displayFailed) {
|
||||
this.ensureSuiteDisplayed();
|
||||
this.logger.process(result, function (displayProcessor, object, log) {
|
||||
return displayProcessor.displayFailedSpec(object, log);
|
||||
});
|
||||
if (this.configuration.spec.displayErrorMessages) {
|
||||
this.logger.increaseIndent();
|
||||
this.logger.process(result, function (displayProcessor, object, log) {
|
||||
return displayProcessor.displaySpecErrorMessages(object, log);
|
||||
});
|
||||
this.logger.decreaseIndent();
|
||||
}
|
||||
}
|
||||
};
|
||||
ExecutionDisplay.prototype.pending = function (result) {
|
||||
this.specs.pending.push(result);
|
||||
if (this.configuration.spec.displayPending) {
|
||||
this.ensureSuiteDisplayed();
|
||||
this.logger.process(result, function (displayProcessor, object, log) {
|
||||
return displayProcessor.displayPendingSpec(object, log);
|
||||
});
|
||||
}
|
||||
};
|
||||
ExecutionDisplay.prototype.suiteStarted = function (result) {
|
||||
this.suiteHierarchy.push(result);
|
||||
};
|
||||
ExecutionDisplay.prototype.suiteDone = function (result) {
|
||||
if (result && result.failedExpectations && result.failedExpectations.length) {
|
||||
this.failed(result);
|
||||
}
|
||||
var suite = this.suiteHierarchy.pop();
|
||||
if (this.suiteHierarchyDisplayed[this.suiteHierarchyDisplayed.length - 1] === suite) {
|
||||
this.suiteHierarchyDisplayed.pop();
|
||||
}
|
||||
this.logger.newLine();
|
||||
this.logger.decreaseIndent();
|
||||
};
|
||||
ExecutionDisplay.prototype.ensureSuiteDisplayed = function () {
|
||||
if (this.suiteHierarchy.length !== 0) {
|
||||
for (var i = this.suiteHierarchyDisplayed.length; i < this.suiteHierarchy.length; i++) {
|
||||
this.suiteHierarchyDisplayed.push(this.suiteHierarchy[i]);
|
||||
this.displaySuite(this.suiteHierarchy[i]);
|
||||
}
|
||||
}
|
||||
else {
|
||||
var name = "Top level suite";
|
||||
var topLevelSuite = {
|
||||
description: name,
|
||||
fullName: name,
|
||||
id: name,
|
||||
};
|
||||
this.suiteHierarchy.push(topLevelSuite);
|
||||
this.suiteHierarchyDisplayed.push(topLevelSuite);
|
||||
this.displaySuite(topLevelSuite);
|
||||
}
|
||||
};
|
||||
ExecutionDisplay.prototype.displaySuite = function (suite) {
|
||||
this.logger.newLine();
|
||||
this.computeSuiteIndent();
|
||||
this.logger.process(suite, function (displayProcessor, object, log) {
|
||||
return displayProcessor.displaySuite(object, log);
|
||||
});
|
||||
this.logger.increaseIndent();
|
||||
};
|
||||
ExecutionDisplay.prototype.computeSuiteIndent = function () {
|
||||
var _this = this;
|
||||
this.logger.resetIndent();
|
||||
this.suiteHierarchyDisplayed.forEach(function () { return _this.logger.increaseIndent(); });
|
||||
};
|
||||
return ExecutionDisplay;
|
||||
}());
|
||||
exports.ExecutionDisplay = ExecutionDisplay;
|
||||
//# sourceMappingURL=execution-display.js.map
|
20
node_modules/jasmine-spec-reporter/built/display/logger.d.ts
generated
vendored
Normal file
20
node_modules/jasmine-spec-reporter/built/display/logger.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
/// <reference types="jasmine" />
|
||||
import { DisplayProcessor } from "../display-processor";
|
||||
import { CustomReporterResult } from "../spec-reporter";
|
||||
import SuiteInfo = jasmine.SuiteInfo;
|
||||
export declare type ProcessFunction = (displayProcessor: DisplayProcessor, object: ProcessObject, log: string) => string;
|
||||
export declare type ProcessObject = SuiteInfo | CustomReporterResult;
|
||||
export declare class Logger {
|
||||
private displayProcessors;
|
||||
private print;
|
||||
private indent;
|
||||
private currentIndent;
|
||||
private lastWasNewLine;
|
||||
constructor(displayProcessors: DisplayProcessor[], print: (line: string) => void);
|
||||
log(stuff: string): void;
|
||||
process(object: ProcessObject, processFunction: ProcessFunction): void;
|
||||
newLine(): void;
|
||||
resetIndent(): void;
|
||||
increaseIndent(): void;
|
||||
decreaseIndent(): void;
|
||||
}
|
44
node_modules/jasmine-spec-reporter/built/display/logger.js
generated
vendored
Normal file
44
node_modules/jasmine-spec-reporter/built/display/logger.js
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Logger = void 0;
|
||||
var Logger = /** @class */ (function () {
|
||||
function Logger(displayProcessors, print) {
|
||||
this.displayProcessors = displayProcessors;
|
||||
this.print = print;
|
||||
this.indent = " ";
|
||||
this.currentIndent = "";
|
||||
this.lastWasNewLine = false;
|
||||
}
|
||||
Logger.prototype.log = function (stuff) {
|
||||
var _this = this;
|
||||
stuff.split("\n").forEach(function (line) {
|
||||
_this.print(line !== "" ? _this.currentIndent + line : line);
|
||||
});
|
||||
this.lastWasNewLine = false;
|
||||
};
|
||||
Logger.prototype.process = function (object, processFunction) {
|
||||
var log = "";
|
||||
this.displayProcessors.forEach(function (displayProcessor) {
|
||||
log = processFunction(displayProcessor, object, log);
|
||||
});
|
||||
this.log(log);
|
||||
};
|
||||
Logger.prototype.newLine = function () {
|
||||
if (!this.lastWasNewLine) {
|
||||
this.log("");
|
||||
this.lastWasNewLine = true;
|
||||
}
|
||||
};
|
||||
Logger.prototype.resetIndent = function () {
|
||||
this.currentIndent = "";
|
||||
};
|
||||
Logger.prototype.increaseIndent = function () {
|
||||
this.currentIndent += this.indent;
|
||||
};
|
||||
Logger.prototype.decreaseIndent = function () {
|
||||
this.currentIndent = this.currentIndent.substr(0, this.currentIndent.length - this.indent.length);
|
||||
};
|
||||
return Logger;
|
||||
}());
|
||||
exports.Logger = Logger;
|
||||
//# sourceMappingURL=logger.js.map
|
21
node_modules/jasmine-spec-reporter/built/display/summary-display.d.ts
generated
vendored
Normal file
21
node_modules/jasmine-spec-reporter/built/display/summary-display.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { Configuration } from "../configuration";
|
||||
import { ExecutionMetrics } from "../execution-metrics";
|
||||
import { ExecutedSpecs } from "../spec-reporter";
|
||||
import { Theme } from "../theme";
|
||||
import { Logger } from "./logger";
|
||||
export declare class SummaryDisplay {
|
||||
private configuration;
|
||||
private theme;
|
||||
private logger;
|
||||
private specs;
|
||||
constructor(configuration: Configuration, theme: Theme, logger: Logger, specs: ExecutedSpecs);
|
||||
display(metrics: ExecutionMetrics): void;
|
||||
private successesSummary;
|
||||
private successfulSummary;
|
||||
private failuresSummary;
|
||||
private failedSummary;
|
||||
private pendingsSummary;
|
||||
private pendingSummary;
|
||||
private errorsSummary;
|
||||
private errorSummary;
|
||||
}
|
124
node_modules/jasmine-spec-reporter/built/display/summary-display.js
generated
vendored
Normal file
124
node_modules/jasmine-spec-reporter/built/display/summary-display.js
generated
vendored
Normal file
|
@ -0,0 +1,124 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SummaryDisplay = void 0;
|
||||
var SummaryDisplay = /** @class */ (function () {
|
||||
function SummaryDisplay(configuration, theme, logger, specs) {
|
||||
this.configuration = configuration;
|
||||
this.theme = theme;
|
||||
this.logger = logger;
|
||||
this.specs = specs;
|
||||
}
|
||||
SummaryDisplay.prototype.display = function (metrics) {
|
||||
var pluralizedSpec = (metrics.totalSpecsDefined === 1 ? " spec" : " specs");
|
||||
var execution = "Executed " + metrics.executedSpecs + " of " + metrics.totalSpecsDefined + pluralizedSpec;
|
||||
var status = "";
|
||||
if (metrics.failedSpecs === 0 && metrics.globalErrors.length === 0) {
|
||||
status = (metrics.totalSpecsDefined === metrics.executedSpecs) ?
|
||||
this.theme.successful(" SUCCESS") : this.theme.pending(" INCOMPLETE");
|
||||
}
|
||||
var failed = (metrics.failedSpecs > 0) ? " (" + metrics.failedSpecs + " FAILED)" : "";
|
||||
var pending = (metrics.pendingSpecs > 0) ? " (" + metrics.pendingSpecs + " PENDING)" : "";
|
||||
var skipped = (metrics.skippedSpecs > 0) ? " (" + metrics.skippedSpecs + " SKIPPED)" : "";
|
||||
var errors = (metrics.globalErrors.length > 1) ? " (" + metrics.globalErrors.length + " ERRORS)" : "";
|
||||
errors = (metrics.globalErrors.length === 1) ? " (" + metrics.globalErrors.length + " ERROR)" : errors;
|
||||
var duration = this.configuration.summary.displayDuration ? " in " + metrics.duration : "";
|
||||
this.logger.resetIndent();
|
||||
this.logger.newLine();
|
||||
if (this.configuration.summary.displaySuccessful && metrics.successfulSpecs > 0) {
|
||||
this.successesSummary();
|
||||
}
|
||||
if (this.configuration.summary.displayFailed && metrics.failedSpecs > 0) {
|
||||
this.failuresSummary();
|
||||
}
|
||||
if (this.configuration.summary.displayFailed && metrics.globalErrors.length > 0) {
|
||||
this.errorsSummary(metrics.globalErrors);
|
||||
}
|
||||
if (this.configuration.summary.displayPending && metrics.pendingSpecs > 0) {
|
||||
this.pendingsSummary();
|
||||
}
|
||||
this.logger.log(execution + status + this.theme.failed(errors) + this.theme.failed(failed)
|
||||
+ this.theme.pending(pending) + this.theme.pending(skipped) + duration + ".");
|
||||
if (metrics.random) {
|
||||
this.logger.log("Randomized with seed " + metrics.seed + ".");
|
||||
}
|
||||
};
|
||||
SummaryDisplay.prototype.successesSummary = function () {
|
||||
this.logger.log("**************************************************");
|
||||
this.logger.log("* Successes *");
|
||||
this.logger.log("**************************************************");
|
||||
this.logger.newLine();
|
||||
for (var i = 0; i < this.specs.successful.length; i++) {
|
||||
this.successfulSummary(this.specs.successful[i], i + 1);
|
||||
this.logger.newLine();
|
||||
}
|
||||
this.logger.newLine();
|
||||
this.logger.resetIndent();
|
||||
};
|
||||
SummaryDisplay.prototype.successfulSummary = function (spec, index) {
|
||||
this.logger.log(index + ") " + spec.fullName);
|
||||
};
|
||||
SummaryDisplay.prototype.failuresSummary = function () {
|
||||
this.logger.log("**************************************************");
|
||||
this.logger.log("* Failures *");
|
||||
this.logger.log("**************************************************");
|
||||
this.logger.newLine();
|
||||
for (var i = 0; i < this.specs.failed.length; i++) {
|
||||
this.failedSummary(this.specs.failed[i], i + 1);
|
||||
this.logger.newLine();
|
||||
}
|
||||
this.logger.newLine();
|
||||
this.logger.resetIndent();
|
||||
};
|
||||
SummaryDisplay.prototype.failedSummary = function (spec, index) {
|
||||
this.logger.log(index + ") " + spec.fullName);
|
||||
if (this.configuration.summary.displayErrorMessages) {
|
||||
this.logger.increaseIndent();
|
||||
this.logger.process(spec, function (displayProcessor, object, log) {
|
||||
return displayProcessor.displaySummaryErrorMessages(object, log);
|
||||
});
|
||||
this.logger.decreaseIndent();
|
||||
}
|
||||
};
|
||||
SummaryDisplay.prototype.pendingsSummary = function () {
|
||||
this.logger.log("**************************************************");
|
||||
this.logger.log("* Pending *");
|
||||
this.logger.log("**************************************************");
|
||||
this.logger.newLine();
|
||||
for (var i = 0; i < this.specs.pending.length; i++) {
|
||||
this.pendingSummary(this.specs.pending[i], i + 1);
|
||||
this.logger.newLine();
|
||||
}
|
||||
this.logger.newLine();
|
||||
this.logger.resetIndent();
|
||||
};
|
||||
SummaryDisplay.prototype.pendingSummary = function (spec, index) {
|
||||
this.logger.log(index + ") " + spec.fullName);
|
||||
this.logger.increaseIndent();
|
||||
var pendingReason = spec.pendingReason ? spec.pendingReason : "No reason given";
|
||||
this.logger.log(this.theme.pending(pendingReason));
|
||||
this.logger.resetIndent();
|
||||
};
|
||||
SummaryDisplay.prototype.errorsSummary = function (errors) {
|
||||
this.logger.log("**************************************************");
|
||||
this.logger.log("* Errors *");
|
||||
this.logger.log("**************************************************");
|
||||
this.logger.newLine();
|
||||
for (var i = 0; i < errors.length; i++) {
|
||||
this.errorSummary(errors[i], i + 1);
|
||||
this.logger.newLine();
|
||||
}
|
||||
this.logger.newLine();
|
||||
this.logger.resetIndent();
|
||||
};
|
||||
SummaryDisplay.prototype.errorSummary = function (error, index) {
|
||||
this.logger.log(index + ") " + error.fullName);
|
||||
this.logger.increaseIndent();
|
||||
this.logger.process(error, function (displayProcessor, object, log) {
|
||||
return displayProcessor.displaySummaryErrorMessages(object, log);
|
||||
});
|
||||
this.logger.decreaseIndent();
|
||||
};
|
||||
return SummaryDisplay;
|
||||
}());
|
||||
exports.SummaryDisplay = SummaryDisplay;
|
||||
//# sourceMappingURL=summary-display.js.map
|
Loading…
Add table
Add a link
Reference in a new issue