From 6516834051fc017bfd9f8a43234173f81a3dd00e Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 17 Jul 2020 10:16:40 -0400 Subject: [PATCH] Add test cases to static filtering checklist --- .../static-filtering-parser-checklist.txt | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/tests/static-filtering-parser-checklist.txt b/docs/tests/static-filtering-parser-checklist.txt index 02ee35b3e..dd3bf5ad0 100644 --- a/docs/tests/static-filtering-parser-checklist.txt +++ b/docs/tests/static-filtering-parser-checklist.txt @@ -17,6 +17,13 @@ !----------------------- ! Parsing should succeed !----------------------- + +! valid patterns +a* +|* +||* + +! valid options $script,redirect=noop.js *$empty *$xhr,empty @@ -35,6 +42,15 @@ $script,redirect=noop.js ! Parsing should fail !-------------------- +! bad patterns +a +| +|| +$ + +! bad regex +/(abc|def/$xhr + ! can't redirect without type (except to `empty`) *$redirect=noop.js @@ -51,9 +67,6 @@ $script,redirect=noop.js *$csp=default-src 'none',ghide *$csp=default-src 'none',csp=script-src 'none' -! bad regex -/(abc|def/$xhr - ! https://github.com/gorhill/uBlock/issues/2385#issuecomment-494078763 *$~document *$~popup