summaryrefslogtreecommitdiff
path: root/cli/tests
AgeCommit message (Collapse)Author
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-10Test crypto.getRandomValues() with wpt (#9016)Yacine Hmito
2021-01-09fix: don't error on version and help flag (#9064)Luca Casonato
2021-01-09tests: enable WPT for timers (#9047)Casper Beyer
2021-01-09fix(web): implement DOMException#code (#9015)Yacine Hmito
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-01-08fix: Worker hangs when posting "undefined" as message (#8920)yonatan ben avraham
This commit fixes hang in web workers occuring when sending "undefined" as message value. It is a temporary band-aid until proper structured close is implemented. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
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-07feat: add --location=<href> and globalThis.location (#7369)Nayeem Rahman
2021-01-07 ignore "use asm" (#9019)Anonymous
Preventing V8 from logging erroneous line numbers. Use wasm.
2021-01-07fix(coverage): report partial lines as uncovered (#9033)Casper Beyer
2021-01-07fix: Use "none" instead of false to sandbox Workers (#9034)Nayeem Rahman
2021-01-07Remove emoji from welcome script so it looks better on windows (#9031)Ryan Dahl
2021-01-06feat: Add configurable permissions for Workers (#8215)Steven Guerrero
This commit adds new option to "Worker" Web API that allows to configure permissions. New "Worker.deno.permissions" option can be used to define limited permissions to the worker thread by either: - inherit set of parent thread permissions - use limited subset of parent thread permissions - revoke all permissions (full sandbox) In order to achieve this functionality "CliModuleLoader" was modified to accept "initial permissions", which are used for top module loading (ie. uses parent thread permission set to load top level module of a worker).
2021-01-06refactor: move WebSocket API to an op_crate (#9026)Luca Casonato
2021-01-06fix: stronger input checking for setTimeout; add function overload (#8957)Anonymous
2021-01-06feat(cli): support data urls (#8866)Kitson Kelly
Closes: #5059 Co-authored-by: Valentin Anger <syrupthinker@gryphno.de>
2021-01-06fix: align performance API to spec using WPT (#9012)Luca Casonato
2021-01-06fix: use inline source maps when present in js (#8995)Luca Casonato
2021-01-05upgrade: deno_doc, deno_lint, dprint, swc_ecmascript, swc_bundler (#9003)Bartek Iwańczuk
2021-01-05fix: align AbortSignal to spec using WPT (#9007)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-05feat(cli/standalone): support runtime flags for deno compile (#8738)Nayeem Rahman
2021-01-04fix(coverage): merge duplicate reports (#8942)Casper Beyer
Merging multiple runs isn't quite right because we rely on a 0 count to signal that a block hasn't been called. Other tools like c8 expect this to be true as-well so we need to do our best to merge coverage files rather than duplicating them.
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-04fix(inspector): kill child process after test (#8986)Ben Noordhuis
The child process kept running and printing "hello" to stdout. This commit also removes the dependency on reqwest and instead switches to the re-export from the fetch crate. Brings back commit 1a2e7741c33490d2a91147966019853c6b1d6a48.
2021-01-04chore: disable flaky test on Windows (#8987)Bartek Iwańczuk
2021-01-04Revert "fix(inspector): add back list endpoint (#8894)" (#8977)Luca Casonato
This reverts commit 1a2e7741c33490d2a91147966019853c6b1d6a48.
2021-01-03fix(inspector): add back list endpoint (#8894)Liam Perlaki
This commit adds back "/json/list" endpoint to inspector server which was erroneously removed during server rewrite. Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
2021-01-01refactor(cli): runtime compiler APIs consolidated to Deno.emit() (#8799)Kitson Kelly
Closes: #4752
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-30fix(cli): info does not panic on missing modules (#8924)Kitson Kelly
Fixes #8918
2020-12-30fix(lsp): handle ts debug errors better (#8914)Kitson Kelly
Fixes #8864
2020-12-30feat(lsp): Implement textDocument/rename (#8910)hrsh7th
2020-12-29fix(core): Fix incorrect index in Promise.all error reporting (#8913)Deepanshu Utkarsh
2020-12-29upgrade: dprint, swc_bundler, swc_common, swc_ecmascript (#8901)Bartek Iwańczuk
2020-12-28feat(unstable): collect coverage from the run command (#8893)Casper Beyer
This adds implicit coverage collection to the run command when a coverage collection directory is set (via an environment variable).
2020-12-26test(cli): ensure await Promise.all does not race (#8868)Casper Beyer
2020-12-26fix: fetch bad URL will not panic (#8884)Yosi Pramajaya
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-22fix: implement ReadableStream fetch body handling (#8855)Luca Casonato
2020-12-22feat(lsp): support the unstable setting (#8851)Kitson Kelly
2020-12-22fix(lsp): respect enable flag for requests (#8850)Kitson Kelly
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 lsp to be async (#8727)Luca Casonato
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>