From 439ef8bb5754e09dd8181c35e0f8b974a0435b71 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 16 Feb 2026 11:00:08 -0500 Subject: [PATCH] another failing test --- .../async-boundary-pending-live/_config.js | 38 +++++++++++++++++++ .../async-boundary-pending-live/main.svelte | 31 +++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 packages/svelte/tests/runtime-runes/samples/async-boundary-pending-live/_config.js create mode 100644 packages/svelte/tests/runtime-runes/samples/async-boundary-pending-live/main.svelte diff --git a/packages/svelte/tests/runtime-runes/samples/async-boundary-pending-live/_config.js b/packages/svelte/tests/runtime-runes/samples/async-boundary-pending-live/_config.js new file mode 100644 index 0000000000..1d860cded5 --- /dev/null +++ b/packages/svelte/tests/runtime-runes/samples/async-boundary-pending-live/_config.js @@ -0,0 +1,38 @@ +import { tick } from 'svelte'; +import { test } from '../../test'; + +export default test({ + html: ` + + +

0

+ `, + + async test({ assert, target }) { + const [increment, shift] = target.querySelectorAll('button'); + + increment.click(); + await tick(); + + assert.htmlEqual( + target.innerHTML, + ` + + +

1

+ ` + ); + + shift.click(); + await tick(); + + assert.htmlEqual( + target.innerHTML, + ` + + +

resolved

+ ` + ); + } +}); diff --git a/packages/svelte/tests/runtime-runes/samples/async-boundary-pending-live/main.svelte b/packages/svelte/tests/runtime-runes/samples/async-boundary-pending-live/main.svelte new file mode 100644 index 0000000000..764fd20a51 --- /dev/null +++ b/packages/svelte/tests/runtime-runes/samples/async-boundary-pending-live/main.svelte @@ -0,0 +1,31 @@ + + + + + + + +

{await push('resolved')}

+ + {#snippet pending()} +

{count}

+ {/snippet} +