Skip to content

Commit 80ce723

Browse files
committed
update css tests
1 parent de0aa3c commit 80ce723

File tree

6 files changed

+27
-11
lines changed

6 files changed

+27
-11
lines changed

test/css/samples/nested/input.svelte

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<script>
2+
export let dynamic;
3+
</script>
4+
15
<span class='foo'>
26
<span class='bar'>text</span>
37
</span>

test/css/samples/omit-scoping-attribute-attribute-selector-equals-dynamic/input.svelte

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<script>
2+
export let dynamic;
3+
</script>
4+
15
<div>
26
<p data-foo='{dynamic}'>this is styled</p>
37
<p data-foo='baz'>this is unstyled</p>

test/css/samples/spread/input.svelte

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<script>
2+
export let props;
3+
</script>
4+
15
<div {...props} >
26
Big red Comic Sans
37
</div>

test/css/samples/unused-selector-ternary/_config.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ export default {
88
code: `css-unused-selector`,
99
message: "Unused CSS selector",
1010
start: {
11-
line: 12,
11+
line: 16,
1212
column: 1,
13-
character: 123
13+
character: 163
1414
},
1515
end: {
16-
line: 12,
16+
line: 16,
1717
column: 13,
18-
character: 135
18+
character: 175
1919
},
20-
pos: 123,
20+
pos: 163,
2121
frame: `
22-
10: }
23-
11:
24-
12: .maybeactive {
22+
14: }
23+
15:
24+
16: .maybeactive {
2525
^
26-
13: color: green;
27-
14: }`
26+
17: color: green;
27+
18: }`
2828
}]
2929
};

test/css/samples/unused-selector-ternary/input.svelte

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<script>
2+
export let active;
3+
</script>
4+
15
<div class='{active ? "active": "inactive"}'></div>
26

37
<style>

test/sourcemaps/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { loadConfig, svelte } from "../helpers.js";
55
import { SourceMapConsumer } from "source-map";
66
import { getLocator } from "locate-character";
77

8-
describe.only("sourcemaps", () => {
8+
describe("sourcemaps", () => {
99
fs.readdirSync("test/sourcemaps/samples").forEach(dir => {
1010
if (dir[0] === ".") return;
1111

0 commit comments

Comments
 (0)