Add more tests for `domain=` and `denyallow=` options

This commit is contained in:
Raymond Hill 2020-09-18 09:18:32 -04:00
parent 8d5086cfd5
commit 7e906b33c5
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 14 additions and 0 deletions

View File

@ -54,6 +54,14 @@ $script,redirect=noop.js
*$all,~inline-script *$all,~inline-script
*$all,~inline-font *$all,~inline-font
! valid domain option values
*$domain=toto.com|toto.*|~toto.com|~toto.*|tôtó.ça|tôtó.*|~tôtó.ça|[ff00::0]|1.1.1.1
! valid denyallow option values
*$denyallow=toto.com|tôtó.ça|[ff00::0]|1.1.1.1
!-------------------- !--------------------
! Parsing should fail ! Parsing should fail
@ -105,3 +113,9 @@ $
*$~popup *$~popup
*$~inline-script *$~inline-script
*$~inline-font *$~inline-font
! invalid domain= option values
*$domain=.toto.com|toto.com.|[ff00::00000]|1.1.1.1111
! invalid denyallow= option values
*$denyallow=.toto.com|toto.com.|toto.*|~toto.com|~toto.*|[ff00::00000]|1.1.1.1111