/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. */ // Shadow DOM chrome styles and document-scoped instruction typography. // Imported as raw strings so they can be adopted into constructable stylesheets. import headerStyles from './manual-header.css?inline'; import instructionsStyles from './manual-instructions.css?inline'; import { getFavoriteId, loadFavoriteIds, saveFavoriteIds, toggleFavoriteId, updateFavoriteButtonState } from './catalog-favorites.js'; import { createFavoriteIcon } from './favorite-icon.js'; const MANUAL_HEADER_DATA_META = 'ck-manual-header'; const headerStyleSheet = createStyleSheet( headerStyles ); const instructionsStyleSheet = createStyleSheet( instructionsStyles ); /* eslint-disable @stylistic/max-len */ const TEMPLATE = /* html */ `
← All tests
`; /* eslint-enable @stylistic/max-len */ /** * `` renders the manual test chrome: a header bar with the test name, * package name, back-to-index link and favorite toggle, plus a collapsible instructions * panel that projects the element's light-DOM children (default slot). * * The manual test server injects a `` carrying the package * name and the base-aware catalog href, and the `