aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/solid-dom-fixtures/simpleElements
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/solid-dom-fixtures/simpleElements')
-rw-r--r--test/bun.js/solid-dom-fixtures/simpleElements/code.js9
-rw-r--r--test/bun.js/solid-dom-fixtures/simpleElements/output.bun.js5
-rw-r--r--test/bun.js/solid-dom-fixtures/simpleElements/output.js8
3 files changed, 22 insertions, 0 deletions
diff --git a/test/bun.js/solid-dom-fixtures/simpleElements/code.js b/test/bun.js/solid-dom-fixtures/simpleElements/code.js
new file mode 100644
index 000000000..c3537ee7d
--- /dev/null
+++ b/test/bun.js/solid-dom-fixtures/simpleElements/code.js
@@ -0,0 +1,9 @@
+const template = (
+ <div id="main">
+ <style>{"div { color: red; }"}</style>
+ <h1>Welcome</h1>
+ <label for={"entry"}>Edit:</label>
+ <input id="entry" type="text" />
+ {/* Comment Node */}
+ </div>
+);
diff --git a/test/bun.js/solid-dom-fixtures/simpleElements/output.bun.js b/test/bun.js/solid-dom-fixtures/simpleElements/output.bun.js
new file mode 100644
index 000000000..72d61c1e3
--- /dev/null
+++ b/test/bun.js/solid-dom-fixtures/simpleElements/output.bun.js
@@ -0,0 +1,5 @@
+var _tmpl$1 = _template$(
+ '<div id="main"><style>div { color: red; }</style><h1>Welcome</h1><label for="entry">Edit:</label><input id="entry" type="text"/></div>',
+ 8
+);
+const template = _tmpl$1.cloneNode(true);
diff --git a/test/bun.js/solid-dom-fixtures/simpleElements/output.js b/test/bun.js/solid-dom-fixtures/simpleElements/output.js
new file mode 100644
index 000000000..5d16f6767
--- /dev/null
+++ b/test/bun.js/solid-dom-fixtures/simpleElements/output.js
@@ -0,0 +1,8 @@
+import { template as _$template } from "r-dom";
+
+const _tmpl$ = /*#__PURE__*/ _$template(
+ `<div id="main"><style>div { color: red; }</style><h1>Welcome</h1><label for="entry">Edit:</label><input id="entry" type="text"></div>`,
+ 9
+);
+
+const template = _tmpl$.cloneNode(true);