diff --git a/test/hydration/index.js b/test/hydration/index.js
index e356b8670b..30647cace1 100644
--- a/test/hydration/index.js
+++ b/test/hydration/index.js
@@ -14,7 +14,7 @@ let compileOptions = null;
const sveltePath = process.cwd();
-describe.only('hydration', () => {
+describe('hydration', () => {
before(() => {
const svelte = loadSvelte();
diff --git a/test/js/samples/bind-width-height/input.svelte b/test/js/samples/bind-width-height/input.svelte
index 5c53d688ba..1a3bd05eef 100644
--- a/test/js/samples/bind-width-height/input.svelte
+++ b/test/js/samples/bind-width-height/input.svelte
@@ -1,3 +1,8 @@
+
+
some content
\ No newline at end of file
diff --git a/test/js/samples/debug-empty/expected.js b/test/js/samples/debug-empty/expected.js
index 4a6393388c..c0b24cd269 100644
--- a/test/js/samples/debug-empty/expected.js
+++ b/test/js/samples/debug-empty/expected.js
@@ -14,7 +14,7 @@ function create_fragment(ctx) {
text2 = createText("!");
text3 = createText("\n");
debugger;
- addLoc(h1, file, 0, 0, 0);
+ addLoc(h1, file, 4, 0, 38);
},
l: function claim(nodes) {
diff --git a/test/js/samples/debug-empty/input.svelte b/test/js/samples/debug-empty/input.svelte
index 11da4f6d15..24f03b00c1 100644
--- a/test/js/samples/debug-empty/input.svelte
+++ b/test/js/samples/debug-empty/input.svelte
@@ -1,2 +1,6 @@
+
+
Hello {name}!
{@debug}
\ No newline at end of file
diff --git a/test/js/samples/debug-foo-bar-baz-things/expected.js b/test/js/samples/debug-foo-bar-baz-things/expected.js
index b56d333238..9085f4dd99 100644
--- a/test/js/samples/debug-foo-bar-baz-things/expected.js
+++ b/test/js/samples/debug-foo-bar-baz-things/expected.js
@@ -9,7 +9,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
-// (1:0) {#each things as thing}
+// (8:0) {#each things as thing}
function create_each_block(ctx) {
var span, text0_value = ctx.thing.name, text0, text1;
@@ -24,7 +24,7 @@ function create_each_block(ctx) {
console.log({ foo, bar, baz, thing });
debugger;
}
- addLoc(span, file, 1, 1, 25);
+ addLoc(span, file, 8, 1, 116);
},
m: function mount(target, anchor) {
@@ -75,7 +75,7 @@ function create_fragment(ctx) {
p = createElement("p");
text1 = createText("foo: ");
text2 = createText(ctx.foo);
- addLoc(p, file, 5, 0, 91);
+ addLoc(p, file, 12, 0, 182);
},
l: function claim(nodes) {
diff --git a/test/js/samples/debug-foo-bar-baz-things/input.svelte b/test/js/samples/debug-foo-bar-baz-things/input.svelte
index 6fa8611415..df6095c52d 100644
--- a/test/js/samples/debug-foo-bar-baz-things/input.svelte
+++ b/test/js/samples/debug-foo-bar-baz-things/input.svelte
@@ -1,3 +1,10 @@
+
+
{#each things as thing}
{thing.name}
{@debug foo, bar, baz, thing}
diff --git a/test/js/samples/debug-foo/expected.js b/test/js/samples/debug-foo/expected.js
index 35d0a1f18f..128139e64b 100644
--- a/test/js/samples/debug-foo/expected.js
+++ b/test/js/samples/debug-foo/expected.js
@@ -9,7 +9,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
-// (1:0) {#each things as thing}
+// (6:0) {#each things as thing}
function create_each_block(ctx) {
var span, text0_value = ctx.thing.name, text0, text1;
@@ -24,7 +24,7 @@ function create_each_block(ctx) {
console.log({ foo });
debugger;
}
- addLoc(span, file, 1, 1, 25);
+ addLoc(span, file, 6, 1, 82);
},
m: function mount(target, anchor) {
@@ -75,7 +75,7 @@ function create_fragment(ctx) {
p = createElement("p");
text1 = createText("foo: ");
text2 = createText(ctx.foo);
- addLoc(p, file, 5, 0, 74);
+ addLoc(p, file, 10, 0, 131);
},
l: function claim(nodes) {
diff --git a/test/js/samples/debug-foo/input.svelte b/test/js/samples/debug-foo/input.svelte
index 6e926a4015..553f080d94 100644
--- a/test/js/samples/debug-foo/input.svelte
+++ b/test/js/samples/debug-foo/input.svelte
@@ -1,3 +1,8 @@
+
+
{#each things as thing}
{thing.name}
{@debug foo}
diff --git a/test/js/samples/debug-ssr-foo/expected.js b/test/js/samples/debug-ssr-foo/expected.js
index afad023a3f..c7edd8bf0a 100644
--- a/test/js/samples/debug-ssr-foo/expected.js
+++ b/test/js/samples/debug-ssr-foo/expected.js
@@ -4,8 +4,11 @@ import { create_ssr_component, debug, each, escape } from "svelte/internal";
const SvelteComponent = create_ssr_component(($$result, $$props, $$bindings, $$slots) => {
let { things, foo } = $$props;
+ if ($$props.things === void 0 && $$bindings.things && things !== void 0) $$bindings.things(things);
+ if ($$props.foo === void 0 && $$bindings.foo && foo !== void 0) $$bindings.foo(foo);
+
return `${each(things, (thing) => `${escape(thing.name)}
- ${debug(null, 2, 2, { foo })}`)}
+ ${debug(null, 7, 2, { foo })}`)}
foo: ${escape(foo)}
`;
});
diff --git a/test/js/samples/debug-ssr-foo/input.svelte b/test/js/samples/debug-ssr-foo/input.svelte
index 6e926a4015..553f080d94 100644
--- a/test/js/samples/debug-ssr-foo/input.svelte
+++ b/test/js/samples/debug-ssr-foo/input.svelte
@@ -1,3 +1,8 @@
+
+
{#each things as thing}
{thing.name}
{@debug foo}
diff --git a/test/js/samples/deconflict-builtins/expected.js b/test/js/samples/deconflict-builtins/expected.js
index 7ad954e330..e81a3a5c41 100644
--- a/test/js/samples/deconflict-builtins/expected.js
+++ b/test/js/samples/deconflict-builtins/expected.js
@@ -7,7 +7,7 @@ function get_each_context(ctx, list, i) {
return child_ctx;
}
-// (1:0) {#each createElement as node}
+// (5:0) {#each createElement as node}
function create_each_block(ctx) {
var span, text_value = ctx.node, text;
diff --git a/test/js/samples/deconflict-builtins/input.svelte b/test/js/samples/deconflict-builtins/input.svelte
index 48a413b323..01052de947 100644
--- a/test/js/samples/deconflict-builtins/input.svelte
+++ b/test/js/samples/deconflict-builtins/input.svelte
@@ -1,3 +1,7 @@
+
+
{#each createElement as node}
{node}
{/each}
\ No newline at end of file
diff --git a/test/js/samples/do-use-dataset/input.svelte b/test/js/samples/do-use-dataset/input.svelte
index ffd72ac6ee..e340b2610f 100644
--- a/test/js/samples/do-use-dataset/input.svelte
+++ b/test/js/samples/do-use-dataset/input.svelte
@@ -1,2 +1,6 @@
+
+
\ No newline at end of file
diff --git a/test/js/samples/dont-invalidate-this/expected.js b/test/js/samples/dont-invalidate-this/expected.js
index db21ccdd64..cc481d26b8 100644
--- a/test/js/samples/dont-invalidate-this/expected.js
+++ b/test/js/samples/dont-invalidate-this/expected.js
@@ -39,4 +39,4 @@ class SvelteComponent extends SvelteComponent_1 {
}
}
-export default SvelteComponent;
+export default SvelteComponent;
\ No newline at end of file
diff --git a/test/js/samples/dont-use-dataset-in-legacy/input.svelte b/test/js/samples/dont-use-dataset-in-legacy/input.svelte
index ffd72ac6ee..e340b2610f 100644
--- a/test/js/samples/dont-use-dataset-in-legacy/input.svelte
+++ b/test/js/samples/dont-use-dataset-in-legacy/input.svelte
@@ -1,2 +1,6 @@
+
+
\ No newline at end of file
diff --git a/test/js/samples/dont-use-dataset-in-svg/input.svelte b/test/js/samples/dont-use-dataset-in-svg/input.svelte
index fe6c4eba9b..969377de33 100644
--- a/test/js/samples/dont-use-dataset-in-svg/input.svelte
+++ b/test/js/samples/dont-use-dataset-in-svg/input.svelte
@@ -1,3 +1,7 @@
+
+