From f57c44841890e3f98c67825f3401be6fc4ad8efe Mon Sep 17 00:00:00 2001 From: Bill Min Date: Thu, 4 Jan 2024 10:26:14 -0500 Subject: [PATCH 1/4] fix: properly handle source name change --- .../renders.expected/loading.0.html | 19 ++++++++ .../renders.expected/loading.1.html | 23 +++++++++ .../renders.expected/loading.2.html | 24 ++++++++++ .../renders.expected/loading.3.html | 48 +++++++++++++++++++ .../renders.expected/loading.4.html | 40 ++++++++++++++++ .../renders.expected/step-0.0.html | 35 ++++++++++++++ .../renders.expected/step-0.1.html | 37 ++++++++++++++ .../components/app.marko | 16 +++++++ .../ssr-change-src-and-name/embed.marko | 25 ++++++++++ .../ssr-change-src-and-name/embed_2.marko | 15 ++++++ .../ssr-change-src-and-name/index.marko | 13 +++++ .../ssr-change-src-and-name/slot_1.html | 1 + .../ssr-change-src-and-name/slot_2.html | 1 + .../web.component.ts | 20 ++++---- .../stream-source-component/web.component.ts | 4 +- 15 files changed, 309 insertions(+), 12 deletions(-) create mode 100644 src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.0.html create mode 100644 src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.1.html create mode 100644 src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.2.html create mode 100644 src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.3.html create mode 100644 src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.4.html create mode 100644 src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/step-0.0.html create mode 100644 src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/step-0.1.html create mode 100644 src/components/micro-frame-sse/__tests__/fixtures/ssr-change-src-and-name/components/app.marko create mode 100644 src/components/micro-frame-sse/__tests__/fixtures/ssr-change-src-and-name/embed.marko create mode 100644 src/components/micro-frame-sse/__tests__/fixtures/ssr-change-src-and-name/embed_2.marko create mode 100644 src/components/micro-frame-sse/__tests__/fixtures/ssr-change-src-and-name/index.marko create mode 100644 src/components/micro-frame-sse/__tests__/fixtures/ssr-change-src-and-name/slot_1.html create mode 100644 src/components/micro-frame-sse/__tests__/fixtures/ssr-change-src-and-name/slot_2.html diff --git a/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.0.html b/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.0.html new file mode 100644 index 0000000..721429b --- /dev/null +++ b/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.0.html @@ -0,0 +1,19 @@ +
+ Host app +
+ +
+
+
\ No newline at end of file diff --git a/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.1.html b/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.1.html new file mode 100644 index 0000000..99f8541 --- /dev/null +++ b/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.1.html @@ -0,0 +1,23 @@ +
+ Host app +
+ +
+
+
+

+ test_html for slot_1 +

+
\ No newline at end of file diff --git a/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.2.html b/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.2.html new file mode 100644 index 0000000..808df14 --- /dev/null +++ b/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.2.html @@ -0,0 +1,24 @@ +
+ Host app +
+ +
+
+
+

+ test_html for slot_1 +

+ next chunk for slot_1 +
\ No newline at end of file diff --git a/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.3.html b/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.3.html new file mode 100644 index 0000000..e84c2eb --- /dev/null +++ b/src/components/micro-frame-sse/__tests__/__snapshots__/micro-frame-sse/ssr-change-src-and-name/renders.expected/loading.3.html @@ -0,0 +1,48 @@ +
+ Host app +
+ +
+
+
+

+ test_html for slot_1 +

+ next chunk for slot_1 +
+
+

+ test_html for slot_2 +

+
+ +