update test

pull/14456/head
Rich Harris 2 years ago
parent e3b6e21a9a
commit 344c132813

@ -2,18 +2,32 @@ import { test } from '../../test';
export default test({
warnings: [
{
code: 'css_unused_selector',
message: 'Unused CSS selector "p .foo"',
start: {
line: 28,
column: 1,
character: 356
},
end: {
line: 28,
column: 7,
character: 362
}
},
{
code: 'css_unused_selector',
message: 'Unused CSS selector "span div"',
start: {
line: 31,
column: 1,
character: 461
character: 383
},
end: {
line: 31,
column: 9,
character: 469
character: 391
}
}
]

@ -11,9 +11,9 @@
p.svelte-xyz span:where(.svelte-xyz) {
color: green;
}
p.svelte-xyz .foo:where(.svelte-xyz) {
color: purple; /* doesn't match, but our static analysis doesn't handle this currently */
}
/* (unused) p .foo {
color: red;
}*/
/* (unused) span div {
color: red;
}*/

@ -26,9 +26,9 @@
color: green;
}
p .foo {
color: purple; /* doesn't match, but our static analysis doesn't handle this currently */
color: red;
}
span div {
color: red;
}
</style>
</style>

Loading…
Cancel
Save