@@ -217,7 +217,7 @@ test('select.matches()', (t) => {
217
217
'true if attribute matches (space-separated list, 2)'
218
218
)
219
219
t . ok (
220
- matches ( '[srcset=cat-big.jpg ]' , h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } ) ) ,
220
+ matches ( '[accept=audio/* ]' , h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } ) ) ,
221
221
'true if attribute matches (comma-separated list)'
222
222
)
223
223
t . ok (
@@ -254,7 +254,7 @@ test('select.matches()', (t) => {
254
254
'false if attribute does not matches (space-separated list, 2)'
255
255
)
256
256
t . notOk (
257
- matches ( '[srcset=cat-small.jpg ]' , h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } ) ) ,
257
+ matches ( '[accept=image/* ]' , h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } ) ) ,
258
258
'false if attribute does not matches (comma-separated list)'
259
259
)
260
260
t . notOk (
@@ -295,7 +295,7 @@ test('select.matches()', (t) => {
295
295
'true if attribute starts with (space-separated list)'
296
296
)
297
297
t . ok (
298
- matches ( '[srcset^=cat ]' , h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } ) ) ,
298
+ matches ( '[accept^=audio ]' , h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } ) ) ,
299
299
'true if attribute starts with (comma-separated list)'
300
300
)
301
301
t . ok (
@@ -328,7 +328,7 @@ test('select.matches()', (t) => {
328
328
'false if attribute does not start with (space-separated list)'
329
329
)
330
330
t . notOk (
331
- matches ( '[srcset^=dog ]' , h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } ) ) ,
331
+ matches ( '[accept^=video ]' , h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } ) ) ,
332
332
'false if attribute does not start with (comma-separated list)'
333
333
)
334
334
t . notOk (
@@ -369,7 +369,7 @@ test('select.matches()', (t) => {
369
369
'true if attribute ends with (space-separated list)'
370
370
)
371
371
t . ok (
372
- matches ( '[srcset$=jpg ]' , h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } ) ) ,
372
+ matches ( '[accept$=* ]' , h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } ) ) ,
373
373
'true if attribute ends with (comma-separated list)'
374
374
)
375
375
t . ok (
@@ -402,7 +402,7 @@ test('select.matches()', (t) => {
402
402
'false if attribute does not end with (space-separated list)'
403
403
)
404
404
t . notOk (
405
- matches ( '[srcset$=png ]' , h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } ) ) ,
405
+ matches ( '[accept$=doc ]' , h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } ) ) ,
406
406
'false if attribute does not end with (comma-separated list)'
407
407
)
408
408
t . notOk (
@@ -443,7 +443,7 @@ test('select.matches()', (t) => {
443
443
'true if attribute contains (space-separated list)'
444
444
)
445
445
t . ok (
446
- matches ( '[srcset*=big ]' , h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } ) ) ,
446
+ matches ( '[accept*=audio/* ]' , h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } ) ) ,
447
447
'true if attribute contains (comma-separated list)'
448
448
)
449
449
t . ok (
@@ -476,7 +476,7 @@ test('select.matches()', (t) => {
476
476
'false if attribute does not contain (space-separated list)'
477
477
)
478
478
t . notOk (
479
- matches ( '[srcset*=small ]' , h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } ) ) ,
479
+ matches ( '[accept*=video/* ]' , h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } ) ) ,
480
480
'false if attribute does not contain (comma-separated list)'
481
481
)
482
482
@@ -521,8 +521,8 @@ test('select.matches()', (t) => {
521
521
)
522
522
t . ok (
523
523
matches (
524
- '[srcset~=cat-big.jpg ]' ,
525
- h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } )
524
+ '[accept~=audio/* ]' ,
525
+ h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } )
526
526
) ,
527
527
'true if attribute matches (comma-separated list)'
528
528
)
@@ -561,8 +561,8 @@ test('select.matches()', (t) => {
561
561
)
562
562
t . notOk (
563
563
matches (
564
- '[srcset~=cat-small.jpg ]' ,
565
- h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } )
564
+ '[accept~=video/* ]' ,
565
+ h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } )
566
566
) ,
567
567
'false if attribute does not matches (comma-separated list)'
568
568
)
@@ -618,7 +618,7 @@ test('select.matches()', (t) => {
618
618
'true if attribute matches (space-separated list, 2)'
619
619
)
620
620
t . ok (
621
- matches ( '[srcset|=cat-big.jpg ]' , h ( 'source ' , { srcSet : [ 'cat-big.jpg '] } ) ) ,
621
+ matches ( '[accept|=audio/* ]' , h ( 'input ' , { type : 'file' , accept : [ 'audio/* '] } ) ) ,
622
622
'true if attribute matches (comma-separated list)'
623
623
)
624
624
t . ok (
@@ -655,10 +655,7 @@ test('select.matches()', (t) => {
655
655
'false if attribute does not matches (space-separated list, 2)'
656
656
)
657
657
t . notOk (
658
- matches (
659
- '[srcset|=cat-small.jpg]' ,
660
- h ( 'source' , { srcSet : [ 'cat-big.jpg' ] } )
661
- ) ,
658
+ matches ( '[accept|=video/*]' , h ( 'input' , { type : 'file' , accept : [ 'audio/*' ] } ) ) ,
662
659
'false if attribute does not matches (comma-separated list)'
663
660
)
664
661
t . notOk (
0 commit comments