mirror of https://github.com/gorhill/uBlock.git
Add test cases to static filtering checklist
This commit is contained in:
parent
3789259fc9
commit
6516834051
|
@ -17,6 +17,13 @@
|
||||||
!-----------------------
|
!-----------------------
|
||||||
! Parsing should succeed
|
! Parsing should succeed
|
||||||
!-----------------------
|
!-----------------------
|
||||||
|
|
||||||
|
! valid patterns
|
||||||
|
a*
|
||||||
|
|*
|
||||||
|
||*
|
||||||
|
|
||||||
|
! valid options
|
||||||
$script,redirect=noop.js
|
$script,redirect=noop.js
|
||||||
*$empty
|
*$empty
|
||||||
*$xhr,empty
|
*$xhr,empty
|
||||||
|
@ -35,6 +42,15 @@ $script,redirect=noop.js
|
||||||
! Parsing should fail
|
! Parsing should fail
|
||||||
!--------------------
|
!--------------------
|
||||||
|
|
||||||
|
! bad patterns
|
||||||
|
a
|
||||||
|
|
|
||||||
|
||
|
||||||
|
$
|
||||||
|
|
||||||
|
! bad regex
|
||||||
|
/(abc|def/$xhr
|
||||||
|
|
||||||
! can't redirect without type (except to `empty`)
|
! can't redirect without type (except to `empty`)
|
||||||
*$redirect=noop.js
|
*$redirect=noop.js
|
||||||
|
|
||||||
|
@ -51,9 +67,6 @@ $script,redirect=noop.js
|
||||||
*$csp=default-src 'none',ghide
|
*$csp=default-src 'none',ghide
|
||||||
*$csp=default-src 'none',csp=script-src 'none'
|
*$csp=default-src 'none',csp=script-src 'none'
|
||||||
|
|
||||||
! bad regex
|
|
||||||
/(abc|def/$xhr
|
|
||||||
|
|
||||||
! https://github.com/gorhill/uBlock/issues/2385#issuecomment-494078763
|
! https://github.com/gorhill/uBlock/issues/2385#issuecomment-494078763
|
||||||
*$~document
|
*$~document
|
||||||
*$~popup
|
*$~popup
|
||||||
|
|
Loading…
Reference in New Issue