Skip to content

Commit

Permalink
diversify test cases for :has() selector
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhoot committed Jul 25, 2024
1 parent b2f6f06 commit 06d53bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ let suites = [
test "p:empty" 1;
test "ul li:not(:nth-child(1))" 2;
test ":not(ul) > li" 2;
test ":has([id=one])" 3;
test ":has(#one)" 3;
test "ul:has([id=one])" 1;
test "ol:has([id=one])" 0;
test "ol:has(#one)" 0;
test "li:has([id=one])" 0;
test ":has(.odd)" 4;
test "ul:has(.even)" 1;
test ":has(ul)" 2;
test ":has(caption)" 0;
test
Expand Down

0 comments on commit 06d53bd

Please sign in to comment.