summaryrefslogtreecommitdiff
path: root/cli/tests/unit
AgeCommit message (Collapse)Author
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
2020-11-14fix: fix various global objects constructor length (#8373)Benjamin Gruenbaum
This commit changes various Web APIs constructors to match their signature in the browser.
2020-11-11fix(op_crates/web): FileReader event handler order (#8348)Benjamin Gruenbaum
2020-11-03build: migrate to dlint (#8176)Bartek Iwańczuk
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
2020-11-02fix(op_crates/web): fix URLSearchParams, malformed url handling (#8092)Yoshiya Hinosawa
Co-authored-by: Evan <c4t@tuta.io>
2020-11-02test(op_crates/web): add EventTarget tests (#8205)Benjamin Gruenbaum
2020-11-02fix(op_crates/web): make TextEncoder work with forced non-strings (#8206)Benjamin Gruenbaum
Fixes: #8201
2020-10-27fix(cli): handle URL paths in Deno.mkdir() (#8140)Ross Weir
2020-10-27fix(op_crates/web): Expose event properties in console output (#8103)Ross Weir
Fixes #8073
2020-10-26rename(std/testing): rename assert*Contains to assert*Includes (#7951)Tim Reichen
This commit renames two assertion functions to better align with JS API: - assertStringContains -> assertStringIncludes - assertArrayContains -> assertArrayIncludes
2020-10-26feat(unstable): add Deno.systemCpuInfo() (#7774)Elias Sjögreen
2020-10-26fix(op_crates/fetch): ensure Request.method to be string (#8100)Kid
Ensure "Request.method" to be the default value ("GET") if "init.method" is not defined, which follows browser's behavior.
2020-10-20fix(op_crates/web): TextEncoder should return error message with original ↵aca
input (#8005)
2020-10-20fix(cli/rt/performance): check for object props in startOrMeasureOptions ↵Jesse Jackson
before throwing (#7884) Fixes #7876 Co-authored-by: Ryan Dahl <ry@tinyclouds.org> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-10-19fix(op_crates/web): TextEncoder should throw RangeError (#8039)Leonard Ginters
This commit changes error type thrown by TextEncoder, when provided encoding is not supported matching Chromium behavior.
2020-10-19fix(op_crates/fetch): Body.body should be stream of Uint8Array (#8030)Luca Casonato
2020-10-17upgrade: deno_doc, deno_lint, dprint, swc (#8009)Bartek Iwańczuk
2020-10-15feat(cli/ops): add the sleep_sync op (#7974)William Perron
2020-10-14fix(console): fix the test cases of function inspections (#7965)Yoshiya Hinosawa
2020-10-13fix(op_crates/web/url): apply backslash replacement to the pathname setter ↵Nayeem Rahman
(#7937)
2020-10-12fix(cli/rt/main): Add global interface objects (#7875)Nayeem Rahman
2020-10-11fix(console): fix inspection of Function (#7930)Yoshiya Hinosawa
This commit fixes the inspection of functions. The current implementation gets the name of the type of the function from "f.__proto__.constructor.name", and it throws when the prototype is set to null. This commit checks the prototype before accessing its constructor name and uses the generic name 'Function' if the prototype is not available.
2020-10-11fix(cli/console): only inspect getters with option (#7830)Casper Beyer
2020-10-10fix(op_crate/web): add padding on URLSearchParam (#7905)Lively
Fixes #7888
2020-10-09fix(op_crates/fetch): Stringify and parse Request URLs (#7838)Nayeem Rahman
Fixes #7837
2020-10-08fix: update worker types to better align to lib.dom.d.ts (#7843)Kitson Kelly
2020-10-08fix(cli/rt/error_stack): Improve message line formatting (#7860)Nayeem Rahman
2020-10-07fix(cli/rt/console): Don't require a prototype to detect a class instance ↵Nayeem Rahman
(#7869)
2020-10-07fix(cli/ops/fs): Don't force Windows paths separate paths with forward slash ↵Nayeem Rahman
(#7833)
2020-10-05perf(cli/console): Don't add redundant ANSI codes (#7823)Nayeem Rahman
2020-10-04docs: end sentences with a period in markdown (#7813)Trivikram Kamat
2020-10-02upgrade: swc, deno_doc, deno_lint, dprint (#7793)Bartek Iwańczuk
2020-10-01fix(cli/console): Catch and format getter errors (#7766)Nayeem Rahman
2020-09-30feat(cli/console): Add Deno.InspectOptions::colors (#7742)Nayeem Rahman
Ref: https://github.com/denoland/deno/pull/7516#pullrequestreview-489567120
2020-09-27fix: net listen crashes on explicit undefined hostname (#7706)Giorgi Rostomashvili
2020-09-27feat(fmt): Sort named import and export specifiers (#7711)David Sherret
2020-09-25refactor: clean timers tests (#7679)Bartek Iwańczuk