Ryan Dahl
ee8522996a
Enable pipe test
2010-10-11 16:08:53 -07:00
Ryan Dahl
1879d8211d
Remove sys in new tests
2010-10-11 16:07:18 -07:00
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
2010-10-11 15:21:36 -07:00
Ryan Dahl
0a0e90dcca
Add broken test passing a buffer through http
2010-10-11 14:54:32 -07:00
isaacs
8ff7954165
Fix #325 . Add test and check for zero-length file contents in fs.readFileSync
2010-10-04 12:50:58 -07:00
Ryan Dahl
38f8665f3a
lib/http.js - nested loop stepping on variables of outer loop
...
Fixes #318 .
2010-10-04 10:50:37 -07:00
Mark Nottingham
d59512f6f4
Add support for handling Expect: 100-continue
...
HTTP/1.1 requests, either with an event (check_continue) or automatically, if no event handler is present.
Add client-side expect/continue support, tests.
Expound upon client requirements for expect/continue.
2010-10-01 15:30:53 -07:00
Marco Rogers
4a7562d28f
fix encoding option on ReadStream, updated test
2010-10-01 15:16:25 -07:00
Ryan Dahl
265cda97d7
Fix zero length buffer bug for http res.end()
...
Reported by Kadir Pekel <kadirpekel@gmail.com>
2010-09-30 17:13:01 -07:00
Mark Nottingham
1b24fc6678
Consume HTTP trailing headers
2010-09-30 16:30:40 -07:00
Ryan Dahl
ee9af66990
Add test for getting parse error from HTTP client
...
Made this test in response to this thread:
http://groups.google.com/group/nodejs/browse_thread/thread/f82835007a277de2/
But Node appears to be working correctly.
2010-09-30 11:48:19 -07:00
Fedor Indutny
5535aa3d51
Fixed 'upgrade' event for httpclient
...
onend and ondata was cleaning on parser end
2010-09-23 10:29:20 -07:00
isaacs
4d0456f827
Don't use stat in fs.readFile[Sync]
...
Original patch c/o Evan Larkin <evan.larkin.iit@gmail.com>
2010-09-22 22:06:32 -07:00
Tj Holowaychuk
893ebe7230
Fixed fs.ReadStream() start: 0 bug
2010-09-22 10:22:43 -07:00
Mikeal Rogers
cc1d61cbb3
HTTP: close connection on connection:close header.
...
rnewson found a good bug in keep-alive. we were only using the request
headers we send to enable/disable keep-alive but when the server sends
Connection: close we need to close down the connection regardless.
I wrote up a patch the Robert verified makes all his test client code work
now and I also added a new unittest for it.
2010-09-22 10:17:07 -07:00
isaacs
dff1b5ad10
Don't try to run extension loaders unless they're actually functions
2010-09-22 10:13:25 -07:00
Tim-Smart
0f16af7ee4
Remove registerExtension, add .extensions. Tests.
...
Updated extensions tests
2010-09-20 09:56:43 -07:00
isaacs
bb08f0c219
Remove require.async
...
This patch removes require.async from nodejs.
1. It complicated the code unnecessarily.
2. Everyone uses sync require anyway.
3. It's got a lot of weird edge cases when mixed with sync require.
4. It is many months behind the commonjs spec anyhow.
2010-09-19 16:52:39 -07:00
Ryan Dahl
db73c71280
Pass correct message in HTTP client upgrade
...
Simplify and correct test.
Fix by Fedor Indutny.
2010-09-19 11:55:18 -07:00
Ryan Dahl
4962702e4a
Revert requireNative changes: 4e6b9b0
, d429033
, 6abbfa0
, bcad540
...
The REPL needs the full require(); add test for that behavior.
2010-09-19 11:22:15 -07:00
Ryan Dahl
776754c33f
Remove process._byteLength
2010-09-17 01:06:44 -07:00
Ryan Dahl
9628e28aec
Remove process.evalcx
2010-09-17 00:23:27 -07:00
Ryan Dahl
bbbcd1fee0
Safe constructors for fs.ReadStream and fs.WriteStream
2010-09-16 19:04:09 -07:00
Paul Querna
c8f9728de7
Move dns.isIP to net.isIP
...
Add tests and docs.
2010-09-16 17:27:10 -07:00
Ryan Dahl
251d03197f
Remove deprecation warnings in net module
2010-09-16 15:02:12 -07:00
Ryan Dahl
f47ad10db7
Remove a few old deprecation warnings
2010-09-15 16:18:54 -07:00
Sam Stephenson
6560ab9073
Send multiple header lines in ServerResponse#writeHead when header values are arrays
2010-09-15 15:55:30 -07:00
Ryan Dahl
feea1330cc
Make a list of known globals
...
And fix missing var!
It would be good to get this script running at the end of every test, so we
know that modules aren't leaking either - but it will require a lot
modification of the tests so that they themselves aren't leaking globals.
2010-09-14 23:03:29 -07:00
Ryan Dahl
77fc61d539
Default value for second arg of Buffer#slice
2010-09-14 15:39:27 -07:00
Mark Nottingham
4fe3007a1a
Support for outgoing HTTP trailing headers
2010-09-14 15:20:45 -07:00
Ryan Dahl
83ff473d30
Use child_process.exec rather than sys.exec
2010-09-14 10:29:56 -07:00
isaacs
686d9f9cc6
Bug in realpath with symlinks to absolute folder paths which have children.
...
Found by Cliffano Subagio
http://groups.google.com/group/nodejs/browse_thread/thread/f46f093938265ac0/387e14da08c7dd7b ?
2010-09-14 10:27:57 -07:00
Peter Griess
422d3c93bc
Get rid of PHP/Rails style parameter munging.
...
- Handle only the most basic of query string parsing and construction.
Leave the rest (e.g. Rails/PHP behaviors) to modules higher up the
stack, like Express.
2010-09-13 12:39:30 -07:00
Tony Metzidis
debf389490
Catch Exceptions thrown when openssl is disabled
2010-09-13 12:04:31 -07:00
Paul Querna
9a701b0a70
Expose fingerproint from getPeerCertificate
...
Expose the SHA1 digest of the certificate as the fingerprint attribute in
the object returned by getPeerCertificate()
2010-09-09 23:35:17 -07:00
Ryan Dahl
3a9570386a
Fix fs.realpathSync('/')
2010-09-09 18:49:28 -07:00
isaacs
85fb47c11c
Better temporary directory handling for tests.
...
Add a setUp and tearDown function to the test case class, and use it to
create and remove the test/tmp directory for each test.
TODO: amend other tests.
2010-09-09 16:43:18 -07:00
Ryan Dahl
efc723787a
Fix big string bug
2010-09-09 11:03:50 -07:00
Ryan Dahl
3e9f636b64
Improve long buffer test
2010-09-09 11:03:50 -07:00
Ryan Dahl
8078ed1f86
Expose fast-buffer bug in tests
2010-09-09 11:03:50 -07:00
Ryan Dahl
7b772f3f68
More fast buffer work
2010-09-09 11:03:48 -07:00
Ryan Dahl
d5bdda74c1
fast buffer bounds checking in copy()
2010-09-09 11:03:48 -07:00
Felix Geisendörfer
ef54777fa5
Fix: uncaughtException was broken for main module
...
See: 635986e433
2010-09-09 10:47:30 -07:00
Ryan Dahl
17f3ffa633
Call Tick() after coming out of select()
...
Previously we would only call it before going into select(). This is needed
to fix test/simple/test-next-tick-ordering2.js.
2010-09-09 10:30:43 -07:00
isaacs
ba0c32e2e1
Fix issue #262 . Allow fs.realpath to traverse above the current working directory.
2010-09-08 17:35:58 -07:00
Tobie Langel
512016fd74
Test for ReadStream typo
2010-09-08 12:09:13 -07:00
Tobie Langel
ccf4afa256
Do not emit WriteStream's drain event before ws.write has been called.
2010-09-08 11:58:54 -07:00
Tobie Langel
f5e4047064
Avoid closing a WriteStream before it has been opened.
2010-09-08 11:51:29 -07:00
Herbert Vojčík
6789ab16d8
Modifying test-global to accomodate v8 inter-context 'global' protection.
2010-09-08 10:37:26 -07:00
Herbert Vojčík
2a03d5802b
Removing test-global-between-modules.
...
Using "global" to push data to require()d modules
not supported under NODE_MODULE_CONTEXTS=1.
2010-09-08 10:36:45 -07:00
Felix Geisendörfer
cf4b5fc52a
Test case showing a bug in nextTick ordering
...
nextTick should fire before setTimeout in this test, but it doesn't.
2010-09-07 22:37:14 -07:00
Ryan Dahl
1d0fb850d9
test-http-parser should not use private API
2010-09-07 17:17:12 -07:00
Ryan Dahl
4fe5e86a7e
Don't refer to private API in test-repl
2010-09-07 17:16:24 -07:00
Benjamin Thomas
cda1a38426
Fix bug in process._tickCallback where callbacks can get abandoned.
...
Change process._tickCallback so that if a callback throws an error but
there are other callbacks after it, we indicate that
process._tickCallback needs to be ran again.
Currently, if a callback in process._tickCallback throws an error, and
that error is caught by an uncaughtException handler and
process.nextTick is never called again, then any other callbacks already
added to the nextTickQueue won't be called again.
Updated the next-tick-errors test to catch this scenario.
2010-09-02 09:24:39 -07:00
isaacs
0e311717b5
Treat "//some_path" as pathname rather than hostname by default.
...
Note that "//" is still a special indicator for the hostname, and this does
not change the parsing of mailto: and other "slashless" url schemes. It
does however remove some oddness in url.parse(req.url) which is the most
common use-case for the url.parse function.
2010-09-02 09:24:21 -07:00
Ryan Dahl
a055153cda
Fix style in test/simple/test-dgram-unix.js
2010-08-30 14:17:27 -07:00
Ryan Dahl
f188b9d6d7
Remove timer from test/simple/test-dgram-unix.js
...
Test running already has a timeout mechanism.
2010-08-30 14:15:30 -07:00
Marco Rogers
af9aa93e0c
fix for fs.readFile to return string when encoding specified on zero length read
2010-08-30 14:08:18 -07:00
Marco Rogers
9c7c6e93e1
Fixed async fs writes with length 0, it should fire the callback
2010-08-30 13:58:50 -07:00
Ryan Dahl
635986e433
Add failing uncaughtException test
...
FIXME
2010-08-30 12:02:22 -07:00
Johan Euphrosine
e49be4768b
add readline support for meta-d
2010-08-30 10:26:51 -07:00
Russell Haering
37b6e10684
Pass an error to the sys.pump callback if one occurs
...
- Add test case for pumping from unreadable stream.
- Document the sys.pump error handling behavior
2010-08-30 10:23:48 -07:00
Benjamin Thomas
57642e2349
Fix process.nextTick so thrown errors don't confuse it.
...
If the function for a process.nextTick throws an error, then the
splice() never removes that function from the nextTickQueue array. This
makes sure the functions that have been run in _tickCallback get removed
regardless of errors.
Also add a test for this.
2010-08-27 22:13:50 -07:00
Ryan Dahl
4fdebab005
Safe constructor: net.Server, net.Stream
2010-08-27 15:38:46 -07:00
Ryan Dahl
f86ad1693f
Safe Constructor: Buffer
2010-08-27 15:23:51 -07:00
Ryan Dahl
44a287987e
Safe constructors: http.Server and http.Client
2010-08-27 13:58:52 -07:00
Johan Euphrosine
51224f12ca
add test for readline putty support
2010-08-23 10:25:55 -07:00
Johan Euphrosine
748469c71c
add readline support for meta-f and meta-b
2010-08-23 01:47:41 -07:00
Johan Euphrosine
fd3e84499e
add home/end support in rxvt and readline tests
2010-08-23 01:46:14 -07:00
Johan Euphrosine
bedca2e7a9
add tests for console.log arguments handling
2010-08-22 12:34:00 -07:00
Ryan Dahl
2982e75a0b
set-cookies header is an array of values. always
2010-08-21 16:34:38 -07:00
Ryan Dahl
60b93cca6d
Fix race conditions in test-dgram-multicast.js
2010-08-19 18:49:27 -07:00
Herbert Vojčík
2b126da395
Tests for behaviour of 'global'.
2010-08-18 12:08:39 -07:00
Herbert Vojčík
9253333850
Fix registerExtension for NODE_MODULE_CONTEXTS
...
Fix of registerExtension-produced non-string module loading with own
context. Plus finishing touches to the test.
2010-08-18 11:46:37 -07:00
Herbert Vojčík
cf2b206a8e
More changes to tests so they really work under context module loader.
...
Plus, getting rid of test/common.js defining things in global.
2010-08-17 08:41:05 -07:00
Herbert Vojčík
32e309440f
Fix of 'sys.common.debug' calls in tests.
2010-08-17 08:08:36 -07:00
Marco Rogers
6744e59e46
detect 0 length fs writes with tests
2010-08-16 23:57:01 -07:00
Ryan Dahl
4593c04959
Implement net.Server.maxConnections
...
Simplify EMFILE behavior.
2010-08-15 14:01:55 -07:00
Ryan Dahl
a8c2bb41af
Fix tests
2010-08-13 08:55:42 -07:00
Ryan Dahl
03123435e0
Remove platform specific asserts
2010-08-13 08:13:54 -07:00
Bert Belder
0e8d858aba
One more test with a race condition fixed
2010-08-13 07:18:38 -07:00
Rasmus Andersson
8d5e05668b
Added support for multiple listeners to DNS multicast datagrams.
...
Some platforms require SO_REUSEPORT to be set for the socket.
2010-08-11 19:02:20 -07:00
Bert Belder
7059be19ec
Fix http and net tests failing due to race condition
...
Plus some minor cosmetic corrections
2010-08-11 17:27:44 -07:00
Ryan Dahl
9395786d11
Fix race conditions in tests
2010-08-10 17:48:37 -07:00
Bert Belder
aaa1f451e6
Expose cwd option to child_process.exec()
2010-08-06 13:38:41 -07:00
Bert Belder
94914135df
New api for child_process.spawn; ability to set cwd for spawn()ed process
...
Tests for child_process.spawn() use new API
Test for deprecated child_process.spawn() API
2010-08-06 13:37:30 -07:00
cloudhead
fe3e419687
querystring.parse: handle undefined value properly
2010-08-05 10:46:28 -07:00
Nick Stenning
0a3eff8021
Standardise module load order for native and registered file extensions.
...
This patch standardises the load order for modules. Highest priority is trying to load exactly the file the user specified, followed by native extensions, followed by registered extra extensions, etc.
In full, if we require('foo') having registered '.coffee' as an alternative extension, we try and load the following files in order:
foo
foo.js
foo.node
foo.coffee
foo/index.js
foo/index.node
foo/index.coffee
2010-08-04 16:03:08 -07:00
Nick Stenning
78520ba482
Don't attempt to load a directory.
...
This patch replaces the path.exists check for module loading with a call to
fs.statSync (or fs.stat for require.async) which ensures that it's not trying
to load a directory.
2010-08-04 15:55:47 -07:00
Ryan Dahl
7db5c8a10d
Fix toString('base64') bug
...
Thanks to Stepan Stolyarov for the test case.
2010-08-04 11:38:48 -07:00
Ryan Dahl
adec544fdd
Revert "Expose the V8 debug object process.debug"
...
This reverts commit d9fbb8a580
.
2010-08-04 10:38:19 -07:00
Ryan Dahl
31b59400f8
Allow null context in Script
2010-08-04 10:20:40 -07:00
Ryan Dahl
d9fbb8a580
Expose the V8 debug object process.debug
...
Add one duplicate test from V8, just to make sure it works.
2010-08-02 00:46:09 -07:00
Mikeal Rogers
3214116be6
Implement keep-alive for http.Client
...
Send the 'Connection: keep-alive' header in your request to enable.
2010-08-01 22:34:17 -07:00
isaacs
65037eeb32
Don't let path.normalize get above the root.
...
Any path.join or path.normalize that starts with a / will not go "above" that after normalization. This is important because /../foo is almost *always* some sort of error, and doesn't match the corollary in sh: `cd $p; pwd`
At the worse, this can be a vector for exploits, since a static file server might do path.join(docroot, path.normalize("/"+req)) to get the file. If the normalized request path could be something like "/../../../etc/passwd" then bad things could happen.
2010-08-01 20:20:17 -07:00
Ben Noordhuis
f72ac17c89
Buffer: graciously handle padding in base64-encoded input.
2010-07-30 10:49:00 -07:00
Ryan Dahl
f291fbc8a7
Fix ending \0 in base64 decoding
2010-07-29 14:52:40 -07:00
Ben Noordhuis
95638c9b0d
Buffer: adjust buffer size so the base64-decoded input fits snugly.
...
Stops Valgrind from complaining about uninitialized memory access.
2010-07-28 11:37:23 -07:00
Dmitry Baranovskiy
8ab3c3e7c3
Added ability to pass offset to buffer write and toString methods as a string, i.e. '2' and encoding as anything
2010-07-25 20:16:37 -07:00
Ryan Dahl
2c1ca4078d
Implement buffer.write for base64
...
There might be an off-by-one on the returned value.
2010-07-23 16:36:52 -07:00
Ryan Dahl
528015e0d8
Implement buffer.toString('base64')
2010-07-23 13:52:44 -07:00
isaacs
f0f247d7e5
Fix dirname so that dirname('/a/b/') -> '/a', like sh's does.
...
Before there was this comment:
Can't strip trailing slashes since module.js incorrectly
thinks dirname('/a/b/') should yield '/a/b' instead of '/a'.
But now, such thinking is corrected.
2010-07-23 09:08:49 -07:00
Chandra Sekar S
f5f7cb9264
Support for reading byte ranges from files using fs.createReadStream.
2010-07-21 11:33:35 -07:00
Peter Griess
56f200af5d
Fix Buffer.toString() on 0-length slices.
...
- Buffer.toString('ascii', 0, 0) incorrectly returns the entire contents
of the buffer. Fix this.
- Provide similar behavior to Buffer.write() and Buffer.copy() when
dealing with 0-length in valid and invalid byte ranges.
2010-07-20 15:38:10 -07:00
isaacs
d75b63bc3c
Support including modules that don't have an extension.
...
This way, require("/foo") will work if there is a "foo.js", or a file named
simply "foo" with no extension.
2010-07-20 10:26:24 -07:00
Ryan Dahl
7067a7155f
Specify env differently in execFile
...
Callbacks should always be the last argument.
2010-07-19 20:08:35 -07:00
isaacs
49e0f14a2f
Cache modules based on filename rather than ID
...
This is ever so slightly less efficient than caching based on ID, since the
filename has to be looked up before we can check the cache. However, it's
the most minimal approach possible to get this change in place. Since
require() is a blocking startup-time operation anyway, a bit of slowness is
not a huge problem.
A test involving require.paths modification and absolute loading. Here's the
gist of it.
Files: /p1/foo.js /p2/foo.js
1. Add "/p1" to require.paths.
2. foo1 = require("foo")
3. assert foo1 === require("/p1/foo") (fail)
4. Remove /p1 from require.paths.
5. Add /p2 to require.paths.
6. foo2 = require("foo")
7. assert foo1 !== foo2 (fail)
8. assert foo2 === require("/p2/foo") (fail)
It's an edge case, but it affects how dependencies are mapped by npm.
If your module requires foo-1.2.3, and my module requires foo-2.3.4,
then you should expect to have require("foo") give you foo-1.2.3, and
I should expect require("foo") to give me foo-2.3.4. However, with
module ID based caching, if your code loads *first*, then your "foo"
is THE "foo", so I'll get your version instead of mine.
It hasn't yet been a problem, but only because there are so few
modules, and everyone pretty much uses the latest version all the
time. But as things start to get to the 1.x and 2.x versions, it'll
be an issue, I'm sure. Dependency hell isn't fun, so this is a way to
avoid it before it strikes.
2010-07-19 14:17:22 -07:00
Micheil Smith
299671b731
querystring: Removing typecasting of numeric strings to numbers
...
The tests did not accurately test for a strict equality, meaning that the
number == to the string.
2010-07-19 11:07:08 -07:00
Jan Kassens
f18d9d8466
querystring.js: JSLint warnings fixed
2010-07-19 10:54:50 -07:00
Jan Kassens
bb2acd5e75
querystring.stringify is now more solid
...
* handles NaN and Infinity
* works with arrays from other contexts
2010-07-19 10:53:32 -07:00
Benjamin Fritsch
0ed3532699
added test for Issue #214
2010-07-19 10:16:31 -07:00
Ryan Dahl
458bbb4687
fs.writeSync should return bytes written
2010-07-16 19:05:28 -07:00
Сергей Крыжановский
078a48a97b
added env to child_process.exec
2010-07-15 17:17:03 -07:00
Ryan Dahl
c926ab7746
Fix test-executable-path.js
...
Now that process.version doesn't say if the build is debug or not.
2010-07-15 14:21:32 -07:00
Ryan Dahl
8921bf454d
Remove race conditions and simplify test-http-exceptions.js
2010-07-15 14:21:32 -07:00
Ryan Dahl
4c6f4dabf5
Adjust tests for error reporting on JSON.parse(undefined)
...
The V8 upgrade changed the stacktrace reports (?)
2010-07-15 14:21:32 -07:00
Ryan Dahl
9fd5e3c89c
Update tests to work with module contexts
2010-07-15 14:21:31 -07:00
Matt Ranney
4e50197e53
Datagram socket refactor. Add tests and documentation.
...
Support setTTL() and setBroadcast() socket options.
2010-07-15 10:27:44 -07:00
Peter Griess
e7c4f8cdaa
Buffer.copy() should liberally allow empty copies.
2010-07-15 10:20:42 -07:00
David Siegel
2085909aeb
fix corner-case bug in Module
...
and added a test to expose it
2010-07-13 17:15:10 -07:00
Dmitriy Shalashov
70a8fb3763
Fix headers with empty value.
2010-07-07 18:46:24 +02:00
Ryan Dahl
515dc2161b
Experimental: 'on' as alias to 'addListener'
2010-07-03 09:30:32 +02:00
Ryan Dahl
8a52fb7aeb
Revert "Fix 'uncaughtException' for top level exceptions"
...
This reverts commit 8f8dcf8ed6
.
2010-07-01 11:10:22 -07:00
Ryan Dahl
8f8dcf8ed6
Fix 'uncaughtException' for top level exceptions
...
Done by not evaluating the code in the first tick.
This breaks one test in test-error-reporting.js but I believe this to be a
V8 error and I have reported it in
http://code.google.com/p/v8/issues/detail?id=764
2010-06-30 15:04:40 -07:00
Blake Mizerany
8c8534046c
fix whitespace errors
2010-06-29 23:59:24 -07:00
Dmitry Baranovskiy
f8ca6b383c
Rewrote QueryString.parse to make it smaller and more effective.
...
Also added ability to parse foo.bar=4 equal to foo[bar]=4
Added tests for this as well
2010-06-29 23:52:42 -07:00
Ryan Dahl
5e86d01385
Revert "Buffer.copy should copy through sourceEnd, as specified."
...
This reverts commit a2f70da4c9
.
Keep tests modifies a few edge checks on Copy()
2010-06-29 19:40:20 -07:00
Ruben Rodriguez
242161bef2
Added new API to Script, and implemented it in the REPL
2010-06-28 15:16:26 -07:00
Matt Ranney
a2f70da4c9
Buffer.copy should copy through sourceEnd, as specified.
...
Improve test-buffer.js to cover all copy error cases.
Fix off by one error in string_decoder.
2010-06-25 09:10:49 -07:00
Ryan Dahl
ba792ea202
:%s/sys.puts/console.log/g
...
and there was much rejoicing
2010-06-23 20:05:29 -07:00
Ryan Dahl
f541043618
Remove ini.js
2010-06-22 19:37:29 -07:00
Mikeal Rogers
f62979da6b
Add sys.pump
2010-06-22 17:58:09 -07:00
Marshall Culpepper
ca35ba640a
Initial implementation of process.execPath
...
Darwin, Linux, Solaris. FreeBSD still needs testing.
TODO: Amend the tests where we use spawn with argv[0].
2010-06-22 02:02:25 -07:00
Peter Griess
51bd1b4483
Only concatenate some incoming HTTP headers.
...
- Concatenate 'accept', 'accept-charset', 'accept-encoding',
'accept-language', 'connection', 'cookie', and 'x-*' headers.
- For all others, drop duplicates.
2010-06-21 12:01:50 -07:00
Ryan Dahl
cb79614f73
Don't encourage strange ideas about req race conditions
2010-06-20 11:56:48 -07:00
Ryan Dahl
eda21cccb4
Fix race condition in test-http-exceptions.js
2010-06-19 23:13:28 -07:00
Ryan Dahl
f1a4f17897
script.runIn*Context not throwing errors properly.
2010-06-19 19:31:09 -07:00
Micheil Smith
70c3e661b8
test-child-process-custom-fds to cleanup after running
2010-06-18 10:39:17 -07:00
Micheil Smith
e0d30b545a
Renaming tcp tests to net tests
2010-06-18 10:34:56 -07:00
Micheil Smith
3f48276bf9
Coding style changes, added tests in for the md5, sha256, etc methods
2010-06-18 10:21:38 -07:00
Peter Griess
187f191558
Support 'upgrade' event in HTTP client.
...
- Add a unit test for client HTTP upgrade.
- Move around unit tests for server HTTP upgrade.
2010-06-16 11:27:56 -07:00
Ryan Dahl
cbf2a2233e
Add callback to dgramSocket.send()
2010-06-16 11:03:34 -07:00
Ryan Dahl
cf86527a28
Fix writeFile(buffer) test
2010-06-16 10:28:46 -07:00
Micheil Smith
b05daaaf69
Adding path.existsSync (with tests.)
2010-06-16 10:26:11 -07:00
Aaron Heckmann
1d088fb906
fs.writeFile accepts Buffers
2010-06-15 23:58:32 -07:00
isaacs
4ce100fa62
A replacement for decodeURIComponent that doesn't throw.
...
And add a few more tests.
2010-06-15 19:28:09 -07:00
Ryan Dahl
6bed15e074
Refactor: Utf8Decoder -> StringDecoder
...
Instead of just decoding Utf8, this will proxy requests to buffer.toString()
for other encodings. This makes for a simpler interface.
2010-06-15 18:19:27 -07:00
Ryan Dahl
14414f81f3
Soft deprecation of 'listening' event.
...
Add callback param to listen() instead
2010-06-15 12:38:25 -07:00
Peter Griess
c9dde726c6
Test case for net.Server.listenFD()
2010-06-15 11:44:33 -07:00
Ryan Dahl
009b4569b3
Merge Hash.init() function into JS constructor
2010-06-14 13:10:23 -07:00