summaryrefslogtreecommitdiff
path: root/js/console_test.ts
AgeCommit message (Collapse)Author
2019-10-04Merge deno_cli_snapshots into deno_cli (#3064)Ryan Dahl
2019-08-29add console.dirxml (#2835)Bartek Iwańczuk
2019-08-19Support custom inspection of objects (#2791)Kitson Kelly
2019-08-17Implement console.trace() (#2780)Kevin (Kun) "Kassimo" Qian
groupCollapsed alias to group, remove noTrailingNewline, move newline out of stringifyArgs, fix console.dir, add tests, and fix a repl log quirk. For repl logging quirks, I believe we should not indent repl logging. If we really want such indentation, we probably also want to indent "> " prompts.
2019-05-03fix: display "-0" for -0 (#2281)Kevin (Kun) "Kassimo" Qian
Added special handling code in js/console.ts
2019-04-21Fix eslint warnings (#2151)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
2019-04-08fix `console instanceof Console` (#2073)迷渡
2019-04-03fix console.log when error has been caught (#2041)迷渡
2019-04-03web-compatibility console (#2042)迷渡
2019-03-22remove `console` constructor (#1985)迷渡
2019-03-20pretty-print long stringsRyan Dahl
2019-03-20Improve pretty printing of objectsRyan Dahl
If an object has more than 5 elements, it is printed in abbeviated form displaying only the keys. This is useful in the REPL when inspecting large objects like the Deno namespace: > Deno { args, noColor, pid, env, exit, isTTY, execPath, chdir, cwd, File, open, stdin, stdout, stderr, read, write, seek, close, copy, toAsyncIterator, SeekMode, Buffer, readAll, mkdirSync, mkdir, makeTempDirSync, makeTempDir, chmodSync, chmod, removeSync, remove, renameSync, rename, readFileSync, readFile, readDirSync, readDir, copyFileSync, copyFile, readlinkSync, readlink, statSync, lstatSync, stat, lstat, symlinkSync, symlink, writeFileSync, writeFile, ErrorKind, DenoError, libdeno, permissions, revokePermission, truncateSync, truncate, connect, dial, listen, metrics, resources, run, Process, inspect, build, platform, version, Console, stringifyArgs, DomIterableMixin }
2019-03-09Migrate from tslint to eslint for linting (#1905)Kitson Kelly
2019-03-06Upgrade deno_std (#1892)Ryan Dahl
A major API change was that asserts are imported from testing/asserts.ts now rather than testing/mod.ts and assertEqual as renamed to assertEquals to conform to what is most common in JavaScript.
2019-03-03libdeno: remove `prints_newline` parameter from libdeno.print()Bert Belder
2019-02-25Fix console.table display of Map and move tests to unit test (#1839)Kevin (Kun) "Kassimo" Qian
2019-02-13Cleanup Deno namespace (#1765)Kitson Kelly
2019-02-12Add Deno global namespace (#1748)Kitson Kelly
Resolves #1705 This PR adds the Deno APIs as a global namespace named `Deno`. For backwards compatibility, the ability to `import * from "deno"` is preserved. I have tried to convert every test and internal code the references the module to use the namespace instead, but because I didn't break compatibility I am not sure. On the REPL, `deno` no longer exists, replaced only with `Deno` to align with the regular runtime. The runtime type library includes both the namespace and module. This means it duplicates the whole type information. When we remove the functionality from the runtime, it will be a one line change to the library generator to remove the module definition from the type library. I marked a `TODO` in a couple places where to remove the `"deno"` module, but there are additional places I know I didn't mark.
2019-02-11fix: improve formatting (#1732)Yoshiya Hinosawa
2019-02-09Support scoped variables, unblock REPL async op, and REPL error colors (#1721)Kevin (Kun) "Kassimo" Qian
2019-02-05Fixed test code (#1688)JaePil Jung
2019-01-28Add console.table (#1608)Sergey Golovin
2019-01-24Add console.clear() (#1562)binaryta
2019-01-24console output with format (#1565)迷渡
2019-01-12Remove unused imports (#1503)JaePil Jung
2019-01-06Implement console.groupCollapsed (#1452)Yoshiya Hinosawa
This implementation of groupCollapsed is intentionally different from the spec defined by whatwg. See the conversation in #1355 and #1363.
2019-01-02Happy new year!Ryan Dahl
2018-12-23Remove support for extensionless import (#1396)Ryan Dahl
2018-12-19Expose deno.inspect (#1378)Kevin (Kun) "Kassimo" Qian
2018-12-17Add console.count and console.time (#1358)迷渡
2018-12-14`console.assert` should not throw error (#1335)迷渡
2018-12-12Avoid Uint8Array.prototype throwing type error in console.log (#1327)Kevin (Kun) "Kassimo" Qian
2018-12-10Add more console types formatting support (#1299)Kevin (Kun) "Kassimo" Qian
2018-11-30feat: Support for bigints in consolekyraNET
2018-10-19Add missing copyrights (#1024)ztplz
2018-10-05FormatRyan Dahl
2018-10-05Changed tools/lint.py to lint the entire js and tests directories. (#900)Chris Bystrek
* Changed tools/lint.py to lint the entire js and tests directorys and sub directories, currently it was pointing at tsconfig and would only lint files that were part of js/main.ts or node_modules/typescript/lib/lib.esnext.d.ts and their dependencies * Broke the typescript linting out into separate steps for the main typescript programing and tests. * Fixed linting issues in ts tests.
2018-10-04Rename fbs to msg.Ryan Dahl
2018-10-01Bind `this` to console methods (#873)Kevin (Kun) "Kassimo" Qian
Fixes #872
2018-09-30Limit depth of output in console.log for nested objects, and add console.dir ↵Yingbo (Max) Wang
(#826)
2018-09-26Error pretty print (print stack)Kevin (Kun) "Kassimo" Qian
2018-09-24[console] Use constructor.name to print out function type (#664)Kevin (Kun) "Kassimo" Qian
2018-09-01Minor code refactoringShinDarth
2018-08-28formatBert Belder
2018-08-27Add ability to unit test by permissions.Ryan Dahl
2018-08-27Moved console tests to own file, and switched circular test to use stringify ↵Aaron Power
with assertEqual