Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Dec 23, 2019
1 parent 52a315b commit d7f2a57
Show file tree
Hide file tree
Showing 48 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion test/css/samples/attribute-selector-bind/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
details[open].svelte-xyz.svelte-xyz{color:red}
details[open].svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/attribute-selector-only-name/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[foo].svelte-xyz.svelte-xyz{color:red}[baz].svelte-xyz.svelte-xyz{color:blue}
[foo].svelte-xyz{color:red}[baz].svelte-xyz{color:blue}
2 changes: 1 addition & 1 deletion test/css/samples/attribute-selector-unquoted/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[foo=bar].svelte-xyz.svelte-xyz{color:red}
[foo=bar].svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/basic/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.svelte-xyz.svelte-xyz{color:red}
div.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/css-vars/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
:root{--root-test:20}div.svelte-xyz.svelte-xyz{--test:10}
:root{--root-test:20}div.svelte-xyz{--test:10}
2 changes: 1 addition & 1 deletion test/css/samples/directive-special-character/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo\:bar.svelte-xyz.svelte-xyz{color:red}
.foo\:bar.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/empty-rule-dev/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo.svelte-xyz.svelte-xyz{}
.foo.svelte-xyz{}
2 changes: 1 addition & 1 deletion test/css/samples/global-keyframes/expected.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/css/samples/keyframes-autoprefixed/expected.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/css/samples/keyframes-from-to/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@keyframes svelte-xyz-why{from{color:red}to{color:blue}}.animated.svelte-xyz.svelte-xyz{animation:svelte-xyz-why 2s}
@keyframes svelte-xyz-why{from{color:red}to{color:blue}}.animated.svelte-xyz{animation:svelte-xyz-why 2s}
2 changes: 1 addition & 1 deletion test/css/samples/keyframes/expected.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/css/samples/local-inside-global/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div .foo.svelte-xyz.svelte-xyz{color:red}div>.foo.svelte-xyz.svelte-xyz{font-weight:bold}
div .foo.svelte-xyz{color:red}div>.foo.svelte-xyz{font-weight:bold}
2 changes: 1 addition & 1 deletion test/css/samples/media-query-word/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@media only screen and (min-width: 400px){div.svelte-xyz.svelte-xyz{color:red}}
@media only screen and (min-width: 400px){div.svelte-xyz{color:red}}
2 changes: 1 addition & 1 deletion test/css/samples/media-query/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@media(min-width: 400px){.large-screen.svelte-xyz.svelte-xyz{display:block}}
@media(min-width: 400px){.large-screen.svelte-xyz{display:block}}
2 changes: 1 addition & 1 deletion test/css/samples/nested/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo.svelte-xyz.svelte-xyz{color:red}.bar.svelte-xyz.svelte-xyz{font-style:italic}
.foo.svelte-xyz{color:red}.bar.svelte-xyz{font-style:italic}
2 changes: 1 addition & 1 deletion test/css/samples/not-selector/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.svelte-xyz.svelte-xyz:not(.foo){color:red}
.svelte-xyz:not(.foo){color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[data-foo*='bar'].svelte-xyz.svelte-xyz{color:red}
[data-foo*='bar'].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[data-foo='bar' i].svelte-xyz.svelte-xyz{color:red}
[data-foo='bar' i].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[data-foo='bar'].svelte-xyz.svelte-xyz{color:red}
[data-foo='bar'].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[data-foo='bar'].svelte-xyz.svelte-xyz{color:red}
[data-foo='bar'].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[data-foo|='bar'].svelte-xyz.svelte-xyz{color:red}
[data-foo|='bar'].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[data-foo^='bar'].svelte-xyz.svelte-xyz{color:red}
[data-foo^='bar'].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[data-foo$='bar'].svelte-xyz.svelte-xyz{color:red}
[data-foo$='bar'].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[data-foo~='bar'].svelte-xyz.svelte-xyz{color:red}
[data-foo~='bar'].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[autoplay].svelte-xyz.svelte-xyz{color:red}
[autoplay].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo.svelte-xyz.svelte-xyz{color:red}
.foo.svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo.svelte-xyz.svelte-xyz{color:red}
.foo.svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo.svelte-xyz.svelte-xyz .bar{color:red}
.foo.svelte-xyz .bar{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.svelte-xyz.svelte-xyz>p>em{color:red}
div.svelte-xyz>p>em{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.svelte-xyz.svelte-xyz>p{color:red}
div.svelte-xyz>p{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div>section>p.svelte-xyz.svelte-xyz{color:red}
div>section>p.svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div>p.svelte-xyz.svelte-xyz{color:red}
div>p.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/omit-scoping-attribute-id/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#foo.svelte-xyz.svelte-xyz{color:red}
#foo.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/omit-scoping-attribute/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
p.svelte-xyz.svelte-xyz{color:red}
p.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/pseudo-element/expected.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/css/samples/spread/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo.svelte-xyz.svelte-xyz{color:red;font-size:2em;font-family:'Comic Sans MS'}
.foo.svelte-xyz{color:red;font-size:2em;font-family:'Comic Sans MS'}
2 changes: 1 addition & 1 deletion test/css/samples/supports-query/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@supports (display: grid){.maybe-grid.svelte-xyz.svelte-xyz{display:grid}}
@supports (display: grid){.maybe-grid.svelte-xyz{display:grid}}
2 changes: 1 addition & 1 deletion test/css/samples/universal-selector/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.svelte-xyz.svelte-xyz{color:red}
.svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.svelte-xyz.svelte-xyz{@apply --funky-div;}
div.svelte-xyz{@apply --funky-div;}
2 changes: 1 addition & 1 deletion test/css/samples/unknown-at-rule/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.svelte-xyz.svelte-xyz{@apply --funky-div;}
div.svelte-xyz{@apply --funky-div;}
2 changes: 1 addition & 1 deletion test/css/samples/unused-selector-leading/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.bar.svelte-xyz.svelte-xyz{color:red}
.bar.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/unused-selector-ternary/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.active.svelte-xyz.svelte-xyz{color:red}.inactive.svelte-xyz.svelte-xyz{color:blue}
.active.svelte-xyz{color:red}.inactive.svelte-xyz{color:blue}
2 changes: 1 addition & 1 deletion test/css/samples/unused-selector/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo.svelte-xyz.svelte-xyz{color:red}
.foo.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/weird-selectors/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.-foo.svelte-xyz.svelte-xyz{color:red}[title='['].svelte-xyz.svelte-xyz{color:blue}
.-foo.svelte-xyz{color:red}[title='['].svelte-xyz{color:blue}
2 changes: 1 addition & 1 deletion test/js/samples/collapses-text-around-comments/expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
function add_css() {
var style = element("style");
style.id = "svelte-1a7i8ec-style";
style.textContent = "p.svelte-1a7i8ec.svelte-1a7i8ec{color:red}";
style.textContent = "p.svelte-1a7i8ec{color:red}";
append(document.head, style);
}

Expand Down
2 changes: 1 addition & 1 deletion test/js/samples/css-media-query/expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
function add_css() {
var style = element("style");
style.id = "svelte-1slhpfn-style";
style.textContent = "@media(min-width: 1px){div.svelte-1slhpfn.svelte-1slhpfn{color:red}}";
style.textContent = "@media(min-width: 1px){div.svelte-1slhpfn{color:red}}";
append(document.head, style);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
div.svelte-bzh57p.svelte-bzh57p{color:red}
div.svelte-4yw8vx.svelte-4yw8vx{color:green}
div.svelte-bzh57p{color:red}
div.svelte-4yw8vx{color:green}
2 changes: 1 addition & 1 deletion test/server-side-rendering/samples/styles/_expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.svelte-bzh57p.svelte-bzh57p{color:red}
div.svelte-bzh57p{color:red}

0 comments on commit d7f2a57

Please sign in to comment.