From fd5ed2e833780cce6520c2e3e724b03307a58cbf Mon Sep 17 00:00:00 2001 From: Jesse Skinner Date: Wed, 9 Oct 2019 14:34:52 -0400 Subject: [PATCH] Add more tests to cover scenarios related to issue #3544 --- .../expected.css | 1 + .../expected.html | 4 ++++ .../input.svelte | 16 ++++++++++++++++ .../expected.css | 1 + .../expected.html | 5 +++++ .../input.svelte | 16 ++++++++++++++++ .../input.svelte | 15 ++++++++------- 7 files changed, 51 insertions(+), 7 deletions(-) create mode 100644 test/css/samples/omit-scoping-attribute-global-children/expected.css create mode 100644 test/css/samples/omit-scoping-attribute-global-children/expected.html create mode 100644 test/css/samples/omit-scoping-attribute-global-children/input.svelte create mode 100644 test/css/samples/omit-scoping-attribute-global-descendants/expected.css create mode 100644 test/css/samples/omit-scoping-attribute-global-descendants/expected.html create mode 100644 test/css/samples/omit-scoping-attribute-global-descendants/input.svelte diff --git a/test/css/samples/omit-scoping-attribute-global-children/expected.css b/test/css/samples/omit-scoping-attribute-global-children/expected.css new file mode 100644 index 0000000000..2a7a510449 --- /dev/null +++ b/test/css/samples/omit-scoping-attribute-global-children/expected.css @@ -0,0 +1 @@ +.root.svelte-xyz p{color:red} \ No newline at end of file diff --git a/test/css/samples/omit-scoping-attribute-global-children/expected.html b/test/css/samples/omit-scoping-attribute-global-children/expected.html new file mode 100644 index 0000000000..f7ee02fd83 --- /dev/null +++ b/test/css/samples/omit-scoping-attribute-global-children/expected.html @@ -0,0 +1,4 @@ +
+
+
+
\ No newline at end of file diff --git a/test/css/samples/omit-scoping-attribute-global-children/input.svelte b/test/css/samples/omit-scoping-attribute-global-children/input.svelte new file mode 100644 index 0000000000..5e52d48738 --- /dev/null +++ b/test/css/samples/omit-scoping-attribute-global-children/input.svelte @@ -0,0 +1,16 @@ + + + + +
+
+ +
+
diff --git a/test/css/samples/omit-scoping-attribute-global-descendants/expected.css b/test/css/samples/omit-scoping-attribute-global-descendants/expected.css new file mode 100644 index 0000000000..c1fd7da897 --- /dev/null +++ b/test/css/samples/omit-scoping-attribute-global-descendants/expected.css @@ -0,0 +1 @@ +html body .root.svelte-xyz p.svelte-xyz{color:red} \ No newline at end of file diff --git a/test/css/samples/omit-scoping-attribute-global-descendants/expected.html b/test/css/samples/omit-scoping-attribute-global-descendants/expected.html new file mode 100644 index 0000000000..3750091bc7 --- /dev/null +++ b/test/css/samples/omit-scoping-attribute-global-descendants/expected.html @@ -0,0 +1,5 @@ +
+
+

hello

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

hello

+
+
diff --git a/test/css/samples/omit-scoping-attribute-multiple-descendants/input.svelte b/test/css/samples/omit-scoping-attribute-multiple-descendants/input.svelte index 48d37c9628..dc77a6c794 100644 --- a/test/css/samples/omit-scoping-attribute-multiple-descendants/input.svelte +++ b/test/css/samples/omit-scoping-attribute-multiple-descendants/input.svelte @@ -1,15 +1,16 @@ -
-
-

hello

-
-
- + +
+
+

hello

+
+