jquery/test
Michał Gołębiowski-Owczarek be4f9eccde
Build: Make middleware-mockserver not crash on reading nonexistent files
`fs.readFileSync` crashes when a non-existing file is passed to it. Some APIs
of `middleware-mockserver` read a file the path of which depends on query
parameters, making it possible to crash it by providing such a parameter. The
old PHP server doesn't have these issues.

To fix this, wrap all `fs.readFileSync` occurrences with a function that falls
back to the string `"ERROR"`.

Closes gh-5579

(cherry picked from commit d5ebb464de)
2024-11-05 22:59:55 +01:00
..
data Tests: align mock.php with main branch (sans spacing diffs) 2024-08-24 10:05:01 -04:00
integration Event: Fix delegated radio events when arrow keys are used 2015-10-18 13:06:37 -04:00
node_smoke_tests Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
promises_aplus_adapters Release: migrate release process to release-it 2024-07-29 15:25:14 -04:00
runner Tests: Run tests in Edge in IE mode in GitHub Actions 2024-09-09 18:26:59 +02:00
unit Manipulation: Make jQuery.cleanData not skip elements during cleanup 2024-09-11 00:27:16 +02:00
delegatetest.html Core: Simplify code post browser support reduction 2023-09-20 00:59:32 +02:00
hovertest.html Ref #13316: Sync all documents on full vs. minified source. Close gh-1147. 2013-02-07 15:16:28 -05:00
index.html Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
jquery.js Build: improve specificity of eslint config; add ecma versions 2024-06-10 09:01:53 -04:00
middleware-mockserver.cjs Build: Make middleware-mockserver not crash on reading nonexistent files 2024-11-05 22:59:55 +01:00
networkerror.html Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-12 23:23:10 +01:00
xhtml.php Added a way to run the test suite as an XHTML page. 2009-01-19 18:14:51 +00:00