summaryrefslogtreecommitdiff
path: root/test_util
AgeCommit message (Collapse)Author
2021-03-25upgrade: Rust 1.51.0 (#9895)Yusuke Tanaka
2021-03-20upgrade: tokio 1.4.0 (#9842)Ryan Dahl
2021-03-14chore: upgrade to tokio 1.3.0 (#9778)Yusuke Tanaka
2021-02-24test: Fix --reload in integration_tests (#9345)Yosi Pramajaya
This commit removes redundant "--reload" args because "util::deno_cmd" recreates "DENO_DIR". This commit also fixes ta_reload in integration tests to actually test reload.
2021-02-21fix(op_crates/websocket): default to close code 1005 (#9339)DjDeveloper
Currently if WebSocket is closed without code, it will error while on Chrome it would close with code 1005 instead. Co-authored-by: crowlKats <13135287+crowlKats@users.noreply.github.com>
2021-02-16feat(cli): support auth tokens for accessing private modules (#9508)Kitson Kelly
Closes #5239
2021-02-13fix: webidl utils and align `Event` to spec (#9470)Luca Casonato
2021-02-09chore: update dependencies (#9455)Luca Casonato
2021-02-04refactor: rewrite File implementation (#9334)Luca Casonato
2021-02-02chore: remove std directory (#9361)Casper Beyer
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
2021-02-01refactor: Reorganise integration tests (#9282)Bartek Iwańczuk
This commit reorganises cli/tests/integration_tests.rs. All integration tests had been moved into integration module, which allows to run only integration tests by "cargo test integration". Additionally some tests were further grouped under nested modules like "inspector", "file_watcher" or "repl".
2021-01-30refactor: rewrite Blob implementation (#9309)Luca Casonato
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-01-29chore: upgrade tokio to 1.1.1 (#9327)Yusuke Tanaka
2021-01-28chore: add jsdoc to 26_fetch.js and enable some fetch tests (#9305)Luca Casonato
2021-01-27tests: new typescript WPT runner (#9269)Luca Casonato
2021-01-24feat(op_crates/web): adding gb18030 and GBK encodings (#9242)ali ahmed
2021-01-19feat(unstable): add Deno.resolveDns API (#8790)Yusuke Tanaka
2021-01-17benchmark: cleanup serde_json values being passed around (#9115)William Perron
2021-01-13build: disable cafile_* tests and use slow runners (#9089)Luca Casonato
2021-01-11upgrade: tokio 1.0 (#8779)Bartek Iwańczuk
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-10upgrade: tokio 0.1 in test_util crate (#8885)Yosi Pramajaya
This commit upgrades "tokio" and crates from tokio ecosystem in "test_util" crate.
2021-01-09tests: enable WPT for timers (#9047)Casper Beyer
2021-01-08feat: denort binary (#9041)Luca Casonato
This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-06fix: align performance API to spec using WPT (#9012)Luca Casonato
2021-01-05fix: align encoding APIs to spec using WPT (#9004)Luca Casonato
2021-01-05tests: add web platform test runner (#8990)Luca Casonato
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-01-02fix(test_util): make hyper server single-threaded (#8951)Ben Noordhuis
Use Tokio's single-threaded scheduler. The hyper server is used as a point of comparison for the (single-threaded!) benchmarks in cli/bench. We're not comparing apples to apples if we use the default multi-threaded scheduler. This drops the requests/sec from 284k to 130k on my 12 core Ryzen 5 system. That still leaves a 50k gap for us to close. Working on it!
2020-12-30fix(op_crates/fetch): correct regexp for fetch header (#8927)Rich Trott
Fix bug in regular expression and make the regular expression more strict. In a string passed to new RegExp(), '[\t\s]' is identical to '[ts]' and not `/[\t\s]/`. For that, the backslash needs to be escaped in the string. Futhermore, `\t` is the tab character and is included in the special regexp value `\s` so is unnecessary. That would reduce the RegExp to new RegExp(`^${value}\\s*;?`) but there's no point in matching 0 or more space characters followed by 0 or one semi-colons as that will match no matter what follows `value`. To make it more strict, require one of space, semicolon, or end-of-string after value.
2020-12-24refactor(test_util): replace "warp" with "hyper" (#8846)Yosi Pramajaya
This commit rewrites "test_server" to use "hyper" instead of "warp" in an effort to reduce number of dependencies.
2020-12-09fix(op_crates/fetch): support non-ascii response headers value (#8600)Jae-Heon Ji
2020-11-28chore: clippy future cleanups (#8514)Kitson Kelly
2020-11-25core: implement 'AsyncRefCell' and 'ResourceTable2' (#8273)Bert Belder
2020-11-16fix(cli): local sources are not cached in memory (#8328)Kitson Kelly
Fixes #4743 Closes #5253 Fixes #5631 Fixes #6116 Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2020-11-13refactor(cli+core): various cleanups in Rust (#8336)KNnut
2020-11-05build: rewrite tools/ scripts to deno (#8247)Bartek Iwańczuk
This commit rewrites scripts in "tools/" directory to use Deno instead of Python. In return it allows to remove huge number of Python packages in "third_party/".
2020-10-26chore: add bundle_no_check benchmark (#8130)Luca Casonato
2020-10-26fix(cli): properly handle roots with extensions that don't match media type ↵Kitson Kelly
(#8114)
2020-09-21chore: add copyright (#7593)tokiedokie
2020-09-14Upgrade Rust crates, pin 'webpki-roots' to version 0.19.0 (#7454)Bert Belder
2020-09-05feat: Implement WebSocket API (#7051)crowlKats
2020-09-04fix: Handle bad redirects more gracefully (#7342)Ryan Dahl
2020-08-28Move benchmarks to Rust (#7134)Valentin Anger
All benchmarks are done in Rust and can be invoked with `cargo bench`. Currently this has it's own "harness" that behaves like `./tools/benchmark.py` did. Because of this tests inside `cli/bench` are currently not run. This should be switched to the language provided harness once the `#[bench]` attribute has been stabilized.
2020-08-18refactor: permissions (#7074)Nayeem Rahman
2020-08-12upgrade: Rust cratesBert Belder
The following crates were _not_ upgraded to avoid having multiple versions of the same crate in the dependency tree: * tokio-tungstenite v0.10.1 -> v0.11.0 * swc_common v0. 8.0 -> v0. 9.1 * swc_ecmascript v0. 1.0 -> v0. 3.0 * webpki-roots v0.19.0 -> v0.20.0 * nix v0.17.0 -> v0.18.0
2020-08-10Remove unnecessary drop calls (#7007)Ryan Dahl
2020-08-03fix(cli): add support for non-UTF8 source files (#6789)Maayan Hanin
Fixes: #5542
2020-08-03feat: hash file names in gen cache (#6911)Luca Casonato
2020-07-24fix: deno-types directive should have higher precedence than ↵Bartek Iwańczuk
X-TypeScript-Types header (#6761)
2020-07-23Align cargo dependency features (#6860)Ryan Dahl