Skip to content

Commit bd3dcd5

Browse files
committed
Bug 1465104 [wpt PR 11229] - Move and simplify element.matches("*") test so that it works, a=testonly
Automatic update from web-platform-testsMove and simplify element.matches("*") test so that it works (#11229) The reason it didn't work before was because in Element-matches.js, it's always `someElement.matches("*")` being tested, which is the only thing that could be tested as there's not other "context" or "reference node" involved in the API surface. All of TEST_FIND is actually dead code, so dropping that is harmless. Fixes web-platform-tests/wpt#11212. -- wpt-commits: 7c0611d2ea5792fa8d9829d05aff1ab7fa648c67 wpt-pr: 11229 UltraBlame original commit: f683999cbef1b9561302c4d5452a100cbd47de99
1 parent 49dbaa3 commit bd3dcd5

File tree

2 files changed

+77
-117
lines changed

2 files changed

+77
-117
lines changed

testing/web-platform/meta/MANIFEST.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3750291,7 +3750291,7 @@ js
37502913750291
:
37502923750292
[
37502933750293
"
3750294-
d23a6e88e198f4f0f4495d6fd2775408d0635371
3750294+
be39e37d8486cc0a31bed9e1f1ee1176fa83b5d0
37502953750295
"
37502963750296
"
37502973750297
support

testing/web-platform/tests/dom/nodes/selectors.js

+76-116
Original file line numberDiff line numberDiff line change
@@ -1028,22 +1028,85 @@ TEST_QSA
10281028
/
10291029
Universal
10301030
Selector
1031-
/
1032-
/
1033-
Testing
1031+
{
1032+
name
1033+
:
1034+
"
1035+
Universal
1036+
selector
1037+
matching
1038+
all
1039+
elements
1040+
"
1041+
selector
1042+
:
10341043
"
10351044
*
10361045
"
1037-
for
1038-
entire
1039-
an
1040-
entire
1041-
context
1042-
node
1043-
is
1044-
handled
1045-
separately
1046-
.
1046+
expect
1047+
:
1048+
[
1049+
"
1050+
universal
1051+
"
1052+
"
1053+
universal
1054+
-
1055+
p1
1056+
"
1057+
"
1058+
universal
1059+
-
1060+
code1
1061+
"
1062+
"
1063+
universal
1064+
-
1065+
hr1
1066+
"
1067+
"
1068+
universal
1069+
-
1070+
pre1
1071+
"
1072+
"
1073+
universal
1074+
-
1075+
span1
1076+
"
1077+
"
1078+
universal
1079+
-
1080+
p2
1081+
"
1082+
"
1083+
universal
1084+
-
1085+
a1
1086+
"
1087+
"
1088+
universal
1089+
-
1090+
address1
1091+
"
1092+
"
1093+
universal
1094+
-
1095+
code2
1096+
"
1097+
"
1098+
universal
1099+
-
1100+
a2
1101+
"
1102+
]
1103+
level
1104+
:
1105+
2
1106+
testType
1107+
:
1108+
TEST_MATCH
1109+
}
10471110
{
10481111
name
10491112
:
@@ -14120,109 +14183,6 @@ TEST_MATCH
1412014183
}
1412114184
/
1412214185
/
14123-
Universal
14124-
Selector
14125-
{
14126-
name
14127-
:
14128-
"
14129-
Universal
14130-
selector
14131-
matching
14132-
all
14133-
descendants
14134-
of
14135-
the
14136-
specified
14137-
reference
14138-
element
14139-
"
14140-
selector
14141-
:
14142-
"
14143-
*
14144-
"
14145-
ctx
14146-
:
14147-
"
14148-
#
14149-
universal
14150-
"
14151-
expect
14152-
:
14153-
[
14154-
"
14155-
universal
14156-
-
14157-
p1
14158-
"
14159-
"
14160-
universal
14161-
-
14162-
code1
14163-
"
14164-
"
14165-
universal
14166-
-
14167-
hr1
14168-
"
14169-
"
14170-
universal
14171-
-
14172-
pre1
14173-
"
14174-
"
14175-
universal
14176-
-
14177-
span1
14178-
"
14179-
"
14180-
universal
14181-
-
14182-
p2
14183-
"
14184-
"
14185-
universal
14186-
-
14187-
a1
14188-
"
14189-
"
14190-
universal
14191-
-
14192-
address1
14193-
"
14194-
"
14195-
universal
14196-
-
14197-
code2
14198-
"
14199-
"
14200-
universal
14201-
-
14202-
a2
14203-
"
14204-
]
14205-
unexpected
14206-
:
14207-
[
14208-
"
14209-
universal
14210-
"
14211-
"
14212-
empty
14213-
"
14214-
]
14215-
level
14216-
:
14217-
2
14218-
testType
14219-
:
14220-
TEST_FIND
14221-
|
14222-
TEST_MATCH
14223-
}
14224-
/
14225-
/
1422614186
Attribute
1422714187
Selectors
1422814188
/

0 commit comments

Comments
 (0)