aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* `// @license` should be at the beginning of a line (mod whitespace)Yuchen Pei2022-10-131-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the following will be processed for @license / @license-end method: // foo.js // // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0 // document.getElementById('bar'); // // @license-end function foo(x, y) { console.log(x + y); } $ node ./utitlities/check-script foo.js [ true, '// // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0\n' + "// document.getElementById('bar');\n" + '// // @license-end\n' + 'function foo(x, y) {\n' + ' console.log(x + y);\n' + '}\n', '\n' + 'Recognized license: "GNU General Public License (GPL) version 3".\n' + 'Script appears to be trivial.' ]
* minor renamingYuchen Pei2022-09-271-1/+1
|
* disable contactfinder tests by defaultYuchen Pei2022-09-271-28/+31
| | | | It tends to time out. Also moved injectContactFinder
* adding tests of calls to reserved objects.Yuchen Pei2022-09-201-5/+12
|
* Updating copyright to files touched in the previous commits.Yuchen Pei2022-09-202-0/+2
|
* adding a test for prefs defaultYuchen Pei2022-07-291-1/+14
|
* clean up code in prefs panelYuchen Pei2022-07-281-1/+1
|
* removed a redundant console logYuchen Pei2022-07-281-1/+0
|
* adding a test for contact finderYuchen Pei2022-07-282-0/+21
|
* adding a test for the contact finderYuchen Pei2022-07-251-0/+16
|
* lintingYuchen Pei2022-04-071-70/+70
| | | | | - eslint - also adding eslintrc
* nop whitespace formatting change.Yuchen Pei2022-04-071-13/+13
| | | | | | | | - ran eglot-format using typescript-language-server on all js files in the repo except those under /hash_script/ - verify only whitespace changed: git diff --word-diff-regex=. 62d6a71 62d6a71~1
* Display NOSCRIPT elements when scripts are blocked or the ↵hackademix2019-04-301-0/+24
| | | | data-librejs-display attribute is present.
* Automated regression tests for whitelist and blacklist management, including ↵hackademix2019-03-261-1/+39
| | | | wildcards.
* Test for inline scripts in attributes, including (de)duplication.hackademix2019-02-251-0/+19
|
* Adjusting for the fixes to the malformed license parsing.hackademix2018-10-021-10/+6
|
* Work around for documentUrl = tab.url = about:blank if tests are launched ↵hackademix2018-10-021-3/+3
| | | | from XPI
* Restored testing page tab removal after completion.hackademix2018-10-021-1/+1
|
* Jasmine-based automated tests suite.hackademix2018-10-028-0/+322