summaryrefslogtreecommitdiff
path: root/cli/tests/unit
AgeCommit message (Collapse)Author
2021-02-16fix: align btoa to spec (#9053)Casper Beyer
2021-02-15chore: Reorganise workers tests (#9493)Bartek Iwańczuk
2021-02-13refactor(core): Strongly typed deserialization of JSON ops (#9423)Jared Beller
This PR makes json_op_sync/async generic to all Deserialize/Serialize types instead of the loosely-typed serde_json::Value. Since serde_json::Value implements Deserialize/Serialize, very little existing code needs to be updated, however as json_op_sync/async are now generic, type inference is broken in some cases (see cli/build.rs:146). I've found this reduces a good bit of boilerplate, as seen in the updated deno_core examples. This change may also reduce serialization and deserialization overhead as serde has a better idea of what types it is working with. I am currently working on benchmarks to confirm this and I will update this PR with my findings.
2021-02-13fix: webidl utils and align `Event` to spec (#9470)Luca Casonato
2021-02-11fix(runtime/tls): handle invalid host for connectTls/startTls (#9453)Erik Price
2021-02-10fix(console): log function object properties / do not log non-enumerable ↵David DeSimone
props by default (#9363)
2021-02-09fix(op_crates): Don't use `Deno.inspect` in op crates (#9332)Nayeem Rahman
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
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-01-29fix(op_crates/web): Add customInspect for Location (#9290)Nayeem Rahman
2021-01-29refactor: IO resource types, fix concurrent read/write and graceful close ↵Bert Belder
(#9118) Fixes: 9032.
2021-01-28chore: add jsdoc to 26_fetch.js and enable some fetch tests (#9305)Luca Casonato
2021-01-25Revert "tests: enable wpt for url (#9046)" (#9264)Luca Casonato
This reverts commit 66e99d349b31f5cd30b868d80ebdab6ba749fd96.
2021-01-24tests: enable wpt for url (#9046)Luca Casonato
2021-01-24feat(op_crates/web): adding gb18030 and GBK encodings (#9242)ali ahmed
2021-01-19fix(cli): actually stabilize Deno.shutdown() (#9181)Bert Belder
2021-01-18fix(op_crate/fetch): add back ReadableStream.getIterator and deprecate (#9146)Kitson Kelly
2021-01-17chore: Enforce ban-untagged-todo lint rule (#9135)Bartek Iwańczuk
2021-01-15refactor(op_crate/fetch): align streams to spec (#9103)Kitson Kelly
Fixes #8814
2021-01-14fix: don't swallow customInspect exceptions (#9095)Steven Guerrero
2021-01-14refactor: make Process#kill() throw sensible errors on Windows (#9111)Bert Belder
Previously, calling `Process#kill()` after the process had exited would sometimes throw a `TypeError` on Windows. After this patch, it will throw `NotFound` instead, just like other platforms. This patch also fixes flakiness of the `runKillAfterStatus` test on Windows.
2021-01-14fix: align DOMException API to the spec and add web platform testing of it. ↵Yoshiya Hinosawa
(#9106) * fix: align DOMException API to the spec * test: fix test case 070_location * test(DOMException): disable "does not inherit from Error: class-side" test of WPT * test: remove test cases in deno codebase * docs: add note about skipped test
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-11fix(op_crate/web): fix atob to throw spec aligned DOMException (#8798)gorogoroumaru
2021-01-10feat(fetch): req streaming + 0-copy resp streaming (#9036)Luca Casonato
* feat(fetch): req streaming + 0-copy resp streaming * lint * lint * fix test * rm test.js * explicitly use CancelHandle::default() * Apply review suggestions Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> * fix test * Merge remote-tracking branch 'origin/master' into fetch_real_streaming * fix test * retrigger ci Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
2021-01-10tests(wpt/console): Enables web platform tests for console (#9013)Tarik Eshaq
2021-01-09fix(web): implement DOMException#code (#9015)Yacine Hmito
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-01-07feat: add --location=<href> and globalThis.location (#7369)Nayeem Rahman
2021-01-06fix: stronger input checking for setTimeout; add function overload (#8957)Anonymous
2021-01-05fix: align encoding APIs to spec using WPT (#9004)Luca Casonato
2021-01-04BREAKING(unstable): remove CreateHttpClientOptions.caFile (#8928)Mo
2021-01-04docs: meta updates to cli/tests/unit/README.md (#8969)Satya Rohith
2021-01-04chore: disable flaky test on Windows (#8987)Bartek Iwańczuk
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-30BREAKING(unstable): Use hosts for net allowlists (#8845)Nayeem Rahman
Allowlist checking already uses hosts but for some reason requests, revokes and the runtime permissions API use URLs. - BREAKING(lib.deno.unstable.d.ts): Change NetPermissionDescriptor::url to NetPermissionDescriptor::host - fix(runtime/permissions): Don't add whole URLs to the allowlist on request - fix(runtime/permissions): Harden strength semantics: ({ name: "net", host: "127.0.0.1" } is stronger than { name: "net", host: "127.0.0.1:8000" }) for blocklisting - refactor(runtime/permissions): Use tuples for hosts, make the host optional in Permissions::{query_net, request_net, revoke_net}()
2020-12-30chore(cli/tests): fix typo in test failure message (#8935)Rich Trott
2020-12-26fix: fetch bad URL will not panic (#8884)Yosi Pramajaya
2020-12-22fix: implement ReadableStream fetch body handling (#8855)Luca Casonato
2020-12-21refactor: rewrite chown_test.ts not to depend on python (#8843)Liam Murphy
This commit rewrites "chown_test.ts" to use the GNU "id" command instead of python. This won't work on Windows, but these tests aren't currently run on Windows anyway.
2020-12-21refactor: rewrite process_test.ts to use deno instead of python (#8841)Liam Murphy
Rewrites all the subprocess python scripts to be Deno scripts.
2020-12-19feat(unstable): support in memory certificate data for Deno.createHttpClient ↵yonatan ben avraham
(#8739)
2020-12-16refactor: rewrite ops to use ResourceTable2 (#8512)Bartek Iwańczuk
This commit migrates all ops to use new resource table and "AsyncRefCell". Old implementation of resource table was completely removed and all code referencing it was updated to use new system.
2020-12-10refactor(core): stack trace mapping (#8660)Bartek Iwańczuk
This commit adds "Deno.core.createPrepareStackTrace". This function was moved from "cli/rt/40_error_stack.js" to unify handling of stack frames in core (before this PR there was implicit dependency on logic in "core/error.rs::JsError"). Unfortunately formatting logic must still be duplicated in "cli/error.js::PrettyJsError" to provide coloring, but currently there's no solution to this problem. "createPrepareStackTrace" can accept a single argument; a function that takes a location and provides source mapped location back.
2020-12-09fix(op_crates/fetch): support non-ascii response headers value (#8600)Jae-Heon Ji
2020-11-27test(cli): fix brittle network permission test (#8526)William Perron
2020-11-27fix(cli/ops/net): add write permissions for unixpackets datagrams & unix ↵William Perron
socket (#8511) Fixes #7781
2020-11-26refactor(cli/tests): replace createResolvable with deferred (#8507)crowlKats
2020-11-25fix(websocket): Fix PermissionDenied error being caught in constructor (#8402)crowlKats
2020-11-24fix(op_crates/fetch): `redirect: "manual"` fetch should return `type: ↵Luca Casonato
"default"` response (#8353)
2020-11-24feat(cli): update to TypeScript 4.1 (#7573)Kitson Kelly
2020-11-23fix(cli): add file URL support for Deno.readLink (#8423)William Perron