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
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.
2010-07-15 10:34:39 -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
82ce3481fe
Fix undefined_reference_in_new_context test
2010-07-03 08:16:36 +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
b93faf9afa
Comment out lines with full paths in message test.
...
Note that * in the .out files is a special wildcard.
2010-06-19 22:51:40 -07:00
Ryan Dahl
f1a4f17897
script.runIn*Context not throwing errors properly.
2010-06-19 19:31:09 -07:00
Ryan Dahl
7d0252eae2
Fix message tests
2010-06-19 17:41:34 -07:00
Ryan Dahl
125b868e06
Add message tests
2010-06-18 18:14:06 -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
Felix Geisendörfer
5f3906b65e
Fix: fs.writeFile could not handle utf8
2010-06-14 10:58:17 -07:00
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
2010-06-12 02:41:45 -07:00