diff --git a/test/css/samples/omit-scoping-attribute-multiple-descendants/expected.css b/test/css/samples/omit-scoping-attribute-multiple-descendants/expected.css new file mode 100644 index 0000000000..5452f68073 --- /dev/null +++ b/test/css/samples/omit-scoping-attribute-multiple-descendants/expected.css @@ -0,0 +1 @@ +.root.svelte-xyz p.svelte-xyz{color:red} \ No newline at end of file diff --git a/test/css/samples/omit-scoping-attribute-multiple-descendants/expected.html b/test/css/samples/omit-scoping-attribute-multiple-descendants/expected.html new file mode 100644 index 0000000000..3750091bc7 --- /dev/null +++ b/test/css/samples/omit-scoping-attribute-multiple-descendants/expected.html @@ -0,0 +1,5 @@ +
+
+

hello

+
+
\ No newline at end of file diff --git a/test/css/samples/omit-scoping-attribute-multiple-descendants/input.svelte b/test/css/samples/omit-scoping-attribute-multiple-descendants/input.svelte new file mode 100644 index 0000000000..48d37c9628 --- /dev/null +++ b/test/css/samples/omit-scoping-attribute-multiple-descendants/input.svelte @@ -0,0 +1,15 @@ + + +
+
+

hello

+
+
+ + diff --git a/test/js/samples/class-added-to-element-outside-directive/expected.js b/test/js/samples/class-added-to-element-outside-directive/expected.js deleted file mode 100644 index f86ddf3c3c..0000000000 --- a/test/js/samples/class-added-to-element-outside-directive/expected.js +++ /dev/null @@ -1,83 +0,0 @@ -/* generated by Svelte vX.Y.Z */ -import { - SvelteComponent, - append, - attr, - detach, - element, - init, - insert, - noop, - safe_not_equal -} from "svelte/internal"; - -function add_css() { - var style = element("style"); - style.id = 'svelte-1l99rp3-style'; - style.textContent = ".root.svelte-1l99rp3 i.svelte-1l99rp3{color:red}"; - append(document.head, style); -} - -// (8:1) {#if true} -function create_if_block(ctx) { - var span; - - return { - c() { - span = element("span"); - span.innerHTML = `hello`; - attr(span, "class", "" + (`test`) + " svelte-1l99rp3"); - }, - - m(target, anchor) { - insert(target, span, anchor); - }, - - d(detaching) { - if (detaching) { - detach(span); - } - } - }; -} - -function create_fragment(ctx) { - var div; - - var if_block = (true) && create_if_block(ctx); - - return { - c() { - div = element("div"); - if (if_block) if_block.c(); - attr(div, "class", "root svelte-1l99rp3"); - }, - - m(target, anchor) { - insert(target, div, anchor); - if (if_block) if_block.m(div, null); - }, - - p: noop, - i: noop, - o: noop, - - d(detaching) { - if (detaching) { - detach(div); - } - - if (if_block) if_block.d(); - } - }; -} - -class Component extends SvelteComponent { - constructor(options) { - super(); - if (!document.getElementById("svelte-1l99rp3-style")) add_css(); - init(this, options, null, create_fragment, safe_not_equal, []); - } -} - -export default Component; \ No newline at end of file diff --git a/test/js/samples/class-added-to-element-outside-directive/input.svelte b/test/js/samples/class-added-to-element-outside-directive/input.svelte deleted file mode 100644 index e7b73860fc..0000000000 --- a/test/js/samples/class-added-to-element-outside-directive/input.svelte +++ /dev/null @@ -1,13 +0,0 @@ - - -
- {#if true} - - hello - - {/if} -