Skip to content

Commit

Permalink
Bug 1465104 [wpt PR 11229] - Move and simplify element.matches("*") t…
Browse files Browse the repository at this point in the history
…est 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
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent 0d068c3 commit b8bf54e
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 100 deletions.
2 changes: 1 addition & 1 deletion testing/web-platform/meta/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -3750291,7 +3750291,7 @@ js
:
[
"
d23a6e88e198f4f0f4495d6fd2775408d0635371
be39e37d8486cc0a31bed9e1f1ee1176fa83b5d0
"
"
support
Expand Down
178 changes: 79 additions & 99 deletions testing/web-platform/tests/dom/nodes/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,85 @@ Universal
selector
matching
all
elements
"
selector
:
"
*
"
expect
:
[
"
universal
"
"
universal
-
p1
"
"
universal
-
code1
"
"
universal
-
hr1
"
"
universal
-
pre1
"
"
universal
-
span1
"
"
universal
-
p2
"
"
universal
-
a1
"
"
universal
-
address1
"
"
universal
-
code2
"
"
universal
-
a2
"
]
level
:
2
testType
:
TEST_MATCH
}
{
name
:
"
Universal
selector
matching
all
children
of
element
Expand Down Expand Up @@ -11778,105 +11857,6 @@ scopedSelectors
name
:
"
Universal
selector
matching
all
descendants
of
the
specified
reference
element
"
selector
:
"
*
"
ctx
:
"
#
universal
"
expect
:
[
"
universal
-
p1
"
"
universal
-
code1
"
"
universal
-
hr1
"
"
universal
-
pre1
"
"
universal
-
span1
"
"
universal
-
p2
"
"
universal
-
a1
"
"
universal
-
address1
"
"
universal
-
code2
"
"
universal
-
a2
"
]
unexpected
:
[
"
universal
"
"
empty
"
]
level
:
2
testType
:
TEST_FIND
|
TEST_MATCH
}
{
name
:
"
Attribute
presence
selector
Expand Down

0 comments on commit b8bf54e

Please sign in to comment.