@itwin/presentation-testing
Version:
Testing utilities for iTwin.js Presentation library
78 lines • 4.24 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PresentationManagerMode = exports.setupOutputFileLocation = exports.setTestOutputDir = exports.limitFilePathLength = exports.getTestOutputDir = exports.createFileNameFromString = exports.terminate = exports.initialize = exports.HierarchyCacheMode = void 0;
/**
* @module Hierarchies
*
* @docs-group-description Hierarchies
* Types for testing hierarchies.
*/
__exportStar(require("./presentation-testing/HierarchyBuilder.js"), exports);
/**
* @module Content
*
* @docs-group-description Content
* Types for testing content.
*/
__exportStar(require("./presentation-testing/ContentBuilder.js"), exports);
/**
* @module Helpers
*
* @docs-group-description Helpers
* Various test helpers.
*/
var Helpers_js_1 = require("./presentation-testing/Helpers.js");
Object.defineProperty(exports, "HierarchyCacheMode", { enumerable: true, get: function () { return Helpers_js_1.HierarchyCacheMode; } });
Object.defineProperty(exports, "initialize", { enumerable: true, get: function () { return Helpers_js_1.initialize; } });
Object.defineProperty(exports, "terminate", { enumerable: true, get: function () { return Helpers_js_1.terminate; } });
var FilenameUtils_js_1 = require("./presentation-testing/FilenameUtils.js");
Object.defineProperty(exports, "createFileNameFromString", { enumerable: true, get: function () { return FilenameUtils_js_1.createFileNameFromString; } });
Object.defineProperty(exports, "getTestOutputDir", { enumerable: true, get: function () { return FilenameUtils_js_1.getTestOutputDir; } });
Object.defineProperty(exports, "limitFilePathLength", { enumerable: true, get: function () { return FilenameUtils_js_1.limitFilePathLength; } });
Object.defineProperty(exports, "setTestOutputDir", { enumerable: true, get: function () { return FilenameUtils_js_1.setTestOutputDir; } });
Object.defineProperty(exports, "setupOutputFileLocation", { enumerable: true, get: function () { return FilenameUtils_js_1.setupOutputFileLocation; } });
/**
* @module IModel
*
* @docs-group-description IModel
* Utilities for creating test iModels that can be used to exercise presentation rules.
*/
__exportStar(require("./presentation-testing/IModelUtilities.js"), exports);
// TODO: remove when itwinjs-core 4.x is dropped.
/**
* Presentation manager working mode.
* @public
* @deprecated in 3.x. The attribute is not used by [[PresentationManager]] anymore
*/
var PresentationManagerMode;
(function (PresentationManagerMode) {
/**
* Presentation manager assumes iModels are opened in read-only mode and avoids doing some work
* related to reacting to changes in iModels.
*/
PresentationManagerMode[PresentationManagerMode["ReadOnly"] = 0] = "ReadOnly";
/**
* Presentation manager assumes iModels are opened in read-write mode and it may need to
* react to changes. This involves some additional work and gives slightly worse performance.
*/
PresentationManagerMode[PresentationManagerMode["ReadWrite"] = 1] = "ReadWrite";
})(PresentationManagerMode || (exports.PresentationManagerMode = PresentationManagerMode = {}));
//# sourceMappingURL=presentation-testing.js.map