add a few more tests - webdump_tests - Testfiles for webdump
HTML git clone git://git.codemadness.org/webdump_tests
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit 2735a3ca83192ff7ee9a5a3015f062001a474fd9
DIR parent 98bfa08046197a714af34f730a5d3662f83af8a9
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 19 Sep 2026 18:18:10 +0200
add a few more tests
Diffstat:
M selector_tests.sh | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git a/selector_tests.sh b/selector_tests.sh
@@ -36,6 +36,8 @@ testmatch 'span.someclass' '<span class="someclass">MATCH</span><span>NO MATCH</
testmatch 'span@0' '<span class="someclass">MATCH</span><span>NO MATCH</span>'
testmatch 'span.someclass@0' '<span class="someclass">MATCH</span><span>NO MATCH</span>'
testmatch '@0' '<span class="someclass">MATCH</span><span>NO MATCH</span>'
+testmatch '.someclass2, .someclass' '<span class="someclass">MATCH</span><span>NO MATCH</span>'
+testnomatch '.someclass2' '<span class="someclass">MATCH</span><span>NO MATCH</span>'
# nested
testmatch '#someid' '<div class="main"><span id="someid">MATCH</span><span>NO MATCH</span></div>'
@@ -50,3 +52,5 @@ testnomatch 'html body nav ul li a' '<html><nav><div class="main"><span><a id="s
# multiple classes
testmatch '.someclass.anotherclass' '<span class="someclass anotherclass">MATCH</span><span>NO MATCH</span>'
testnomatch '.someclass.anotherclass' '<span class="someclass anotherclass2">MATCH</span><span>NO MATCH</span>'
+testnomatch '.someclass .anotherclass' '<span class="someclass anotherclass">MATCH</span><span>NO MATCH</span>'
+testnomatch '.someclass .anotherclass' '<span class="someclass anotherclass2">MATCH</span><span>NO MATCH</span>'