Benjamin Fritsch
0ed3532699
added test for Issue #214
15 years ago
Ryan Dahl
458bbb4687
fs.writeSync should return bytes written
15 years ago
Сергей Крыжановский
078a48a97b
added env to child_process.exec
15 years ago
Ryan Dahl
c926ab7746
Fix test-executable-path.js
Now that process.version doesn't say if the build is debug or not.
15 years ago
Ryan Dahl
8921bf454d
Remove race conditions and simplify test-http-exceptions.js
15 years ago
Ryan Dahl
4c6f4dabf5
Adjust tests for error reporting on JSON.parse(undefined)
The V8 upgrade changed the stacktrace reports (?)
15 years ago
Ryan Dahl
9fd5e3c89c
Update tests to work with module contexts
15 years ago
Ryan Dahl
5f30377bbc
Load modules in individual contexts
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
15 years ago
Matt Ranney
4e50197e53
Datagram socket refactor. Add tests and documentation.
Support setTTL() and setBroadcast() socket options.
15 years ago
Peter Griess
e7c4f8cdaa
Buffer.copy() should liberally allow empty copies.
15 years ago
David Siegel
2085909aeb
fix corner-case bug in Module
and added a test to expose it
15 years ago
Dmitriy Shalashov
70a8fb3763
Fix headers with empty value.
15 years ago
Ryan Dahl
515dc2161b
Experimental: 'on' as alias to 'addListener'
15 years ago
Ryan Dahl
82ce3481fe
Fix undefined_reference_in_new_context test
15 years ago
Ryan Dahl
8a52fb7aeb
Revert "Fix 'uncaughtException' for top level exceptions"
This reverts commit 8f8dcf8ed6
.
15 years ago
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
15 years ago
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
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
15 years ago
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()
15 years ago
Ruben Rodriguez
242161bef2
Added new API to Script, and implemented it in the REPL
15 years ago
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.
15 years ago
Ryan Dahl
ba792ea202
:%s/sys.puts/console.log/g
and there was much rejoicing
15 years ago
Ryan Dahl
f541043618
Remove ini.js
15 years ago
Mikeal Rogers
f62979da6b
Add sys.pump
15 years ago
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].
15 years ago
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.
15 years ago
Ryan Dahl
cb79614f73
Don't encourage strange ideas about req race conditions
15 years ago
Ryan Dahl
eda21cccb4
Fix race condition in test-http-exceptions.js
15 years ago
Ryan Dahl
b93faf9afa
Comment out lines with full paths in message test.
Note that * in the .out files is a special wildcard.
15 years ago
Ryan Dahl
f1a4f17897
script.runIn*Context not throwing errors properly.
15 years ago
Ryan Dahl
7d0252eae2
Fix message tests
15 years ago
Ryan Dahl
125b868e06
Add message tests
15 years ago
Micheil Smith
70c3e661b8
test-child-process-custom-fds to cleanup after running
15 years ago
Micheil Smith
e0d30b545a
Renaming tcp tests to net tests
15 years ago
Micheil Smith
3f48276bf9
Coding style changes, added tests in for the md5, sha256, etc methods
15 years ago
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.
15 years ago
Ryan Dahl
cbf2a2233e
Add callback to dgramSocket.send()
15 years ago
Ryan Dahl
cf86527a28
Fix writeFile(buffer) test
15 years ago
Micheil Smith
b05daaaf69
Adding path.existsSync (with tests.)
15 years ago
Aaron Heckmann
1d088fb906
fs.writeFile accepts Buffers
15 years ago
isaacs
4ce100fa62
A replacement for decodeURIComponent that doesn't throw.
And add a few more tests.
15 years ago
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.
15 years ago
Ryan Dahl
14414f81f3
Soft deprecation of 'listening' event.
Add callback param to listen() instead
15 years ago
Peter Griess
c9dde726c6
Test case for net.Server.listenFD()
15 years ago
Ryan Dahl
009b4569b3
Merge Hash.init() function into JS constructor
15 years ago
Felix Geisendörfer
5f3906b65e
Fix: fs.writeFile could not handle utf8
15 years ago
Paul Querna
02da5ed4a1
Implement datagram sockets
- Adds new dgram module, for all data-gram type transports
- Supports both UDP client and servers
- Supports Unix Daemon sockets in DGRAM mode too (think syslog)
- Uses a shared Buffer and slices that as needed to be reasonably
performant.
- One supplied test program so far, test-dgram-pingpong
- Passes test cases on osx 10.6 and ubuntu 9.10u
15 years ago
Ryan Dahl
fe89caba2e
Improve fs.write tests
15 years ago
Ryan Dahl
a6942b345d
Fix test-repl
15 years ago
Peter Griess
8f0b4e9111
Send and receive file descriptors through net.Stream.
a) create a layer of indirection in net.Stream to allow swapping in
different read/write implementations and
b) emit an 'fd' event when file descriptors are received over a UNIX pipe,
as finally as a tangential benefit
c) remove a bunch of conditionals from the primary codepaths for
ease-of-reading.
15 years ago