diff --git a/test/runtime/samples/component-slot-named-inherits-default-lets/Nested.svelte b/test/runtime/samples/component-slot-named-inherits-default-lets/Nested.svelte new file mode 100644 index 0000000000..472af6278e --- /dev/null +++ b/test/runtime/samples/component-slot-named-inherits-default-lets/Nested.svelte @@ -0,0 +1,17 @@ + + +
+ + + + + +
\ No newline at end of file diff --git a/test/runtime/samples/component-slot-named-inherits-default-lets/_config.js b/test/runtime/samples/component-slot-named-inherits-default-lets/_config.js new file mode 100644 index 0000000000..212c57308a --- /dev/null +++ b/test/runtime/samples/component-slot-named-inherits-default-lets/_config.js @@ -0,0 +1,25 @@ +export default { + html: ` +
+

count in default slot: 0

+

count in foo slot: 0

+

count in bar slot: 0

+ +
+ `, + + async test({ assert, target, window }) { + const button = target.querySelector('button'); + + await button.dispatchEvent(new window.MouseEvent('click')); + + assert.htmlEqual(target.innerHTML, ` +
+

count in default slot: 1

+

count in foo slot: 1

+

count in bar slot: 1

+ +
+ `); + } +} \ No newline at end of file diff --git a/test/runtime/samples/component-slot-named-inherits-default-lets/main.svelte b/test/runtime/samples/component-slot-named-inherits-default-lets/main.svelte new file mode 100644 index 0000000000..51dd28b855 --- /dev/null +++ b/test/runtime/samples/component-slot-named-inherits-default-lets/main.svelte @@ -0,0 +1,17 @@ + + + +

+ count in default slot: {count} +

+ +

+ count in foo slot: {count} +

+ +

+ count in bar slot: {count} +

+
\ No newline at end of file