pull/7800/head
Simon H 3 years ago committed by GitHub
parent c4dd25ec99
commit b65d94d388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,12 +5,12 @@ export default {
test: async ({ component, assert, window, waitUntil }) => { test: async ({ component, assert, window, waitUntil }) => {
assert.htmlEqual(window.document.head.innerHTML, ''); assert.htmlEqual(window.document.head.innerHTML, '');
component.visible = true; component.visible = true;
assert.htmlEqual(window.document.head.innerHTML, '<style></style>'); assert.htmlEqual(window.document.head.innerHTML, '<style>/* empty */</style>');
await waitUntil(() => window.document.head.innerHTML === ''); await waitUntil(() => window.document.head.innerHTML === '');
assert.htmlEqual(window.document.head.innerHTML, ''); assert.htmlEqual(window.document.head.innerHTML, '');
component.visible = false; component.visible = false;
assert.htmlEqual(window.document.head.innerHTML, '<style></style>'); assert.htmlEqual(window.document.head.innerHTML, '<style>/* empty */</style>');
await waitUntil(() => window.document.head.innerHTML === ''); await waitUntil(() => window.document.head.innerHTML === '');
assert.htmlEqual(window.document.head.innerHTML, ''); assert.htmlEqual(window.document.head.innerHTML, '');
} }

@ -1,4 +1,4 @@
<svelte:options tag="my-element" /> <svelte:options customElement="my-element" />
<h1>Heading 1</h1> <h1>Heading 1</h1>
<span>Span 1</span> <span>Span 1</span>

@ -1,4 +1,4 @@
<svelte:options tag="custom-element" /> <svelte:options customElement="custom-element" />
<h1>test</h1> <h1>test</h1>
<slot> <slot>

Loading…
Cancel
Save