timothy searcy
|
c0205e8b4a
|
test: check invalid argument error for option
This commit adds a test for the validateArguments function in
TextDecoder.
PR-URL: https://github.com/nodejs/node/pull/24736
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
2019-02-28 23:37:38 +11:00 |
|
 ZauberNerdandRobin Drexler
|
8734c679f8
|
test: add whatwg-encoding TextDecoder custom inspection with showHidden
These tests ensure hidden fields are shown when inspecting with
`showHidden` and that passing negative `depth` prints simplified value.
Co-authored-by: Robin Drexler <drexler.robin@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/24166
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
|
2019-01-28 21:54:52 -08:00 |
|
Lauri Piisang
|
e21d784cf8
|
test: add else and error case for TextDecoder
add test for tinyurl.com/codeandlearn-encoding-1
add test for tinyurl.com/codeandlearn-encoding-2
PR-URL: https://github.com/nodejs/node/pull/24162
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
2019-01-12 10:57:07 -08:00 |
|
Ruben Bridgewater
|
caee112e52
|
test: remove assert.doesNotThrow()
There is actually no reason to use `assert.doesNotThrow()` in the
tests. If a test throws, just let the error bubble up right away
instead of first catching it and then rethrowing it.
PR-URL: https://github.com/nodejs/node/pull/18669
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
|
2018-02-16 16:53:47 +01:00 |
|
Sho Miyamoto
|
7972bdf783
|
test: add assertions for TextEncoder/Decoder
PR-URL: https://github.com/nodejs/node/pull/18132
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
2018-01-18 22:52:06 +01:00 |
|
Mithun Sasidharan
|
eae0c05697
|
test: replace assert.throws w/ common.expectsError
PR-URL: https://github.com/nodejs/node/pull/17498
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
|
2017-12-08 16:02:07 -05:00 |
|
James M Snell
|
7f9eb4c29c
|
util: graduate TextEncoder/TextDecoder, tests
Add tests ported from Web Platform Tests.
Graduate TextEncoder / TextDecoder from experimental
PR-URL: https://github.com/nodejs/node/pull/15743
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
|
2017-10-23 21:12:56 -07:00 |
|
Timothy Gu
|
365b2e3424
|
encoding: rudimentary TextDecoder support w/o ICU
Also split up the tests.
PR-URL: https://github.com/nodejs/node/pull/14489
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
|
2017-08-05 16:40:41 +08:00 |
|