You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/tests/runtime-browser/custom-elements-samples/shadow-root-init-options/_config.js

19 lines
548 B

import { test } from '../../assert';
const tick = () => Promise.resolve();
export default test({
async test({ assert, target }) {
target.innerHTML = '<custom-element></custom-element>';
await tick();
/** @type {ShadowRoot} */
const shadowRoot = target.querySelector('custom-element').shadowRoot;
assert.equal(shadowRoot.mode, 'open');
assert.equal(shadowRoot.clonable, true);
assert.equal(shadowRoot.delegatesFocus, true);
assert.equal(shadowRoot.serializable, true);
assert.equal(shadowRoot.slotAssignment, 'manual');
}
});