Skip to content

Commit 589f3dd

Browse files
committed
Minor refactoring of selector tests
1 parent f89dfc6 commit 589f3dd

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

__tests__/value.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4385,36 +4385,32 @@ describe('<selector-list>', () => {
43854385
'::before:only-child',
43864386
'::marker:empty',
43874387
'::before:nth-child(1)',
4388-
'::before:not(:only-child)',
4389-
'::before:not(:not(:only-child))',
4390-
'::before:not(type)',
4391-
'::before:not(:hover > :hover)',
4392-
'::part(name):only-child',
4393-
'::part(name):empty',
4394-
'::part(name):nth-child(1)',
4395-
'::part(name):host',
4396-
'::part(name):host(:hover)',
4397-
'::part(name):host-context(:hover)',
4398-
'::part(name):scope',
4399-
'::part(name):not(:only-child)',
4400-
'::part(name):not(type)',
4401-
'::part(name):has(:hover)',
4402-
'::part(name):not(:has(:hover))',
4403-
'::part(name):not(:hover > :hover)',
44044388
// Invalid functional pseudo argument
44054389
':has(:not(:has(type)))',
4390+
':current(:nth-child(1 of type > type))',
4391+
':current(:nth-child(1 of :has(type)))',
4392+
':current(:has(type))',
44064393
':current(:not(type > type))',
44074394
':current(:not(:has(type)))',
4408-
':host(:not(type > type))',
4409-
':host(:not(:has(type)))',
4410-
':host-context(:not(type > type))',
4411-
':host-context(:not(:has(type)))',
4395+
'::slotted(:nth-child(1 of type > type))',
4396+
'::slotted(:nth-child(1 of :has(type)))',
4397+
'::slotted(:has(type))',
4398+
'::slotted(:not(type > type))',
4399+
'::slotted(:not(:has(type)))',
4400+
'::before:not(:only-child)',
4401+
'::before:not(:not(:only-child))',
4402+
'::before:not(type)',
4403+
'::before:not(:hover > :hover)',
4404+
'::before:not(:has(:hover))',
4405+
'::marker:nth-child(1 of type)',
4406+
'::marker:nth-child(1 of type > :hover)',
4407+
'::marker:nth-child(1 of has(:hover))',
4408+
'::slotted(:not(type > type))',
4409+
'::slotted(:not(:has(type)))',
44124410
'::part(name):current(:only-child)',
44134411
'::part(name):current(type)',
44144412
'::part(name):not(:current(:only-child))',
44154413
'::part(name):not(:current(type))',
4416-
'::slotted(:not(type > type))',
4417-
'::slotted(:not(:has(type)))',
44184414
// Invalid sub-pseudo-element
44194415
'::marker::before',
44204416
'::marker::highlight(name)',
@@ -4464,7 +4460,7 @@ describe('<selector-list>', () => {
44644460
['::before:hover'],
44654461
['::before:empty'],
44664462
['::before:not(:hover, :not(:focus, :empty))'],
4467-
['::before:is(:hover, type, #id, .class, :root, :not(:root), type > :hover, :not(:focus))'],
4463+
['::before:is(:only-child, type > type)'],
44684464
['::marker:only-child'],
44694465
['::marker:nth-child(1 of :hover)'],
44704466
['::marker:not(:only-child, :not(:nth-child(1 of :hover)))'],
@@ -4473,12 +4469,16 @@ describe('<selector-list>', () => {
44734469
['::part(name):not(:current)'],
44744470
// Sub-pseudo-element
44754471
['::after::marker'],
4472+
['::after:hover::marker', '::after:hover::marker'],
44764473
['::before::marker'],
4474+
['::column::scroll-marker'],
44774475
['::first-letter::prefix'],
44784476
['::first-letter::suffix'],
4479-
['::before:hover::marker:focus', '::before:hover::marker:focus'],
44804477
['::part(name)::marker'],
44814478
['::part(name)::slotted(type)'],
4479+
['::slider-track::slider-fill'],
4480+
['::step-control::step-down'],
4481+
['::step-control::step-up'],
44824482
['::slotted(type)::marker'],
44834483
['::slotted(type)::part(name)'],
44844484
// Nesting selector

0 commit comments

Comments
 (0)