Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 24, 2018
1 parent f3d0ef3 commit 9971283
Show file tree
Hide file tree
Showing 55 changed files with 57 additions and 57 deletions.
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]{color:red}[baz][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]{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] div{color:red}
div.svelte-xyz,.svelte-xyz div{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/cascade-false-empty-rule-dev/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo[svelte-xyz]{}
.foo.svelte-xyz{}

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

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]{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/cascade-false-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/cascade-false-pseudo-element/expected.css

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

Original file line number Diff line number Diff line change
@@ -1 +1 @@
[svelte-xyz]{color:red}
.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/cascade-false/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div[svelte-xyz]{color:red}div.foo[svelte-xyz]{color:blue}.foo[svelte-xyz]{font-weight:bold}
div.svelte-xyz{color:red}div.foo.svelte-xyz{color:blue}.foo.svelte-xyz{font-weight:bold}
2 changes: 1 addition & 1 deletion test/css/samples/combinator-child/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.test[svelte-xyz]>div[svelte-xyz]{color:#0af}
.test.svelte-xyz>div.svelte-xyz{color:#0af}
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 @@
div[svelte-xyz],[svelte-xyz] div{--test:10}
div.svelte-xyz,.svelte-xyz div{--test:10}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
p[svelte-xyz] span[svelte-xyz]{color:red}
p.svelte-xyz span.svelte-xyz{color:red}
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/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] div{color:red}}
@media only screen and (min-width: 400px){div.svelte-xyz,.svelte-xyz div{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){[svelte-xyz].large-screen,[svelte-xyz] .large-screen{display:block}}
@media(min-width: 400px){.svelte-xyz.large-screen,.svelte-xyz .large-screen{display:block}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[data-foo*='bar'][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]{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]{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]{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]{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]{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]{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]{color:red}
[data-foo~='bar'].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[autoplay][svelte-xyz]{color:red}
[autoplay].svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo[svelte-xyz]{color:red}
.foo.svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo[svelte-xyz]{color:red}
.foo.svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.foo[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]>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]>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]{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]{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]{color:red}
#foo.svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div[svelte-xyz] section p[svelte-xyz]{color:red}
div.svelte-xyz section p.svelte-xyz{color:red}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div[svelte-xyz] p[svelte-xyz]{color:red}
div.svelte-xyz p.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]{color:red}
p.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/refs-qualified/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[svelte-ref-button].active[svelte-xyz]{color:red}
[svelte-ref-button].active.svelte-xyz{color:red}
2 changes: 1 addition & 1 deletion test/css/samples/refs/expected.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[svelte-ref-a][svelte-xyz]{color:red}[svelte-ref-b][svelte-xyz]{color:green}
[svelte-ref-a].svelte-xyz{color:red}[svelte-ref-b].svelte-xyz{color:green}
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,.svelte-xyz *{color:red}
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] div{@apply --funky-div;}
div.svelte-xyz,.svelte-xyz div{@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]{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]{color:red}.inactive[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]{color:red}
.foo.svelte-xyz{color:red}
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function encapsulateStyles(node) {
function add_css() {
var style = createElement("style");
style.id = 'svelte-2794052100-style';
style.textContent = "p[svelte-2794052100],[svelte-2794052100] p{color:red}";
style.textContent = "p.svelte-2794052100,.svelte-2794052100 p{color:red}";
appendNode(style, document.head);
}

Expand Down
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 @@ -12,7 +12,7 @@ function encapsulateStyles(node) {
function add_css() {
var style = createElement("style");
style.id = 'svelte-2794052100-style';
style.textContent = "p[svelte-2794052100],[svelte-2794052100] p{color:red}";
style.textContent = "p.svelte-2794052100,.svelte-2794052100 p{color:red}";
appendNode(style, document.head);
}

Expand Down
2 changes: 1 addition & 1 deletion test/js/samples/css-media-query/expected-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function encapsulateStyles(node) {
function add_css() {
var style = createElement("style");
style.id = 'svelte-3905933315-style';
style.textContent = "@media(min-width: 1px){div[svelte-3905933315],[svelte-3905933315] div{color:red}}";
style.textContent = "@media(min-width: 1px){div.svelte-3905933315,.svelte-3905933315 div{color:red}}";
appendNode(style, document.head);
}

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 @@ -8,7 +8,7 @@ function encapsulateStyles(node) {
function add_css() {
var style = createElement("style");
style.id = 'svelte-3905933315-style';
style.textContent = "@media(min-width: 1px){div[svelte-3905933315],[svelte-3905933315] div{color:red}}";
style.textContent = "@media(min-width: 1px){div.svelte-3905933315,.svelte-3905933315 div{color:red}}";
appendNode(style, document.head);
}

Expand Down
4 changes: 2 additions & 2 deletions test/server-side-rendering/samples/styles-nested/_actual.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
div[svelte-724714405],[svelte-724714405] div{color:red}
div[svelte-300476157],[svelte-300476157] div{color:green}
div.svelte-724714405,.svelte-724714405 div{color:red}
div.svelte-300476157,.svelte-300476157 div{color:green}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
div[svelte-724714405],[svelte-724714405] div{color:red}
div[svelte-300476157],[svelte-300476157] div{color:green}
div.svelte-724714405,.svelte-724714405 div{color:red}
div.svelte-300476157,.svelte-300476157 div{color:green}
2 changes: 1 addition & 1 deletion test/server-side-rendering/samples/styles/_actual.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div[svelte-724714405],[svelte-724714405] div{color:red}
div.svelte-724714405,.svelte-724714405 div{color:red}
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-724714405],[svelte-724714405] div{color:red}
div.svelte-724714405,.svelte-724714405 div{color:red}
2 changes: 1 addition & 1 deletion test/sourcemaps/samples/css-cascade-false/output.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/sourcemaps/samples/css-cascade-false/output.css.map

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

2 changes: 1 addition & 1 deletion test/sourcemaps/samples/css/output.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/sourcemaps/samples/css/output.css.map

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

0 comments on commit 9971283

Please sign in to comment.