Skip to content

Commit c4a97ac

Browse files
byung-woomoz-wptsync-bot
authored andcommitted
Bug 1775221 [wpt PR 34503] - Fix test error on css/selectors/has-error-recovery.html, a=testonly
Automatic update from web-platform-tests Fix test error on css/selectors/has-error-recovery.html The test fails at line 49 since querySelector() returns 'html' instead of '#test-div'. To specify the correct subject element, use child relationship. Bug: 1337497 Change-Id: Ia87775a50fd3fef3a0ebfbe6cea4e877abca82ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3715817 Reviewed-by: Rune Lillesveen Commit-Queue: Byungwoo Lee Cr-Commit-Position: refs/heads/main@{#1016118} -- wpt-commits: a764c6fbfa9233a57a0979cfe349ec3efdbe031e wpt-pr: 34503
1 parent 5469070 commit c4a97ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/web-platform/tests/css/selectors/has-error-recovery.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
);
3636
assert_equals(document.querySelector(emptyList), null, "Should never match, but should parse");
3737
for (let mixedList of [
38-
`:has(:total-nonsense, #test-descendant)`,
39-
`:has(:total-nonsense and-more-stuff, #test-descendant)`,
40-
`:has(weird-token || and-more-stuff, #test-descendant)`,
38+
`:has(:total-nonsense, > #test-descendant)`,
39+
`:has(:total-nonsense and-more-stuff, > #test-descendant)`,
40+
`:has(weird-token || and-more-stuff, > #test-descendant)`,
4141
]) {
4242
rule.selectorText = mixedList;
4343
assert_equals(
4444
rule.selectorText,
45-
`:has(#test-descendant)`,
45+
`:has(> #test-descendant)`,
4646
`${mixedList}: Should ignore invalid selectors`,
4747
);
4848
let testDiv = document.getElementById("test-div");

0 commit comments

Comments
 (0)