@@ -1646,21 +1646,21 @@ test('select.matches()', async function (t) {
1646
1646
} )
1647
1647
1648
1648
await t . test ( 'should match if w/o elements or texts' , async function ( ) {
1649
- assert . ok ( matches ( ':empty' , h ( '' , u ( 'comment' , '?' ) ) ) )
1649
+ assert . ok ( matches ( ':empty' , h ( '' , [ u ( 'comment' , '?' ) ] ) ) )
1650
1650
} )
1651
1651
1652
1652
await t . test ( 'should not match if w/ elements' , async function ( ) {
1653
1653
assert . ok ( ! matches ( ':empty' , h ( '' , h ( '' ) ) ) )
1654
1654
} )
1655
1655
1656
1656
await t . test ( 'should not match if w/ text' , async function ( ) {
1657
- assert . ok ( ! matches ( ':empty' , h ( '' , u ( 'text' , '.' ) ) ) )
1657
+ assert . ok ( ! matches ( ':empty' , h ( '' , [ u ( 'text' , '.' ) ] ) ) )
1658
1658
} )
1659
1659
1660
1660
await t . test (
1661
1661
'should not match if w/ white-space text' ,
1662
1662
async function ( ) {
1663
- assert . ok ( ! matches ( ':empty' , h ( '' , u ( 'text' , ' ' ) ) ) )
1663
+ assert . ok ( ! matches ( ':empty' , h ( '' , [ u ( 'text' , ' ' ) ] ) ) )
1664
1664
}
1665
1665
)
1666
1666
} )
@@ -1675,15 +1675,15 @@ test('select.matches()', async function (t) {
1675
1675
} )
1676
1676
1677
1677
await t . test ( 'should match if w/ white-space text' , async function ( ) {
1678
- assert . ok ( matches ( ':blank' , h ( '' , u ( 'text' , ' ' ) ) ) )
1678
+ assert . ok ( matches ( ':blank' , h ( '' , [ u ( 'text' , ' ' ) ] ) ) )
1679
1679
} )
1680
1680
1681
1681
await t . test ( 'should not match if w/ elements' , async function ( ) {
1682
1682
assert . ok ( ! matches ( ':blank' , h ( '' , h ( '' ) ) ) )
1683
1683
} )
1684
1684
1685
1685
await t . test ( 'should not match if w/ text' , async function ( ) {
1686
- assert . ok ( ! matches ( ':blank' , h ( '' , u ( 'text' , '.' ) ) ) )
1686
+ assert . ok ( ! matches ( ':blank' , h ( '' , [ u ( 'text' , '.' ) ] ) ) )
1687
1687
} )
1688
1688
} )
1689
1689
0 commit comments