Skip to content

Commit

Permalink
add test for unified id/class selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Rct567 committed Apr 12, 2019
1 parent a33c9b2 commit 40ff02b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Rct567/DomQuery/Tests/DomQuerySelectorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function testCssToXpath()
'#someid' => '//*[@id=\'someid\']',
'p#someid' => '//p[@id=\'someid\']',
'#some\\.id' => '//*[@id=\'some.id\']',
'#someid.some-class' => '//*[@id=\'someid\'][contains(concat(\' \', normalize-space(@class), \' \'), \' some-class \')]',
'#id[_]' => '//*[@id=\'id\'][@_]',
'p a' => '//p//a',
'div, span' => '//div|//span',
Expand Down

0 comments on commit 40ff02b

Please sign in to comment.