From 041ef059f9a15690d6ca925cd87eec73865de95e Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Mon, 1 May 2023 17:39:56 -0400 Subject: [PATCH] Add test to deal with 5 layers of slot forwarding and defaults --- .../Component1.svelte | 13 +++++++++++++ .../Component2.svelte | 13 +++++++++++++ .../Component3.svelte | 13 +++++++++++++ .../Component4.svelte | 5 +++++ .../_config.js | 9 +++++++++ .../main.svelte | 7 +++++++ 6 files changed, 60 insertions(+) create mode 100644 test/runtime/samples/slot-forwarding-default-5-layers-deep/Component1.svelte create mode 100644 test/runtime/samples/slot-forwarding-default-5-layers-deep/Component2.svelte create mode 100644 test/runtime/samples/slot-forwarding-default-5-layers-deep/Component3.svelte create mode 100644 test/runtime/samples/slot-forwarding-default-5-layers-deep/Component4.svelte create mode 100644 test/runtime/samples/slot-forwarding-default-5-layers-deep/_config.js create mode 100644 test/runtime/samples/slot-forwarding-default-5-layers-deep/main.svelte diff --git a/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component1.svelte b/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component1.svelte new file mode 100644 index 0000000000..5879bdfc90 --- /dev/null +++ b/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component1.svelte @@ -0,0 +1,13 @@ + + + + + +

Component 2 second default slot

+
+ + + +
diff --git a/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component2.svelte b/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component2.svelte new file mode 100644 index 0000000000..daaf8b6d35 --- /dev/null +++ b/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component2.svelte @@ -0,0 +1,13 @@ + + + + + + +

Component 3 third default slot

+
+ + +
diff --git a/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component3.svelte b/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component3.svelte new file mode 100644 index 0000000000..626fa36bc1 --- /dev/null +++ b/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component3.svelte @@ -0,0 +1,13 @@ + + + + + + + +

Component 4 fourth default slot

+
+ +
diff --git a/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component4.svelte b/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component4.svelte new file mode 100644 index 0000000000..8fdcb379a8 --- /dev/null +++ b/test/runtime/samples/slot-forwarding-default-5-layers-deep/Component4.svelte @@ -0,0 +1,5 @@ +First slot's default text +Second slot's default text +Third slot's default text +Fourth slot's default text +Fifth slot's default text diff --git a/test/runtime/samples/slot-forwarding-default-5-layers-deep/_config.js b/test/runtime/samples/slot-forwarding-default-5-layers-deep/_config.js new file mode 100644 index 0000000000..221eec7638 --- /dev/null +++ b/test/runtime/samples/slot-forwarding-default-5-layers-deep/_config.js @@ -0,0 +1,9 @@ +export default { + html: ` +

First slot

+

Component 2 second default slot

+

Component 3 third default slot

+

Component 4 fourth default slot

+ Fifth slot's default text + ` +}; diff --git a/test/runtime/samples/slot-forwarding-default-5-layers-deep/main.svelte b/test/runtime/samples/slot-forwarding-default-5-layers-deep/main.svelte new file mode 100644 index 0000000000..079fec99eb --- /dev/null +++ b/test/runtime/samples/slot-forwarding-default-5-layers-deep/main.svelte @@ -0,0 +1,7 @@ + + + +

First slot

+